Using Network Service to check if Webservcer is running

Started by flanky, January 07, 2015, 04:53:01 PM

Previous topic - Next topic

flanky

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?

Marco Incalcaterra

Hi,

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

Best regards,
Marco

flanky

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

Marco Incalcaterra

Quote from: flanky on January 12, 2015, 09:52:10 AM
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