<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Regarding check_disk</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>OK, so this may be still an error in the
nrpe.cfg.</FONT></DIV>
<DIV><FONT size=2>What is the configuration line in your nrpe.cfg on the
<Solaris9_box>?</FONT></DIV>
<DIV><FONT size=2>For example:</FONT></DIV>
<DIV><FONT size=2>command[check_disk]=/usr/local/nagios/libexec/check_disk
-w 20% -c 10% -p /</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Try to cut and paste everything after the equals sign and
execute it on the <solaris9_box> as user nagios. This verifies that
all the parameters to the plugin are being supplied correctly.</FONT></DIV>
<DIV><FONT size=2>Remember that any changes to nrpe.cfg requires a restart of
the nrpe daemon.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dmpa@tengizchevroil.com href="mailto:dmpa@tengizchevroil.com">Pak,
Dmitry (dmpa)</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=nagiosplug-help@lists.sourceforge.net
href="mailto:nagiosplug-help@lists.sourceforge.net">Nagios Plugin Help
List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, 29 November 2008 7:02
p.m.</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Nagiosplug-help] Regarding
check_disk</DIV>
<DIV><BR></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008>Hi!</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008>Thanks for reply.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008>I did all the checks from Nagios server and when I'm
invoking this command:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008>/usr/local/nagios/libexec/check_nrpe -H
<solaris9_box> -c check_disk (check_disk in this example is the check of
the root slice)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008>I'm receiving this:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008>DISK CRITICAL: / not found</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=060270006-29112008>I already got 2 Solaris9 boxes with such an error,
while others are ok.</SPAN></FONT></DIV><!-- Converted from text/rtf format -->
<P><B><I><SPAN lang=en-us><FONT face=Tahoma color=#3b3b38 size=1>Yours
faithfully,</FONT></SPAN></I></B> <BR><B><SPAN lang=en-us><FONT face=Tahoma
size=1>Dmitry</FONT></SPAN><SPAN lang=ru> <FONT face=Tahoma
size=1>Pak</FONT></SPAN><SPAN lang=en-us></SPAN></B> <BR><SPAN
lang=en-us><FONT face=Tahoma color=#808080 size=1>/usr/bin/ - *NIX+Backup
Team</FONT></SPAN>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Nigel Prentice
[mailto:nigelpr@paradise.net.nz] <BR><B>Sent:</B> Saturday, November 29, 2008
2:59 AM<BR><B>To:</B> Nagios Plugin Help List<BR><B>Subject:</B> Re:
[Nagiosplug-help] Regarding check_disk<BR></FONT><BR>
<P></P>
<DIV></DIV>
<DIV><FONT size=2>If it works correctly on the monitored system
(solaris9_box), then the next thing to verify is from the command line on
the Nagios server <SPAN lang=en-us>(I assume you are not passing any
parameters via check_nrpe) </SPAN>viz:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><nagios-svr> /usr/local/nagios/libexec/check_nrpe -H
<SPAN lang=en-us><FONT face=Arial size=2><solaris9_box> -c
check_disk</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN lang=en-us></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN lang=en-us>This will verify that:</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN lang=en-us>1) the communications are okay (probably in
your case since other checks work), and</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN lang=en-us>2) the nrpe.cfg is correct on
the monitored system (<SPAN lang=en-us><FONT face=Arial
size=2>solaris9_box).</FONT></SPAN></SPAN></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dmpa@tengizchevroil.com href="mailto:dmpa@tengizchevroil.com">Pak,
Dmitry (dmpa)</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=nagiosplug-help@lists.sourceforge.net
href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, 28 November 2008 5:12
p.m.</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Nagiosplug-help] Regarding
check_disk</DIV>
<DIV><BR></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Arial size=2>Hi 2 All!</FONT></SPAN> </P>
<P><SPAN lang=en-us><FONT face=Arial size=2>I got one question regarding
check_disk plugin, it's work actually.</FONT></SPAN> </P>
<P><SPAN lang=en-us><FONT face=Arial size=2>I have Solaris 9 box (SPARC)
with compiled plugins (1.4.13) and NRPE daemon (2.12), done with SSL
support. Monitoring host is RHEL4, working fine.</FONT></SPAN></P>
<P><SPAN lang=en-us><FONT face=Arial size=2>When I'm trying to check some of
the plugins locally (i.e. /usr/local/nagios/libexec/check_disk -w 10% -c 5%
-p /) it's working fine, without errors.</FONT></SPAN></P>
<P><SPAN lang=en-us><FONT face=Arial size=2><solaris9_box>>
/usr/local/nagios/libexec/check_disk -w 10% -c 5% -p /</FONT></SPAN>
<BR><SPAN lang=en-us><FONT face=Arial size=2>DISK OK - free space: / 851 MB
(21% inode=86%);| /=3138MB;3627;3829;0;4031</FONT></SPAN> </P>
<P><SPAN lang=en-us><FONT face=Arial size=2>But when I'm doing it through
monitoring host (via Nagios configuration) - it goes with "DISK CRITICAL: /
not found".</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial size=2>While
all others plugins - such as "CPU Load", "Current Users", "HTTP check" - are
working OK.</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial size=2>It's
not SSL shaking error, because I did all the checks, and other plugins
working OK. But when I'm trying to check disk space - all
faulty.</FONT></SPAN></P>
<P><SPAN lang=en-us><FONT face=Arial size=2>PS. I have a few other Solaris
boxes (v9), with the same versions of plugins and NRPE, compiled the same
way. And all working OK on them regardin disk space
usage.</FONT></SPAN><SPAN lang=ru></SPAN></P>
<P><B><I><SPAN lang=en-us><FONT face=Tahoma color=#3b3b38 size=1>Yours
faithfully,</FONT></SPAN></I></B> <BR><B><SPAN lang=en-us><FONT face=Tahoma
size=1>Dmitry</FONT></SPAN><SPAN lang=ru> <FONT face=Tahoma
size=1>Pak</FONT></SPAN><SPAN lang=en-us></SPAN></B> <BR><SPAN
lang=en-us><FONT face=Tahoma color=#808080 size=1>/usr/bin/ - *NIX+Backup
Team</FONT></SPAN> </P>
<P>
<HR>
<P></P>-------------------------------------------------------------------------<BR>This
SF.Net email is sponsored by the Moblin Your Move Developer's
challenge<BR>Build the coolest Linux based applications with Moblin SDK
& win great prizes<BR>Grand prize is a trip for two to an Open Source
event anywhere in the
world<BR>http://moblin-contest.org/redirect.php?banner_id=100&url=/
<P>
<HR>
<P></P>_______________________________________________<BR>Nagiosplug-help
mailing
list<BR>Nagiosplug-help@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help<BR>:::
Please include plugins version (-v) and OS when reporting any issue. <BR>:::
Messages without supporting info will risk being sent to /dev/null<BR>
<P>
<HR>
<P></P><BR>No virus found in this incoming message.<BR>Checked by AVG -
http://www.avg.com <BR>Version: 8.0.176 / Virus Database: 270.9.11/1817 -
Release Date: 11/28/2008 8:17 AM<BR></BLOCKQUOTE>
<P>
<HR>
<P></P>-------------------------------------------------------------------------<BR>This
SF.Net email is sponsored by the Moblin Your Move Developer's
challenge<BR>Build the coolest Linux based applications with Moblin SDK &
win great prizes<BR>Grand prize is a trip for two to an Open Source event
anywhere in the
world<BR>http://moblin-contest.org/redirect.php?banner_id=100&url=/
<P>
<HR>
<P></P>_______________________________________________<BR>Nagiosplug-help
mailing
list<BR>Nagiosplug-help@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help<BR>:::
Please include plugins version (-v) and OS when reporting any issue. <BR>:::
Messages without supporting info will risk being sent to /dev/null<BR>
<P>
<HR>
<P></P><BR>No virus found in this incoming message.<BR>Checked by AVG -
http://www.avg.com <BR>Version: 8.0.176 / Virus Database: 270.9.11/1817 -
Release Date: 11/28/2008 8:17 AM<BR></BLOCKQUOTE></BODY></HTML>