Why are host checks run from the main process? Does anyone have a patch to change it?

Marc Powell marc at ena.com
Tue Dec 16 23:22:09 CET 2003



> -----Original Message-----
> From: Jeff Rodriguez [mailto:jeff at unixisgod.com]
> Sent: Tuesday, December 16, 2003 3:01 PM
> To: nagios-devel at lists.sourceforge.net;
nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Why are host checks run from the main process?
> Does anyone have a patch to change it?
> 
> We have 270 hosts in nagios right now with a total of 1184 service
checks.
> 
> I've noticed an issue where the host checks are run from the main
nagios
> process. I'm not sure as to the reasoning behind this but it can cause
> problems galore.
> 
> Since the main process does all the scheduling, having it do host
checks
> seriously breaks things when several hosts are down.
> 

This is intended behavior. Nagios must determine the status of the host
before it can determine if other hosts and services are down or
unreachable -

http://nagios.sourceforge.net/docs/1_0/checkscheduling.html#host_checks


> Does anyone have a patch to set host checks to be done outside the
main
> scheduling process? Or any suggestions as to how I can alleviate the
> problems it causes?

http://nagios.sourceforge.net/docs/1_0/tuning.html

7. Optimize host check commands. If you're checking host states using
the check_ping plugin you'll find that host checks will be performed
much faster if you break up the checks. Instead of specifying a
max_attempts value of 1 in the host definition and having the check_ping
plugin send 10 ICMP packets to the host, it would be much faster to set
the max_attempts value to 10 and only send out 1 ICMP packet each time.
This is due to the fact that Nagios can often determine the status of a
host after executing the plugin once, so you want to make the first
check as fast as possible. This method does have its pitfalls in some
situations (i.e. hosts that are slow to respond may be assumed to be
down), but I you'll see faster host checks if you use it. Another option
would be to use a faster plugin (i.e. check_fping) as the
host_check_command instead of check_ping.


No patch exists to change this behavior that I am aware of.

--
Marc



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list