<div>Hi,</div>
<div> </div>
<div>this may be related to freshness checking.</div>
<div> </div>
<div> </div>
<div>check what your freshness check command is, </div>
<div>then test it to see what its output is.</div>
<div>IF you have the Hosts reporting every 1/2 hr </div>
<div>and nagios freshness testing every 1 hr,</div>
<div>that means if one check is accedenly droped before nagios processes it</div>
<div> ( this can happen for different reasons)</div>
<div>your odds of failing a freshness test drastically increase. </div>
<div>this would be noticed if the Hosts check is recieved within a few minutes afte the alert</div>
<div>I like to setup freshness checking for 3-5x the check interval </div>
<div>so for testing every 1/2 hr, I would freshness check every 2-3 hrs not every 1 hr.</div>
<div><br> </div>
<div>TOny</div>
<div> </div>
<div class="gmail_quote">On Fri, May 15, 2009 at 4:04 PM, Marc Powell <span dir="ltr"><<a href="mailto:marc@ena.com">marc@ena.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><br>On May 15, 2009, at 2:29 PM, Jean-Michel Philippon-Nadeau wrote:<br><br>> Thanks for your reply Tom.<br>> I really appreciate that you take a few minutes of your time to help<br>> me<br>> on this one.<br>
><br>> Tom Wlodek wrote:<br>>> You may also check whether you run it by hand as the right user.<br>>> Common<br>>> mistake is to execute plugins or scripts as one user 9say, root) and<br>>> then nagios executes them as another one (say "nagios"). It works for<br>
>> user root but not for user nagios.<br>><br>> The Nagios server does not actively check the disk status of every<br>> monitored server. Each server has a script in it's crontab that checks<br>> the disks and sends the status via NCSA to the main Nagios server.<br>
><br>> Correct me if I'm wrong, but I do not think the user running the<br>> script<br>> on the monitored host can interfere with how the Nagios server will<br>> parse the answer. Am I right?<br><br></div>
Nagios/NSCA don't parse the answer at all, other than to say '(no<br>output)' when the passive results or plugin execution have no text<br>output. This is most often caused by an error being returned by the<br>
plugin.<br><br>Something is happening, either with the execution of the check_disk<br>plugin, the passing of those results to send_nsca or send_nsca's<br>transmission of those results to nagios. I expect it's one of the<br>
first two but you can easily work this issue backwards. Put NSCA into<br>debug mode on the nagios server. Observe the check results coming in.<br>If they are not correct, add debugging output to your script that's<br>
executing the plugin and passing the results to send_nsca, have it log<br>to a file, to identify where the breakdown is occurring. That should<br>guide you on how to fix it.<br><br>You could also capture any error output generated by the plugin to<br>
adding '2>&1' to the end of the check_disk line.<br><br>--<br><font color="#888888">Marc<br></font>
<div>
<div></div>
<div class="h5"><br><br>------------------------------------------------------------------------------<br>Crystal Reports - New Free Runtime and 30 Day Trial<br>Check out the new simplified licensing option that enables<br>
unlimited royalty-free distribution of the report engine<br>for externally facing server and web deployment.<br><a href="http://p.sf.net/sfu/businessobjects" target="_blank">http://p.sf.net/sfu/businessobjects</a><br>_______________________________________________<br>
Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></div></div></blockquote></div><br>