<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2><SPAN class=677485115-26082004>where have U put
these lines in your script ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=677485115-26082004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=677485115-26082004>and i've another
problem with apan...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=677485115-26082004>I can't put the icon
and link in the services</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left><FONT face=Tahoma
size=2>-----Message d'origine-----<BR><B>De :</B> Tim Stoddard
[mailto:testoddard@ualr.edu] <BR><B>Envoyé :</B> jeudi 26 août 2004
16:20<BR><B>À :</B> HUDRY Olivier<BR><B>Cc :</B>
nagios-users@lists.sourceforge.net<BR><B>Objet :</B> Re: [Nagios-users]
apan snmp plugin problem<BR><BR></FONT></DIV><TT>I got the same problem when I
installed APAN on Nagios. I ended up hacking the snmp.sh that come with
APAN. One of the shell variables was not getting set correctly, so I
ended up creating a work around. The $NF variable in the following line
needs to 4, however I cannot find where it gets set. This $VALUE is the
output line that APAN has to parse. The fourth value is the
actual snmp value APAN is looking for.
</TT><BR><BR><BR><TT>
COUNTER=`echo $VALUE|awk '{print $NF}'`</TT><BR><BR><TT>I added the following
and APAN began to work like champ. </TT><BR><BR><TT>#It would seem the
$NF variable is not getting set</TT><BR><TT>NF=4</TT><BR><TT>#echo
"$NF"</TT><BR><TT>
STATUS=$?</TT><BR><TT>
COUNTER=`echo $VALUE|awk '{print $NF}'`</TT><BR><BR><TT>My shell scripting is
not great. I am sure someone else could pretty this up. Hope this
helps. </TT><BR><PRE class=moz-signature cols="72">--
Timothy Stoddard
</PRE><BR>HUDRY Olivier wrote:<BR>
<BLOCKQUOTE
cite=mid4A7F0CFD7524F2479E23018A4E840B363B069D@gipexch.gip.gip-cps.fr
type="cite">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><SPAN
class=180191109-26082004>hi,</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=180191109-26082004>I'm trying to
monitor some disk usage with apan-sql</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=180191109-26082004>i've
created:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=180191109-26082004>- service in
nagios</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=180191109-26082004>-
serviceext</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=180191109-26082004>- database
record with apanconf</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><SPAN class=180191109-26082004><FONT face=Arial size=2>and i'can't get
info from this plug-in.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=180191109-26082004><FONT face=Arial size=2>the message in
nagios is:</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=180191109-26082004>(Return code of 127 is out of bounds -
plugin may be missing) </SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=180191109-26082004><FONT face=Arial size=2>thanks for your
help</FONT></SPAN></DIV></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial
size=2>-----------------------------------------------------</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial
size=2>
Olivier HUDRY</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2>Technicien d'exploitation -
Pôle E&A</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial
size=2> <A
href="mailto:o.hudry@gip-cps.fr">o.hudry@gip-cps.fr</A></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial
size=2>-----------------------------------------------------</FONT></DIV>
<DIV> </DIV></BLOCKQUOTE><BR><PRE class=moz-signature cols="72"></PRE></BLOCKQUOTE></BODY></HTML>