Page 1 of 1

Check_ping warning

Posted: Tue Mar 05, 2019 10:32 am
by MIERDURUS
Hello guys
i am testing nagios 4.3 in a virtual environment (virtualbox-debian) and i am monitoring a ubuntu machine, my problems is a constant warning alert PING, i check the ubuntu.cfg file, I have that error since I installed it, i modified the range of ms y % and i stil have a warning alert, can you please tell me where i made the mistake

this is ubuntu.cfg file configuration.

define service {
use generic-service
hostgroup_name xxx
service_description PING
check_command check_ping!200.0,0,20%!500.0,60%
}

Nagios warning

Current Status: WARNING (for 0d 21h 29m 31s)
Status Information: PING WARNING - Packet loss = 0%, RTA = 0.78 ms
Performance Data: rta=0.778000ms;100.000000;500.000000;0.000000 pl=0%;;90;0

And I execute the command directly on the server and I have no warning

./check_ping -H xxx.xxx.xxx.xxx -e 10,2% -c 20,5%
PING OK - Packet loss = 0%, RTA = 0.79 ms|rta=0.794000ms;10.000000;20.000000;0.000000 pl=0%;2;5;0


Thanks in Advance.

Best Regards

Re: Check_ping warning

Posted: Tue Mar 05, 2019 5:01 pm
by scottwilkerson
This line doesn't look correct

Code: Select all

check_command check_ping!200.0,0,20%!500.0,60%
You have too many warning values, try this

Code: Select all

check_command check_ping!200.0,20%!500.0,60%
then restart nagios

Re: Check_ping warning

Posted: Thu Mar 07, 2019 1:29 pm
by MIERDURUS
Hey scottwilkerson, thank you so much man, that solved the problem, it was that...

Re: Check_ping warning

Posted: Thu Mar 07, 2019 3:44 pm
by scottwilkerson
MIERDURUS wrote:Hey scottwilkerson, thank you so much man, that solved the problem, it was that...
Awesome!

Locking thread