Page 1 of 1

Polling incoherent

Posted: Tue Jun 02, 2015 3:32 am
by twurte75
Hello,

I am currently working on the 4.0.8 versions of Nagios without overcoat , my problem is that the numbers of ICMP requests sent by Nagios is too large (about 11 or 30) when my or my host is unreachable , while in the commands.cfg file you can see that it must be 5 :

# '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


So my first question is, can we nagios tuner so that when the host is only 5 ingoinable requêtesICMP be sent (I currently polle nodes 1900 when I made endurance test as you say my my machine no longer follows when the nodes are DOWN).


My second question is even more complexque since the net I found someone who met to issue very quickly when my equipment is unreachable polling time is reduced by 1 minutes I spend 30 seconds which is enormous ... or even 15 seconds (small precision when the equipment is UP polling is respected and the number of packets sent too).

I wanted to know what was coming or problem ?? knowing that in my file templates.cfg everything is good polling is one minute.


So to settle the problem on the number of ICMP queries sent when the host is injoinables I based on the most reliable check_icmp according to sources in any case it complies with the numbers of packets sent when the node is UP or DOWN problem when the node is DOWN nagios will Pollé every 15 seconds instead of one minute (no worries when the node is UP polling is done at a minutes).

command_line $USER1$/check_icmp -w 3000.0,80% -c 5000.0,100% -n 5 -H $HOSTADDRESS$

ps: to check my time polling I used tcpdump

Thank you in advance , it's been two days since I 'm on the issue.

Re: Polling incoherent

Posted: Tue Jun 02, 2015 2:32 pm
by jdalrymple
I think a good look at on-demand checks might help you understand why you're seeing more pings than you expect. I think your host check is probably running many more times than you think. A host check is immediately retriggered if Nagios notices a service is down.

There are ways around this, also in the documentation.

Host Checks wrote: When Are Host Checks Performed?

Hosts are checked by the Nagios daemon:

At regular intervals, as defined by the check_interval and retry_interval options in your host definitions.
On-demand when a service associated with the host changes state.
On-demand as needed as part of the host reachability logic.
On-demand as needed for predictive host dependency checks.

http://nagios.sourceforge.net/docs/nagi ... hecks.html