passive service check & invalid hostname
Posted: Tue Oct 01, 2013 6:52 pm
Hello,
Something odd is going on,and I'm hoping to get a little help.
I'm trying to run some passive checks on some linux boxes and getting errors that don't make sense.
error: PASSIVE SERVICE CHECK: $host;xmpp-bosh;2;TCP CRITICAL - Invalid hostname, address or socket: -p
things tried:
ping $host works.
main configuration file contains: cfg_file=/etc/nagios/$configdir/$newconfig.cfg
grep $host cfg_file gives:
host_name $host
$host:/usr/local/nagios_checks/$script
prints to the screen:
xmpp-server2server Port Status on 5269 is = TCP OK - 0.000 second response time on port 5269|time=0.000081s;;;0.000000;10.000000.
1 data packet(s) sent to host successfully.
on nagios server:
[1380671118] PASSIVE SERVICE CHECK: $host;xmpp-server2server;2;TCP CRITICAL - Invalid hostname, address or socket: -p
log file on server shows:[1380671164] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;$host;xmpp-server2server;0;TCP OK - 0.000 second response time on port 5269|time=0.000081s;;;0.000000;10.000000
so ... it looks like it's working, but the nagios server is telling me that I have an invalid hostname.
running: Nagios Core 3.4.4
Something odd is going on,and I'm hoping to get a little help.
I'm trying to run some passive checks on some linux boxes and getting errors that don't make sense.
error: PASSIVE SERVICE CHECK: $host;xmpp-bosh;2;TCP CRITICAL - Invalid hostname, address or socket: -p
things tried:
ping $host works.
main configuration file contains: cfg_file=/etc/nagios/$configdir/$newconfig.cfg
grep $host cfg_file gives:
host_name $host
$host:/usr/local/nagios_checks/$script
prints to the screen:
xmpp-server2server Port Status on 5269 is = TCP OK - 0.000 second response time on port 5269|time=0.000081s;;;0.000000;10.000000.
1 data packet(s) sent to host successfully.
on nagios server:
[1380671118] PASSIVE SERVICE CHECK: $host;xmpp-server2server;2;TCP CRITICAL - Invalid hostname, address or socket: -p
log file on server shows:[1380671164] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;$host;xmpp-server2server;0;TCP OK - 0.000 second response time on port 5269|time=0.000081s;;;0.000000;10.000000
so ... it looks like it's working, but the nagios server is telling me that I have an invalid hostname.
running: Nagios Core 3.4.4