NAGIOS SNMP Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

NAGIOS SNMP Monitoring

Post by wipro-cloud-services »

Team,
We are trying to configure monitoring using SNMP service. We have executed the below commands in client machine but error message states "ERROR: Description/Type table : Requested table is empty or does not exist." Please let us know what could be the problem and help us in resolving.
Commands:
cd /etc/snmp
mv snmpd.conf snmpd.conf.bak
vi snmpd.conf
rocommunity public 134.163.34.0/23
rocommunity public 10.194.25.0/26
/etc/init.d snmpd restart
iptables -I INPUT -p udp --destination-port 161 -j ACCEPT
/etc/init.d/iptables save
chkconfig snmpd on
/etc/init.d/snmpd start

Warm regards,
Sumanth Kumar
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NAGIOS SNMP Monitoring

Post by scottwilkerson »

What is the command you are using that gets back "ERROR: Description/Type table : Requested table is empty or does not exist." Maybe we have an invalid OID?

Can you run
./check_snmp -H <IP_ADDRESS> -C public -o sysUpTime.0
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

Re: NAGIOS SNMP Monitoring

Post by wipro-cloud-services »

We are receiving error after configuring the client machine in Nagios XI Web console.
Command Output:
# ./check_snmp -H 10.194.130.156 -C public -o sysUpTime.0
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 10.194.130.156:161 sysUpTime.0

This seems to be a connection problem. Can you please confirm.

We are not using SNMP community string as "PUBLIC", we have given as "testacc". Should we change the command as "rocommunity testacc <IP-ADDRESS>"
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

Re: NAGIOS SNMP Monitoring

Post by wipro-cloud-services »

Also, executed below command and connection was successful..

[root@ip-10-194-150-8 libexec]# ./check_snmp -H 10.194.130.156 -C testacc -o sysUpTime.0
SNMP OK - Timeticks: (14862727) 1 day, 17:17:07.27 |

Instead of Public, i have used testacc.
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

Re: NAGIOS SNMP Monitoring

Post by wipro-cloud-services »

Is there any way to enter the OID in config file. copied below are config file entries...

###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-11-22 05:39:12
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define host {
host_name zew-v-0ac2829c.vpc2-eu.aws.shell-cloud.com
use xiwizard_linuxsnmp_host
address 10.194.130.156
parents localhost
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
icon_image snmppenguin.png
statusmap_image snmppenguin.png
_xiwizard linuxsnmp
register 1
}

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NAGIOS SNMP Monitoring

Post by scottwilkerson »

wipro-cloud-services wrote:Also, executed below command and connection was successful..

[root@ip-10-194-150-8 libexec]# ./check_snmp -H 10.194.130.156 -C testacc -o sysUpTime.0
SNMP OK - Timeticks: (14862727) 1 day, 17:17:07.27 |

Instead of Public, i have used testacc.
Ok, this looks like it worked...

I would try again replacing sysUpTime.0 with the OID you want to check.
wipro-cloud-services wrote:Is there any way to enter the OID in config file. copied below are config file entries...
This is just the host check, normally you would make the changed in the CCM for the particular service and the OID will go in there
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

Re: NAGIOS SNMP Monitoring

Post by wipro-cloud-services »

Any updates, Still facing same error......
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NAGIOS SNMP Monitoring

Post by scottwilkerson »

did you
scottwilkerson wrote:try again replacing sysUpTime.0 with the OID you want to check.
??
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
wipro-cloud-services
Posts: 58
Joined: Thu Nov 11, 2010 4:42 am

Re: NAGIOS SNMP Monitoring

Post by wipro-cloud-services »

[root@ip-10-194-150-8 libexec]# ./check_snmp -H 10.194.130.156 -C testacc -o NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 10.194.130.156:161 NET-SNMP-MIB::netSnmpAgentOIDs.10
[root@ip-10-194-150-8 libexec]#

replaced with OID, still same error.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NAGIOS SNMP Monitoring

Post by scottwilkerson »

This is the response you will get if the OID is not found on the system you are querying

You might want to walk the tree grepping for the value

Code: Select all

/usr/bin/snmpwalk -t 1 -r 5 -m ALL -v 1 -c testacc 10.194.130.156 |grep netSnmpAgentOIDs
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked