<div class="gmail_quote">On Thu, May 7, 2009 at 5:15 PM, Mike Saldivar <span dir="ltr"><<a href="mailto:mike.saldivar@advocatecreditrepair.com">mike.saldivar@advocatecreditrepair.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br><br>I have a new installation of Nagios, Version 3.0.6, running on Ubuntu 8.10.  I followed the Quick Start guide for Ubuntu, and everything went swimmingly, installing Nagios, the Plug-ins, Apache, et al.  Nagios started up and monitored itself, and following the quick-starts for Linux and Windows, I've been able to get it to monitor all my hosts.<br>

<br>So I'm now trying to get it to monitor a Cisco ASA 5510 VPN.  On the ASA, I enabled SNMP, and pointed it to the Nagios machine for reporting.<br><br>On the Nagios box, I copied up the switch.cfg, changed the IP address and hostname, etc, following the instructions:<br>

<a href="http://nagios.sourceforge.net/docs/3_0/monitoring-routers.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/monitoring-routers.html</a><br><br>Restarting, I see these errors such as this.  Posting the error, then the corresponding portion of the switch.cfg:<br>

<br>Inside Interface   CRITICAL     05-07-2009 16:54:07     0d 2h 53m 31s     3/3     (Return code of 127 is out of bounds - plugin may be missing) <br></blockquote></div><br><br>Ah ha, I've discovered that check_snmp was not installed with the rest of the Nagios plugins.  Apparently, if net-snmp and net-snmp-utils are not already installed, the plugins installer skips installing that plugin.<br>
<br>Here's a configure of check_snmp 1.4, freshly downloaded from Nagios Exchange: <br><br>root@dfslit1:~/check_snmp-1.4# ./configure<br>checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether build environment is sane... yes<br>
checking for gawk... no<br>checking for mawk... mawk<br>checking whether make sets $(MAKE)... yes<br>checking for gcc... gcc<br>checking for C compiler default output file name... a.out<br>checking whether the C compiler works... yes<br>
checking whether we are cross compiling... no<br>checking for suffix of executables...<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>
checking for gcc option to accept ANSI C... none needed<br>checking for style of include used by make... GNU<br>checking dependency style of gcc... gcc3<br>checking whether gcc and cc understand -c and -o together... yes<br>
checking for net-snmp-config... /usr/bin/net-snmp-config<br>checking for init_snmp in -lnetsnmp... no<br>configure: error: snmp library not found<br><br>I looked through the Ubuntu package website, and tried installing any package I could find that's related to SNMP, but already have them all installed.<br>
<br>snmp is already the newest version.<br>libsnmp-base is already the newest version.<br>libsnmp15 is already the newest version.<br>snmpd is already the newest version.<br>libsnmp-perl is already the newest version.<br>
<br>Is there an inherent incompatibility between Ubuntu 8.10 and the check_snmp plugin?  Do I need to go the all Perl/CPAN route?  I can perform snmpwalks, but I don't know of any other way to find out what I'm missing.<br>
<br>nagios@dfslit1:~$ snmpwalk -v1 -c public 10.5.1.2 system<br>SNMPv2-MIB::sysDescr.0 = STRING: Cisco Adaptive Security Appliance Version 7.0(4)<br>SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.669<br>[...]<br>
<br>Thanks,<br>-Mike<br>