I am attempting to monitor the HTTP service on two virtual windows servers using the following:
Code: Select all
define service
use generic-service
#host_name MYFIRSTSERVER
hostgroup_name jenkins-test-masters
service_description HTTP Server
check_command check_http
}
Whilst installing the NSClient on two additional servers this morning, I noticed that the installation instructions I'd been using didn't say anything about putting a tick in the "Enable Web Server" box, so I haven't been doing so.
Given the fact that I'm receiving two different error messages, I don't really think this is related, but is there any chance that this could be causing my problem?
And, what's the difference between the above and:
Code: Select all
define service {
use generic-service
#host_name MYFIRSTSERVER,MYSECONDSERVER
hostgroup_name jenkins-test-masters
service_description Service - Apache HTTP
check_command check_nt!PROCSTATE! -d SHOWALL -l httpd.exe
}
"httpd.exe: Running" for the server that displays HTTP WARNING: HTTP/1.1 403 Forbidden - 1491 bytes in 0.007 second response time and
"httpd.exe: not running " for the server that displays connection refused
Thanks in advance
Pete