<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:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>check_if_by_snmp output</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:2 7 4 9 2 2 5 2 4 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:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Tahoma;
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma;color:blue'>Hi Gritsch,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma;color:blue'>I tried executing the command but it
seems the command is not there in the system. I have installed net-snmp on the
system. Can you please let me know whether snmpwalk comes along with net-snmp
package or I need to install some other package separately to get the snmpwalk?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma;color:blue'>Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma;color:blue'>Dash<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma;color:blue'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Gritsch Peter
[mailto:peter.gritsch@fh-joanneum.at] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, March 15, 2006
7:49 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Mrutyunjaya Dash<br>
<b><span style='font-weight:bold'>Subject:</span></b> AW: [Nagios-users]
check_if_by_snmp output</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Hi Dash!</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Looks like a problem with SNMP generally.
Did you set up a default community file?</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Try</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><span class=input><!--StartFragment --><font size=2
face=Courier><span style='font-size:10.0pt;font-family:Courier'>snmpwalk -v
2c -c `cat $HOME/.snmp4nagios/community` \</span></font></span><o:p></o:p></p>
<p class=MsoNormal><span class=input><font size=2 face=Courier><span
style='font-size:10.0pt;font-family:Courier'>localhost .1.3.6.1.2.1.1</span></font></span><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'> </span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Unless this returns some information about
localhost, there is likely a problem with either</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>the snmp agent @ localhost or the way
communities are configured in SNMP4Nagios.</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Run with -v -v -v and check the log
(/var/log/messages usually) for the community the plugin</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>uses.</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Concerning the "Nagios Plugins"
Style output you describe below: Use the command line</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>switch "-N" to get this (i.e.
use something like</span></font><o:p></o:p></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 face=Courier><span style='font-size:10.0pt;
font-family:Courier'>./check_if_by_snmp -R /opt/rrdtool/ \</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 face=Courier><span style='font-size:10.0pt;
font-family:Courier'>-T -L -H localhost -i 2 -I eth0 -N</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Hope that helps,</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Peter</span></font><o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=DE style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabIndex=-1>
</span></font></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
lang=DE style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>Von:</span></font></b><font
size=2 face=Tahoma><span lang=DE style='font-size:10.0pt;font-family:Tahoma'>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <b><span style='font-weight:
bold'>Im Auftrag von </span></b>Mrutyunjaya Dash<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Mittwoch, 15. </span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>März 2006
14:51<br>
<b><span style='font-weight:bold'>An:</span></b>
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Betreff:</span></b> [Nagios-users]
check_if_by_snmp output</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><!-- Converted from text/rtf format -->Hi
List,</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>I
just installed the snmp4nagios with all the required libraries.</span></font> <font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Now when I
am trying to execute the following command,</span></font> <font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>I am</span></font>
<font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>getting
the output as below. But according to the document, the output should be
something</span></font> <font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>in</span></font> <font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>different way.</span></font> <font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>I believe
there is something wrong.</span></font> <font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Can</span></font> <font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>anyone</span></font>
<font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>give
some idea on this?</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>./check_if_by_snmp
-R /opt/rrdtool/ -T -L -H localhost -i 2 -I eth0</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Timeout!
Peer = localhost, OID = 1.3.6.1.2.1.2.2.1.7.2</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Whereas
the output should be in this way as below</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>OK
- eth0: I: 1410937 kO, 12672117 Pkt; O: 1339265 kO, 12722878 Pkt</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>|’estimated
speed’=100000000</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>’input
octets’=1444800491c ’input packets’=12672117c ’input
errors’=0c</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>’output
octets’=1371407644c ’output packets’=12722878c ’output
errors’=0c</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Regards,</span></font><o:p></o:p></p>
<p><a name=""><i><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-style:italic'>Mrutyunjaya Dash</span></font></i></a><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>IT
Engineer</span></font><o:p></o:p></p>
<p><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Juniper
Networks Pvt Ltd.</span></font><o:p></o:p></p>
<p><st1:place w:st="on"><st1:City w:st="on"><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Bangalore</span></font></st1:City></st1:place><o:p></o:p></p>
</blockquote>
</div>
</body>
</html>