So i installed nagios on debian on a VM, and i was able to configure it pretty easily using the nagios.org Nagios Core Quick Start Guides: http://nagios.sourceforge.net/docs/3_0/ ... uters.html. I tested the configurations, and made sure i got no errors. I started by configuring they system to check a managed switch.
When i go to the Web UI, on /nagios3/ I'm getting the "No OIDs specified" next to the two check_snmp services i have, just like many others have gotten. Except that i tried all the things that made the others work.
As usual, when called from command line, check_snmp works great. But i went even further: i created a wrapper around check_snmp that would print stderr and stdout to a log file, basically simply
Code: Select all
/usr/lib/nagios/plugins/check_snmp_orig $* &> /tmp/check_snmp.output
I knew this would return errors, cuz i wasn't teeing the output, so nagios couldn't catch it. But all i needed was to look at the log file, and the log file contained successful information, similar to what i was getting at the command line!
So now i know the check works OK, even when called by nagios, but the the WEB UI still reports "No OIDs specified".
What's going on? Is maybe the check_snmp not supported by nagios3? Why isn't the check_snmp plugin in the manual page documentation for the nagios3 plugins http://nagios-plugins.org/doc/man/index.html?
So here are the services:
Code: Select all
define service{
use generic-service ; Inherit values from a template
host_name l2.momo.lan.afm.co
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}
define service{
use generic-service ; Inherit values from a template
host_name l2.momo.lan.afm.co
service_description Port 1 Link Status
check_command check_snmp!-C public -o .1.3.6.1.2.1.2.2.1.8.1 -r 1 -m RFC1213-MIB
}
Code: Select all
# 'check_snmp' command definition
define command{
command_name check_snmp
command_line /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' '$ARG1$'
}