Nagios and passive checks

pshemko pshemko at ihug.co.nz
Mon Sep 20 04:30:15 CEST 2004


> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
> Of nagios at mm.quex.org
> Sent: Monday, 20 September 2004 12:55 p.m.
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios and passive checks

{cut}

> I think the default buffer size is 4kb.  You could try recompiling
> Nagios to use a bigger buffer and that might provide the quickest
> fix.  Since you're processing such a large number of frequent checks,
> you might also consider writing your own daemon to accept the check
> results from the remote clients and queue them locally for delivery.
> Have it write the results to the pipe as fast as it can, but pause
> when needed.

That's the config I have, all these writing processes are kind of buffers.
They read status lines from a message queue and try to deliver a message for
10 minutes. Every process tries for 20 second to send a line, then it reads
another one (from the queue) and tries to deliver them both, then it reads
third line, etc. After reaching 10th line (and timing out) it removes all
lines and starts again.  

BTW, I couldn't find the buffer size (for the pipe) anywhere in the sources,
do you know where is it defined?

> You could also look at the command_check_interval setting in the
> main configuration file, but you might have to fiddle with the
> interval_length to get any benefit out of that.

I tried many different setups, none of them worked as expected. Sometimes
nagios is not accepting any data even for two minutes, but if I tail -f
nagios.log I can't see any activity. 

Regards
Pshemko





-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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