snmp error adding device

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
tonyd
Posts: 18
Joined: Tue Aug 12, 2008 3:23 am

snmp error adding device

Post by tonyd »

Hello,

I'm setting up a new Cacti server and running into a problem with snmp or cacti. When adding a device I get a snmp error. Localhost is working. I can query an host/device off network from the command line and get a response from the very same host that fails when adding it as a device. I've verified that the community string and version are correct. Also checked firewall. No outbound rules in place, only inbound for ssh and icmp. Below I show that the server can query and get response for both the root and cacti user. I'm not sure what I may be missing.

Thank for assistance

td

Query remote device as Root user

Code: Select all

[root@cacti tonyd]# snmpwalk -v2c -c Dkleioakld*.3 as1.mvp
SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software 
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA6, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Fri 21-Oct-05 01:59 by yenanh
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.359
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (61281184) 7 days, 2:13:31.84
Query remote device as Cacti user

Code: Select all

[cacti@cacti ~]$ snmpwalk -v 1 -c Dkleioakld*.3 as1.mvp
SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software 
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA6, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Fri 21-Oct-05 01:59 by yenanh
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.359
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (61295512) 7 days, 2:15:55.12
Attachments
cacti.png
cacti.png (94.18 KiB) Viewed 2079 times
tonyd
Posts: 18
Joined: Tue Aug 12, 2008 3:23 am

Re: snmp error adding device

Post by tonyd »

I'm hoping someone can shed some light. I can execute an snmpget, walk, etc from the command line as the cacti user. But from the webui I get the SNMP Error when saving device. Only the local host will graph. You help would much appreciated.

Set the log level to DEBUG.

Output snippet

Code: Select all

01/14/2015 05:09:58 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'as1.mvp', and OID:'.1.3.6.1.2.1.1.1.0'

Code: Select all

[root@cacti cacti]# usermod -s /bin/bash cacti 
[root@cacti cacti]# su - cacti
-bash-4.1$ snmpget -v2c -c xxxxxxx as1.mvp .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software 
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA6, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Fri 21-Oct-05 01:59 by yenanh
Thank you

td
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests