<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: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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Check in /var/log/messages (or wherever you are logging to) on the server that should be running check_hda1 to ensure that the nagios node is able to communicate
 via nrpe. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Also check you can run /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/root on the nrpe node.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Is it owned by the nagios user,  does it belong to the nagios group (or whatever you’ve defined for this in nrpe.cfg)
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Deborah
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><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"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> RichTea [mailto:mail@catsnest.co.uk]
<br>
<b>Sent:</b> 19 June 2012 14:40<br>
<b>To:</b> Nagios Users List<br>
<b>Subject:</b> Re: [Nagios-users] Help with "DISK UNKNOWN - free space: " error<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Tue, Jun 19, 2012 at 1:06 PM, Ernesto Sanchez <<a href="mailto:e.sanchez@libelium.com" target="_blank">e.sanchez@libelium.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Hello, I've a server with nrpe and the following commands in<br>
/usr/local/nagios/etc/nrpe.cfg :<br>
<br>
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10<br>
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c<br>
30,25,20<br>
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10%<br>
-p /dev/root<br>
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5<br>
-c 10 -s Z<br>
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150<br>
-c 200<br>
command[check_mem]=/usr/local/nagios/libexec/check_mem.sh 85 95<br>
<br>
if I exec in a console /usr/local/nagios/libexec/check_disk -w 20% -c<br>
10% -p /dev/root i obtain the following:<br>
<br>
DISK OK - free space: /var/named/chroot/var/run/dbus 24513 MB (52%<br>
inode=88%);| /var/named/chroot/var/run/dbus=21787MB;39005;43881;0;48757<br>
<br>
In the nagios server i've the following config file:<br>
<br>
define host{<br>
        use                     generic-host            ; Name of host<br>
template to us<br>
        host_name               server_name<br>
        alias                   alas_server_name<br>
        address                 ip_address<br>
        icon_image base/linux40.jpg<br>
        statusmap_image base/linux40.gd2<br>
        }<br>
<br>
# Check hda1<br>
define service{<br>
        use generic-service<br>
        host_name server_name<br>
        service_description Disk<br>
        check_command check_nrpe!check_hda1<br>
        }<br>
<br>
But nagios report an "DISK UNKNOWN - free space: " on web interface and<br>
the same if I do /usr/lib/nagios/plugins/check_nrpe -H ip_address -c<br>
check_hda1<br>
<br>
Somebody can help me?<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
<span style="font-family:"Courier New"">Check the permissions on the remote server, eg can the NRPE User run the command locally.<br>
<br>
<br>
Ritchie, <br clear="all">
</span>--<br>
<-- <a href="http://23.me.uk/2" target="_blank">http://23.me.uk/2</a> --><br>
<--Time flies like an arrow; fruit flies like a banana.  --><br>
  <o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><br>
A lot of thanks in advance.<br>
<br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</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<o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br clear=all> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        font-size: 16px;
}
.style2 {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
}
-->
</style>
</head>

<body>
<p>  <span class="style2">This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.  If you are not the intended recipient, please delete this e-mail immediately.  Any unauthorised distribution or copying is strictly prohibited.<br />
  <br />
  Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused.</span><br />
</p>
</body>
</html>

</body>
</html>