Problem with SNMP monitoring (timeout: No Response)
Posted: Tue Feb 17, 2015 9:27 pm
Hi all,
I'm having trouble with getting the SNMP to work with Nagios. I have Nagios® Core™ Version 4.0.8 on a Ubuntu Linux 14.04.1
The SNMP version is snmpd 5.7.2
I have it installed, I have cacti Installed in the same machine and the SNMP works fine with it, it captures traffic and read the Cisco devices with cacti, so, I have discarded Firewall issues or connectivity.
When I run $ sudo snmpwalk localhost -v 1 -c public , the command works fine and gives me the information on the server.
When I run $ sudo snmpwalk 1xx.x9.x2.x6 -c anything -v1
I get:
Timeout: No Response from 1xx.x9.x2.x6
If I run the snmp_check command from nagios libexec I get:
sudo ./check_snmp -H 1xx.x9.x2.x6 -C anything -o ifOperStatus.1 -P 1
External command error: Timeout: No Response from 1xx.x9.x2.x6:161.
I had removed the SNMP software several times, and install it again.
$ sudo /usr/sbin/snmpd -f
Error opening specified endpoint ""
Server Exiting with code 1
The configuration is the following..
***** /etc/snmp/snmpd.conf*****
###############################################################################
# Access Control
###############################################################################
com2sec readonly localhost public
group MyROGroup v1 readonly
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
syslocation Wonderland
syscontact Alice
###############################################################################
# Embedded Subagents
###############################################################################
#perl do "tests/check_snmp_agent.pl";
************************ /etc/default/snmpd***********************************************************
# This file controls the activity of snmpd and snmptrapd
# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBS=UCD-SNMP-MIB
# snmpd control (yes means start daemon).
SNMPDRUN=yes
# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /var/run/snmpd.pid'
# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
TRAPDRUN=no
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
If anyone has any ideas I really appreciated.. I've been struggling with this for quite long time now..
Thank you..
I'm having trouble with getting the SNMP to work with Nagios. I have Nagios® Core™ Version 4.0.8 on a Ubuntu Linux 14.04.1
The SNMP version is snmpd 5.7.2
I have it installed, I have cacti Installed in the same machine and the SNMP works fine with it, it captures traffic and read the Cisco devices with cacti, so, I have discarded Firewall issues or connectivity.
When I run $ sudo snmpwalk localhost -v 1 -c public , the command works fine and gives me the information on the server.
When I run $ sudo snmpwalk 1xx.x9.x2.x6 -c anything -v1
I get:
Timeout: No Response from 1xx.x9.x2.x6
If I run the snmp_check command from nagios libexec I get:
sudo ./check_snmp -H 1xx.x9.x2.x6 -C anything -o ifOperStatus.1 -P 1
External command error: Timeout: No Response from 1xx.x9.x2.x6:161.
I had removed the SNMP software several times, and install it again.
$ sudo /usr/sbin/snmpd -f
Error opening specified endpoint ""
Server Exiting with code 1
The configuration is the following..
***** /etc/snmp/snmpd.conf*****
###############################################################################
# Access Control
###############################################################################
com2sec readonly localhost public
group MyROGroup v1 readonly
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
syslocation Wonderland
syscontact Alice
###############################################################################
# Embedded Subagents
###############################################################################
#perl do "tests/check_snmp_agent.pl";
************************ /etc/default/snmpd***********************************************************
# This file controls the activity of snmpd and snmptrapd
# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBS=UCD-SNMP-MIB
# snmpd control (yes means start daemon).
SNMPDRUN=yes
# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /var/run/snmpd.pid'
# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
TRAPDRUN=no
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
If anyone has any ideas I really appreciated.. I've been struggling with this for quite long time now..
Thank you..