<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY bgColor=#ffffff text=#000099>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>I have Nagios installed also on Ubuntu 8.10, and I
installed net-snmp like this: </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>a) Download the file net-snmp-5.4.2.1.tar.gz from
Sourceforge.net.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>b) Untar the file: tar -xvf
net-snmp-5.4.2.1.tar.gz</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>c) cd net-snmp-5.4.2.1</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>d) ./configure</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>e) make</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>f) make install</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>And done... </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>Hope this helps...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>Best regards, </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009>
Alejandro</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009><SPAN lang=ES-MODERN>
<P>==</P>
<P>Alejandro Sanchez Merono<BR>Area de Informatica y Comunicaciones<BR>Instituto
de Tecnologia Electrica - </SPAN><A href="http://www.ite.es/"><U><FONT
color=#0000ff size=2><FONT color=#0000ff size=2><SPAN
lang=ES-MODERN>http://www.ite.es</U></FONT></FONT></SPAN></A><FONT size=2><SPAN
lang=ES-MODERN> <BR>Valencia - Spain</P></FONT></SPAN></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=602124807-11052009></SPAN></FONT> </DIV><FONT color=#0000ff size=2
face=Arial></FONT><FONT color=#0000ff size=2 face=Arial></FONT><FONT
color=#0000ff size=2 face=Arial></FONT><FONT color=#0000ff size=2
face=Arial></FONT><FONT color=#0000ff size=2 face=Arial></FONT><FONT
color=#0000ff size=2 face=Arial></FONT><FONT color=#0000ff size=2
face=Arial></FONT><FONT color=#0000ff size=2 face=Arial></FONT><FONT
color=#0000ff size=2 face=Arial></FONT><BR>
<DIV dir=ltr lang=es class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>De:</B> Andrew Davis [mailto:nccomp@gmail.com]
<BR><B>Enviado el:</B> viernes, 08 de mayo de 2009 14:46<BR><B>Para:</B> Mike
Saldivar; nagios-users@lists.sourceforge.net<BR><B>Asunto:</B> Re:
[Nagios-users] Monitoring switches via SNMP --<BR></FONT></DIV>
<BLOCKQUOTE cite=mid:61ab46280905071615x6ae653dara4adfecdf0476977@mail.gmail.com
type="cite">
<DIV><SPAN class=602124807-11052009><FONT color=#0000ff size=2
face=Arial>(...) </FONT></SPAN></DIV>
<DIV><SPAN class=602124807-11052009> </SPAN><BR>I changed
ifOperStatus.INSIDE from ifOperStatus.1 because an snmpwalk on the device said
that's what this port name was, but I can change it back. But googling
the error (Return code of 127 ...) seems to indicate I'm missing net-snmp or
net-snmp-util, but I'm not sure how to install them -- can't do a rpm -qa on
Ubuntu, and I don't know what the corresponding command is with apt-get.
But searching the Ubuntu repositories, I can' find an equivalent to
net-snmp-util, so I think that's the problem. Snmpwalk works though, so
I figure I have something half-working...<BR><BR><BR>The other error I see
is:<BR><BR>---<BR>Port 1 Bandwidth UNKNOWN 05-07-2009
17:02:24 0d 2h 38m 14s 3/3
check_mrtgtraf: Unable to open MRTG log file
<BR><BR>---<BR>define service{<BR>
use
generic-service ; Inherit values from a
template<BR>
host_name
CCLogan-ASA5510-1<BR>
service_description Port 1
Bandwidth<BR>
check_command
check_local_mrtgtraf!/var/lib/mrtg/10.5.1.2_1.log!AVG!1000000,1000000!5000000,5000000!10<BR>
}<BR>---<BR><BR>I looked, and /var/lib/mrtg/ didn't exist. Googling, I
saw a tip to change it to /var/www/mrtg/, but that directory didn't exist
either. I created /var/lib/mrtg/ and chown'd it to nagios:nagios and
restarted Nagios, but still nothing. Is there a mrtg config file I need
to edit?<BR><BR>Should I check into check_cisco.pl, or does that work better
for the huge switches than the itty-bitty 4-porters?<BR><BR>Thanks a
heap,<BR>-Mike<BR></DIV></BLOCKQUOTE></BODY></HTML>