check_command failing
Posted: Thu Feb 14, 2013 2:24 pm
Hi all I have this weird problem:
Nagios server: stageutil03
NRPE: testapp01
On nagios server end:
in /usr/local/nagios/etc/objects/_applayer.cfg
define service{
use generic-service
host_name testapp01
service_description App_site_8080
check_command check_http!2!4!/!8080
notifications_enabled 1
}
check_command defined in this service definition as I get Connection Refused on Nagios Core interface.
But when I run this command instead, I get response back
[root@stageutil03 libexec]# ./check_http testapp01 -w 2 -c 4 -u / -p 8080
HTTP OK: HTTP/1.1 200 OK - 169891 bytes in 0.236 second response time |time=0.236184s;2.000000;4.000000;0.000000 size=169891B;;;0
Connectivity from nagios server to nrpe client is there
[root@stageutil03 libexec]# telnet testapp01 8080
Trying 10.198.192.14...
Connected to testapp01.
Escape character is '^]'.
On NRPE client:
[root@testapp01 libexec]# ./check_nrpe -H localhost
NRPE v2.12
[root@testapp01 libexec]# netstat -na | grep 5666
*.5666 *.* 0 0 49152 0 LISTEN
nrpe.cfg allows the proper IP, /etc/hosts.allow is setup
Anything else I do fix this? Maybe it's unable to parse check_command properly?
Nagios server: stageutil03
NRPE: testapp01
On nagios server end:
in /usr/local/nagios/etc/objects/_applayer.cfg
define service{
use generic-service
host_name testapp01
service_description App_site_8080
check_command check_http!2!4!/!8080
notifications_enabled 1
}
check_command defined in this service definition as I get Connection Refused on Nagios Core interface.
But when I run this command instead, I get response back
[root@stageutil03 libexec]# ./check_http testapp01 -w 2 -c 4 -u / -p 8080
HTTP OK: HTTP/1.1 200 OK - 169891 bytes in 0.236 second response time |time=0.236184s;2.000000;4.000000;0.000000 size=169891B;;;0
Connectivity from nagios server to nrpe client is there
[root@stageutil03 libexec]# telnet testapp01 8080
Trying 10.198.192.14...
Connected to testapp01.
Escape character is '^]'.
On NRPE client:
[root@testapp01 libexec]# ./check_nrpe -H localhost
NRPE v2.12
[root@testapp01 libexec]# netstat -na | grep 5666
*.5666 *.* 0 0 49152 0 LISTEN
nrpe.cfg allows the proper IP, /etc/hosts.allow is setup
Anything else I do fix this? Maybe it's unable to parse check_command properly?