Page 2 of 2
Re: Plugin time out error
Posted: Thu Jan 23, 2014 9:48 am
by barney
slansing wrote:I just wanted to verify the plugins were actually installed to that directory, can you run the following and show the output?
Hi slansing, output below as requested. As you can see the plugin is installed and does run ok from the command line but I am still getting "Plugin timed out after 10 seconds" from the GUI
Code: Select all
> ls -la /app/nagios/libexec/check_ping
-rwxr-xr-x 1 nagios nagios 143692 Jan 11 2011 /app/nagios/libexec/check_ping
Code: Select all
> /app/nagios/libexec/check_ping -H nile -w 100.0,20% -c 500.0,60% -L
<A HREF='/nagios/cgi-bin/traceroute.cgi?nile'>PING OK - Packet loss = 0%, RTA = 1.33ms</A>|rta=1.330000ms;100.000000;500.000000;0.000000 pl=0%;20;60;0
thanks
Re: Plugin time out error
Posted: Thu Jan 23, 2014 1:48 pm
by lmiltchev
Have you tried adding a timeout value in the command definition? For example:
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 -t 30
}
Re: Plugin time out error
Posted: Fri Jan 24, 2014 5:54 am
by barney
lmiltchev wrote:Have you tried adding a timeout value in the command definition? For example:
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 -t 30
}
just tried it (again) and still the same failure...
Code: Select all
Current Status: CRITICAL (for 13d 22h 24m 7s)
Status Information: CRITICAL - Plugin timed out after 10 seconds
Performance Data:
Current Attempt: 4/4 (HARD state)
Last Check Time: 24-01-2014 10:46:07
Check Type: ACTIVE
Check Latency / Duration: 0.276 / 10.073 seconds
Next Scheduled Check: 24-01-2014 10:51:07
Last State Change: 10-01-2014 12:22:15
Last Notification: N/A (notification 0)
Is This Service Flapping? NO (0.00% state change)
In Scheduled Downtime? NO
Last Update: 24-01-2014 10:46:20 ( 0d 0h 0m 2s ago)
and from the command line once again...
Code: Select all
/app/nagios/libexec> ./check_ping -H nile -w 3000.0,80% -c 5000.0,100% -p 10 -t 50
PING OK - Packet loss = 0%, RTA = 0.46 ms|rta=0.463200ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
thanks
Re: Plugin time out error
Posted: Fri Jan 24, 2014 2:44 pm
by slansing
So I looked back at page one and noticed you didn't actually have a check_command defined for your host, if that is the case then I don't know why we are looking at this host, did you post the wrong configuration?? Is your "linux-server" template responsible for running the check_ping command? If so, is this issue effecting other hosts with that template assigned, and can we see that template?
Re: Plugin time out error
Posted: Mon Jan 27, 2014 7:06 am
by barney
Hi Slansing, I’m on the limit of my Nagios knowledge here so apologies if I’m missing stuff out.
the host has the following entry in the hosts.cfg file (pollux being the name of the server that runs Nagios)
Code: Select all
define host{
use linux-server
host_name nile
alias nile
address xxxx.xxxx.xxxx.xxxx
parents pollux
}
the check_ping job resides in /app/nagios/libexec
Code: Select all
> ls -l /app/nagios/libexec/check_ping
-rwxr-xr-x 1 nagios nagios 143692 Jan 11 2011 /app/nagios/libexec/check_ping
for some reason unknown to me we have 2 jobs in the commands file that run check_ping…
Code: Select all
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 -t 30
}
# 'check_ping' command definition
define command{
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 -t 30
}
the services.cfg file has only one ping check entry…
Code: Select all
define service{
use local-service
host_name *
service_description Ping Check
check_command check_ping!100.0,20%!500.0,60%
}
I presume that the host_name “*” checks every server on site but the check doesn’t fail with any of them.
thanks
Re: Plugin time out error
Posted: Mon Jan 27, 2014 12:14 pm
by scottwilkerson
If nile is the host that is failing the Ping Check service you need to run the following to test it, replacing with whatever is in the address field of the nile host definition
Code: Select all
./check_ping -H xxx.xxx.xxx.xxx -w 3000.0,80% -c 5000.0,100% -p 5
Re: Plugin time out error
Posted: Tue Jan 28, 2014 4:46 am
by barney
Re: Plugin time out error
Posted: Tue Jan 28, 2014 10:12 am
by tmcdonald
Not a problem, that's why we're here. I assume it's safe to lock this thread up?
Re: Plugin time out error
Posted: Tue Jan 28, 2014 10:21 am
by barney
tmcdonald wrote:Not a problem, that's why we're here. I assume it's safe to lock this thread up?
Please feel free to do whatever.
Thanks again.