Help with check_by_ssh command
Posted: Fri Sep 06, 2013 5:51 pm
I'm using this command on Server B to monitor Server C. Within that command is a check_ping command that checks Server C's availability. My nagios server is on Server A. When I manually invoke the following command from my nagios server, it appears to work:
check_by_ssh -H <server B IP address> -C "/usr/local/nagios/plugins/check_ping -H <public IP address of server C omitted> -w 400.0,20% -c 1000.0,50%"
Response I get back is "Ping OK - Packet loss = o%, RTA - 85.99 ms|rta=85.986000ms;400.000000;1000.000000;0.000000 pl=0%;20;50;0"
However, when nagios runs this command, it just pings Server B on the local subnet; Server B doesn't seem to be pinging Server C on the Internet. My check_by_ssh command is missing something but not sure what:
New command is defined as "check_serverC"; it has: command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/usr/local/nagios/plugins/check_ping -H <public IP address of server C omitted> -w 400.0,20% -c 1000.0,50%"
My relevant line in my new service definition is: check_command check_serverC!400.0,20%!900.0,60%
Any ideas?
check_by_ssh -H <server B IP address> -C "/usr/local/nagios/plugins/check_ping -H <public IP address of server C omitted> -w 400.0,20% -c 1000.0,50%"
Response I get back is "Ping OK - Packet loss = o%, RTA - 85.99 ms|rta=85.986000ms;400.000000;1000.000000;0.000000 pl=0%;20;50;0"
However, when nagios runs this command, it just pings Server B on the local subnet; Server B doesn't seem to be pinging Server C on the Internet. My check_by_ssh command is missing something but not sure what:
New command is defined as "check_serverC"; it has: command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/usr/local/nagios/plugins/check_ping -H <public IP address of server C omitted> -w 400.0,20% -c 1000.0,50%"
My relevant line in my new service definition is: check_command check_serverC!400.0,20%!900.0,60%
Any ideas?