<div>Ah, thanks for the clarification, Steve. And now I've found the problem, too. I'll document here so that others may learn from my goofiness.<br></div><div><br></div><div>So, running the check by hand:</div><div>
<font face="courier new,monospace">/usr/lib/nagios/plugins/check_by_ssh -q -H <a href="http://db1.xxx.com">db1.xxx.com</a> -i /etc/nagios/nagios_private/id_rsa -l cacti -n lh -s c1 -C '/usr/lib/nagios/plugins/check_disk <strong>-w 80 -c 95</strong> -p /mnt/Backup'<br>
DISK OK - free space: /mnt/Backup 13470 MB (18% inode=99%);| /mnt/Backup=58284MB;75515;75500;0;75595</font><br></div><div><br></div><div>It seem to be telling me that the disk is OK, however df on the server shows:</div><div>
<font face="courier new,monospace">Filesystem            Size  Used Avail Use% Mounted on<br>/dev/mapper/SysVolGroup-lvBackup<br>                       74G   57G   14G  82% /mnt/Backup<br></font></div><div>In reality, then, 82% of the partition is used and the check was set to warn at 80 and critical at 95 -- why did the check not trigger? </div>
<div><br></div><div>Because the specification to check_disk, if using %-ages of use, should have a % sign after the thresholds, as in:</div><div><font face="courier new,monospace">usr/lib/nagios/plugins/check_by_ssh -q -H <a href="http://db1.xxx.com">db1.xxx.com</a> -i /etc/nagios/nagios_private/id_rsa -l cacti -n lh -s c1 -C '/usr/lib/nagios/plugins/check_disk <strong>-w 80% -c 95%</strong> -p /mnt/Backup'</font></div>
<div><br></div><div>Best,</div><div>Mark</div><div><br></div><div>Mark</div><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 12:13 PM, steve f <span dir="ltr"><<a href="mailto:a31modela@hotmail.com">a31modela@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
Mark,<br><br>I think Salvatore means run the check manually from the command line , make sure you run it as the nagios user and try setting tha warning & critical values to something that will make it fail also:<br><br>
/usr/local/nagios/libexec > ./check_disk -w 50 -c 70 -p /home<br>DISK OK - free space: /home 440 MB (95% inode=99%);| /home=20MB;436;416;0;486<br><br>The -p just checks a specific path.  ( FYI )<br><br>Steve<br><br><br>
<br><br><hr>Date: Mon, 20 Dec 2010 11:50:14 -0500<br>From: <a href="mailto:gopearls42@gmail.com" target="_blank">gopearls42@gmail.com</a><div class="im"><br>To: <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
</div>Subject: Re: [Nagios-users] tracing nagios actions<div><div class="h5"><br><br><div>Hi Salvatore,</div><div><br></div><div>They're all Unix (Redhat) servers. By check command do you mean nagios -v? I've done that and I do not get an errors.<br>
</div><div><br></div><div>Thanks,</div><div>Mark</div>
<br><div>On Mon, Dec 20, 2010 at 11:35 AM, Polifemo, Salvatore <span dir="ltr"><<a href="mailto:polifemos@conedsolutions.com" target="_blank">polifemos@conedsolutions.com</a>></span> wrote:<br><blockquote style="border-left:1px solid rgb(204, 204, 204);padding-left:1ex">










<div lang="EN-US">

<div>

<p><span style="font-size:11pt;color:rgb(31, 73, 125)">Are these Windows or *nix server?</span></p>

<p><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>

<p><span style="font-size:11pt;color:rgb(31, 73, 125)">Either wau run the check command manually from a console and see
what the results are.</span></p>

<p><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>

<p><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>

<p><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>

<p><b><i><span style="font-family:'Bookman Old Style','serif';color:rgb(0, 32, 96)">Salvatore Polifemo</span></i></b></p>

<p><b><i><span style="font-size:10pt;font-family:'Gungsuh','serif';color:rgb(0, 32, 96)">Sr. Systems Security Specialist</span></i></b></p>

<p><i><span style="font-size:10pt;color:rgb(0, 32, 96)">ConEdison Solutions</span></i></p>

<p><i><span style="font-size:10pt;color:rgb(0, 32, 96)">100 Summit Lake Drive</span></i></p>

<p><i><span style="font-size:10pt;color:rgb(0, 32, 96)">Valhalla, NY 10595</span></i></p>

<p><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>

<div style="border-right:medium none;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">

<p><b><span style="font-size:10pt">From:</span></b><span style="font-size:10pt"> mark bradley
[mailto:<a href="mailto:gopearls42@gmail.com" target="_blank">gopearls42@gmail.com</a>] <br>
<b>Sent:</b> Monday, December 20, 2010 11:14 AM<br>
<b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
<b>Subject:</b> [Nagios-users] tracing nagios actions</span></p>

</div><div><div>

<p> </p>

<div>

<p>Hi,</p>

</div>

<div>

<p> </p>

</div>

<div>

<p>I have a small-ish number of servers and I've tried to
configure Nagios to warn me about disk-space running low. The problem is that,
although disk space is above both warning and critical levels I'm not getting
any notifications.</p>

</div>

<div>

<p> </p>

</div>

<div>

<p>The nagios.log file is silent on the topic and nagios -v
does not produce any errors or warnings.</p>

</div>

<div>

<p> </p>

</div>

<div>

<p>Is there a way to trace what actions nagios is considering
(much like make -n) in order to debug this problem? Is there a debugging
methodology defined somewhere? If it's in your head can you share?</p>

</div>

<div>

<p> </p>

</div>

<div>

<p>Thanks,</p>

</div>

<div>

<p>Mark</p>

</div>

</div></div></div>

</div>


<br>------------------------------------------------------------------------------<br>
Lotusphere 2011<br>
Register now for Lotusphere 2011 and learn how<br>
to connect the dots, take your collaborative environment<br>
to the next level, and enter the era of Social Business.<br>
<a href="http://p.sf.net/sfu/lotusphere-d2d" target="_blank">http://p.sf.net/sfu/lotusphere-d2d</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">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></blockquote></div><br>
<br></div></div>------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
<a href="http://p.sf.net/sfu/lotusphere-d2d" target="_blank">http://p.sf.net/sfu/lotusphere-d2d</a><div class="im"><br>_______________________________________________
Nagios-users mailing list
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null                                    </div></div>
<br>------------------------------------------------------------------------------<br>
Lotusphere 2011<br>
Register now for Lotusphere 2011 and learn how<br>
to connect the dots, take your collaborative environment<br>
to the next level, and enter the era of Social Business.<br>
<a href="http://p.sf.net/sfu/lotusphere-d2d" target="_blank">http://p.sf.net/sfu/lotusphere-d2d</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></blockquote></div><br>