<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>Scalix message content</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Britannic Bold";
        panose-1:2 11 9 3 6 7 3 2 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.normal, li.normal, div.normal
        {mso-style-name:normal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Arial","sans-serif";}
p.defaultparagraphfont, li.defaultparagraphfont, div.defaultparagraphfont
        {mso-style-name:default_paragraph_font;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        background:white;
        font-size:12.0pt;
        font-family:"Arial","sans-serif";
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:2076076868;
        mso-list-type:hybrid;
        mso-list-template-ids:1422924814 -1170469190 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:3;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Nagios isn’t seeing anything – it’s the check_disk plugin that’s
returning the “OK” result.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>check_disk --help shows that -w and -c are used to show free
space in “units” when a percent sign doesn’t follow the number:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>check_disk --help<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Options:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-w, --warning=INTEGER<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>    Exit with WARNING status if less than INTEGER units of disk
are free<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> -w, --warning=PERCENT%<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>    Exit with WARNING status if less than PERCENT of disk space
is free<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> -c, --critical=INTEGER<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>    Exit with CRITICAL status if less than INTEGER units of disk
are free<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-c, --critical=PERCENT%<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>    Exit with CRITCAL status if less than PERCENT of disk space
is free<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>In your case, free space is around 3600 MB, far more than the
15/20 required to trigger a critical/warning status.  So, the command you
really want is probably:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>command[check_disk2]=/usr/local/nagios/libexec/check_disk
-w 20% -c 15% -p /dev/sda10<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Britannic Bold","sans-serif";
color:#8064A2'>- Brock<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Britannic Bold","sans-serif";
color:#8064A2'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Britannic Bold","sans-serif";
color:#8064A2'>Brock Kuhse<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Britannic Bold","sans-serif";
color:#8064A2'>EC Group<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Britannic Bold","sans-serif";
color:#8064A2'>4555 E. Broadway Blvd, Tucson, AZ  85711<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Britannic Bold","sans-serif";
color:#8064A2'>(520) 622-1173<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Britannic Bold","sans-serif";
color:#8064A2'><a href="mailto:bkuhse@ecgrp.com">bkuhse@ecgrp.com</a><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b>On Behalf Of </b>Lorand
S. D'Caltan<br>
<b>Sent:</b> Wednesday, December 19, 2007 7:51 AM<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> [Nagios-users] Check_NRPE plugin issue after 3.0b7 upgrade.<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I've
migrated from 1.0 to 3.0b7 recently and I'm running into a couple of issues,
the most pressing of which is a problem with the check_nrpe plugin's return of
data.</span><span lang=EN style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This
is my command definition:</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>define
command {</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>command_name
check_nrpe</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>command_line
$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$</span><span lang=EN
style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>}</span><span
lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Copied
from my old config.</span><span lang=EN style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This
is the service in question:</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>######
Check Linux /db Partition on DB servers</span><span lang=EN style='font-family:
"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>define
service {</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>use
generic-service</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>hostgroup_name
generic-hostgroup</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>service_description
/db Partition</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>contact_groups
GRP-Systems,GRP-Pagers</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>check_period
24x7</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>notification_interval
15</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>notification_options
w,u,c,r</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>notification_period
24x7</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>check_command
check_nrpe!check_disk2</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>max_check_attempts
3</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>normal_check_interval
15</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>retry_check_interval
1</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>}</span><span
lang=EN style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This
is the relevant part of the nrpe.cfg located on one of the affected hosts:</span><span
lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>command[check_disk2]=/usr/local/nagios/libexec/check_disk
-w 20 -c 15 -p /dev/sda10</span><span lang=EN style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Now
this command works fine, and outputs this in Nagios:</span><span lang=EN
style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<div>

<table class=MsoNormalTable border=0 cellpadding=0>
 <tr>
  <td width=389 valign=top style='width:291.75pt;background:white;padding:.75pt .75pt .75pt .75pt;
  valign: middle'>
  <div style='margin-top:5.0pt;margin-bottom:5.0pt'>
  <p class=MsoNormal><a
  href="extinfo.cgi?type=2&host=data&service=%2Fdb%20Partition">/db
  Partition</a><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
  </div>
  </td>
  <td width=233 valign=top style='width:174.75pt;background:white;padding:.75pt .75pt .75pt .75pt;
  valign: middle'></td>
 </tr>
</table>

</div>

<div style='margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=MsoNormal><span lang=EN>OK 12-19-2007 09:37:54 4d 11h 53m 8s 1/3 DISK
OK - free space: /db 3653 MB (4% inode=99%):</span><span lang=EN
style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=EN><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>So,
my problem here is that Nagios clearly sees that there is 4% of disk space
free, and yet still thinks the service is in an OK state. I need it to
recognize the Warning/Critical levels on the new system like it did on the old
system.</span><span lang=EN style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I'm
using these packages on Centos 5.1:</span><span lang=EN style='font-family:
"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>nagios-3.0b7.tar.gz</span><span
lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>nagios-plugins-1.4.7.tar.gz</span><span
lang=EN style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Any
help/suggestions would be greatly appreciated</span><span lang=EN
style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'><><><><><><><><></span><span
lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Lorand
S. D'Caltan</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Systems
Engineer</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>iSystems
LLC</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'>(802)
655-8347 x157</span><span lang=EN style='font-family:"Arial","sans-serif"'><br>
</span><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif"'><><><><><><><><></span><span
lang=EN style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

<div style='margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=MsoNormal><span lang=EN style='font-size:9.0pt;font-family:"Arial Narrow","sans-serif";
color:gray'>CONFIDENTIALITY: The information contained in this message may be
privileged and confidential and protected from disclosure. No confidentiality
or privilege is waived or lost by any mistransmission. If the reader of this
message is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified that
any dissemination, distribution or copying of this communication is strictly
prohibited. Please immediately delete it and all copies of it from your system,
destroy any hard copies of it and notify the sender. Thank you.</span><span
lang=EN style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=EN><o:p> </o:p></span></p>

</div>

</body>

</html>