Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Using Network Service to check if Webservcer is running

Using Network Service to check if Webservcer is running

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 23.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    F
    flanky
    wrote on last edited by
    #1

    Hi Im relatively new to NetXMS.
    I just recently installed and configured the agent and server.
    It is a setup where i have server and agent on the same physical machine.
    I wanted to setup a network service monitoring for Webserver (Apache) on port 80.
    But somehow im failing to succeed. I have read all those previous topics with similar issues of people wanting to check their webserver sercvice like forgotting to load SubAgent = portcheck.nsm Im using Request:

    HOST_HEADER:http://www.yourdomain.com
    

    And expecting Response:

    ^HTTP/1\.[01] 200.*
    

    I have specified Poller node to the one and only (since server and agent are one and the same machine) and required poll count to 1.
    I have also read in a differrent topic that it is not possible to read a debug output what the service is getting.
    Any ideas?

    Shall i just set the Network Service to port 80?
    Leave it as user defined?
    Leave Request and Response fields empty?
    Im not quite sure how the network service check works internally if the service being checked is on the same machine than agent and server.
    Any help is appreciated!

    Thank you

    Edit: I have tried to set up for agent configuration file MasterServer to 127.0.0.1 only and it seems i have made couple of things even worse?

    1 Reply Last reply
    0
    • J
      J
      Marco Incalcaterra
      wrote on last edited by
      #2

      Hi,

      try to set it up how is detailed in the attached snapshot. No particular subagent to load.

      Best regards,
      Marco


      network-service.png

      1 Reply Last reply
      0
      • F
        F
        flanky
        wrote on last edited by
        #3

        Marco unfortunatelly your suggestion didn't work... Perhaps i have configured something in a wrong way?

        1 Reply Last reply
        0
        • J
          J
          Marco Incalcaterra
          wrote on last edited by
          #4

          @flanky said in Using Network Service to check if Webservcer is running:

          Marco unfortunatelly your suggestion didn't work... Perhaps i have configured something in a wrong way?

          That is the way I use to monitor my web server! I'm using it since a lot of time, I don't remember any other steps to do, I'm sorry!

          Best regards,
          Marco

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups