Check_HTTP Query
Posted: Thu Aug 27, 2015 4:14 am
Good morning - this is a follow up to a previously closed topic https://support.nagios.com/forum/viewto ... =7&t=34358 , as I just thought of something else that might have been causing the issue.
I am attempting to monitor the HTTP service on two virtual windows servers using the following:
In the web interface, one server reports "HTTP WARNING: HTTP/1.1 403 Forbidden - 1491 bytes in 0.004 second response time " whilst the other reports "Connection refused ".
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:
which displays
"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
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