<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<META content="Microsoft Word 10" name=Originator><LINK
href="cid:filelist.xml@01C4FA64.4495AD30" rel=File-List><o:SmartTagType
name="date"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: SimSun;
}
@font-face {
font-family: @SimSun;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: SimSun
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: SimSun
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: SimSun
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
page: Section1
}
OL {
MARGIN-BOTTOM: 0in
}
UL {
MARGIN-BOTTOM: 0in
}
</STYLE>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=EN-US style="tab-interval: .5in" vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2>Tom,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2>I not sure if you have gotten any
feedback on your problem/question, but try doing
"/usr/local/nagios/libexec/check_disk --help"; this will maybe show you where
you may be going wrong. Also what does your "check_command" in the service
definition look like for checking /var on hosta in your services.cfg file and
then verify that command name in your checkcommands.cfg
file.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2>If I'm reading your email correctly it
appears that you have hard coded the "80 90 /var" into the nrpe.cfg file in
hosta, usually these are arguments that are passed to it so that the same
command can be used for other filesystems (/opt, /usr, etc.).
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2>Usage: check_disk -w limit -c limit
[-p path]</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2>The "limit" can be either in kilobytes
or in percentage (%). So if you want <STRONG>Warning</STRONG> at 80% full and
<STRONG>Critical</STRONG> at 90% full the command would look
like:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2>check_disk -w 20% -c 10% -p
/var</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2>I hope some of this
helps.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2>Rudy</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=171461515-18012005><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
nagiosplug-help-admin@lists.sourceforge.net
[mailto:nagiosplug-help-admin@lists.sourceforge.net] <B>On Behalf Of </B>Tom
Luong<BR><B>Sent:</B> Friday, January 14, 2005 8:09 PM<BR><B>To:</B>
'nagiosplug-help@lists.sourceforge.net'<BR><B>Subject:</B> [Nagiosplug-help] odd
nrpe and check_disk issue<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have a really odd one here.<SPAN
style="mso-spacerun: yes"> </SPAN>I can't get the status of a <SPAN
class=SpellE>check_disk</SPAN> from a remote host. The commands seem to work
with I run them manually but <SPAN class=SpellE>Nagios</SPAN> can't seem to make
out that response from the remote host.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Facts:<o:p></o:p></SPAN></FONT></P>
<OL style="mso-margin-top-alt: 0in" type=1>
<LI class=MsoNormal
style="mso-list: l1 level1 lfo1; tab-stops: list .5in"><FONT face=Arial
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I can manually run
<SPAN class=SpellE>check_disk</SPAN> on my client box(<SPAN
class=SpellE>hosta</SPAN>) to get an answer <o:p></o:p></SPAN></FONT></LI></OL>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[<SPAN
class=SpellE>root@hosta</SPAN>]# /<SPAN
class=SpellE>usr/local/nagios/libexec/check_disk</SPAN> 80 90 /<SPAN
class=SpellE>var</SPAN><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">DISK OK - [6142028 <SPAN
class=SpellE>kB</SPAN> (73%) free on /dev/sdb1]<o:p></o:p></SPAN></FONT></P>
<OL style="mso-margin-top-alt: 0in" type=1 start=2>
<LI class=MsoNormal
style="mso-list: l1 level1 lfo1; tab-stops: list .5in"><FONT face=Arial
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">manually run <SPAN
class=SpellE>check_nrpe</SPAN> on my <SPAN class=SpellE>Nagios</SPAN>
server(<SPAN class=SpellE>hostb</SPAN>) as <SPAN class=SpellE>Nagios</SPAN>
user and successfully retrieve a <SPAN class=SpellE>responsys</SPAN> from
<SPAN class=SpellE>hosta</SPAN> <o:p></o:p></SPAN></FONT></LI></OL>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">[<SPAN
class=SpellE>nagios@hostb</SPAN>]# /<SPAN
class=SpellE>usr/local/nagios/libexec/check_nrpe</SPAN> <SPAN
class=SpellE>hosta</SPAN> -c check_disk1<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">DISK OK [4490880 <SPAN
class=SpellE>kB</SPAN> (53%) free on /dev/sdb1]<o:p></o:p></SPAN></FONT></P>
<OL style="mso-margin-top-alt: 0in" type=1 start=3>
<LI class=MsoNormal
style="mso-list: l1 level1 lfo1; tab-stops: list .5in"><FONT face=Arial
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">both my <SPAN
class=SpellE>check_nrpe</SPAN> and <SPAN class=SpellE>nrpe</SPAN>
are:<o:p></o:p></SPAN></FONT> </LI></OL>
<P class=MsoNormal style="TEXT-INDENT: 0.5in"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Version:
1.5<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 0.5in"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Last Modified:
</SPAN></FONT><st1:date
style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
tabIndex=0 Year="2002" Day="3" Month="6"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">06-03-2002</SPAN></FONT></st1:date><FONT
face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 0.5in"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">License:
GPL<o:p></o:p></SPAN></FONT></P>
<OL style="mso-margin-top-alt: 0in" type=1 start=4>
<LI class=MsoNormal
style="mso-list: l1 level1 lfo1; tab-stops: list .5in"><FONT face=Arial
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">command in my <SPAN
class=SpellE>nrpe.cfg</SPAN>: command[check_disk1]=/<SPAN
class=SpellE>usr/local/nagios/libexec/check_disk</SPAN> 80 90 /<SPAN
class=SpellE>var</SPAN><o:p></o:p></SPAN></FONT> </LI></OL>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Issue:<o:p></o:p></SPAN></FONT></P>
<OL style="mso-margin-top-alt: 0in" type=1>
<LI class=MsoNormal
style="mso-list: l0 level1 lfo2; tab-stops: list .5in"><SPAN
class=SpellE><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Nagios</SPAN></FONT></SPAN><FONT
face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> Service
Details page shows "Unable to read output"<o:p></o:p></SPAN></FONT>
<LI class=MsoNormal
style="mso-list: l0 level1 lfo2; tab-stops: list .5in"><FONT face=Arial
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I want <SPAN
class=SpellE>Nagios</SPAN> to be able to check disk space on the remote
hosts<o:p></o:p></SPAN></FONT> </LI></OL>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">What I have done so far to try to
resolve this without success:<o:p></o:p></SPAN></FONT></P>
<OL style="mso-margin-top-alt: 0in" type=1>
<LI class=MsoNormal
style="mso-list: l2 level1 lfo3; tab-stops: list .5in"><FONT face=Arial
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have tried changing
the syntax of the <SPAN class=SpellE>check_disk</SPAN> command to
<o:p></o:p></SPAN></FONT></LI></OL>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN class=GramE><FONT face=Arial
size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">command[</SPAN></FONT></SPAN><FONT
face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">check_disk1]=/<SPAN
class=SpellE>usr/local/nagios/libexec/check_disk</SPAN> -w 20 -c 10 -p /<SPAN
class=SpellE>var</SPAN><o:p></o:p></SPAN></FONT></P>
<OL style="mso-margin-top-alt: 0in" type=1 start=2>
<LI class=MsoNormal
style="mso-list: l2 level1 lfo3; tab-stops: list .5in"><FONT face=Arial
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">check permission of
user on server and remote host running <SPAN class=SpellE>check_nrpe</SPAN>
and <SPAN class=SpellE>nrpe</SPAN><o:p></o:p></SPAN></FONT> </LI></OL>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Has anymore experience with
this?<SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks in advance for your
help.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Tom<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P></DIV></BODY></HTML>