SNMP not in use

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

Moderators: Developers, Moderators

Post Reply
catchy
Posts: 3
Joined: Mon Dec 12, 2005 6:25 am

SNMP not in use

Post by catchy »

I've got "SNMP not in use" under "Localhost (127.0.0.1)".

Also in "Data Query Debug Information" is

Code: Select all

+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
Of course SNMPd is running:

Code: Select all

# ps auxw | grep snmp

root  19691  0.0  0.5  11396  5404 ?   S  Dec07   0:00 /usr/sbin/snmpd -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf
Whta's wrong?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

"Localhost" uses the "Local Linux Machine" host template, which AFAIK does not use SNMP queries.

Try to change the host template for this device (use "ucd/net SNMP Host").
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
catchy
Posts: 3
Joined: Mon Dec 12, 2005 6:25 am

Post by catchy »

Did not help the situation.

Still "SNMP not in use".
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try to run snmpwalk against localhost to verify the correct configuration of snmpd (even if snmpd runs, it will not necessarily respond to your requests). Please post your findings
Reinhard
catchy
Posts: 3
Joined: Mon Dec 12, 2005 6:25 am

Post by catchy »

Code: Select all

# snmpwalk -Os -c public -v 1 192.168.xxx.yyy system

sysDescr.0 = STRING: Linux foo 2.6.11.12-grsec #6 SMP Mon Nov 21 11:39:04 CET 2005 i686
sysObjectID.0 = OID: netSnmpAgentOIDs.10
sysUpTime.0 = Timeticks: (59123506) 6 days, 20:13:55.06
sysContact.0 = STRING: Me <root@xxx.tld>
sysName.0 = STRING: student
sysLocation.0 = STRING: MyLocation
sysORLastChange.0 = Timeticks: (5) 0:00:00.05
sysORID.1 = OID: ifMIB
sysORID.2 = OID: snmpMIB
sysORID.3 = OID: tcpMIB
sysORID.4 = OID: ip
sysORID.5 = OID: udpMIB
sysORID.6 = OID: vacmBasicGroup
sysORID.7 = OID: snmpFrameworkMIBCompliance
sysORID.8 = OID: snmpMPDCompliance
sysORID.9 = OID: usmMIBCompliance
sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
sysORDescr.3 = STRING: The MIB module for managing TCP implementations
sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
sysORDescr.5 = STRING: The MIB module for managing UDP implementations
sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
sysORUpTime.1 = Timeticks: (2) 0:00:00.02
sysORUpTime.2 = Timeticks: (3) 0:00:00.03
sysORUpTime.3 = Timeticks: (3) 0:00:00.03
sysORUpTime.4 = Timeticks: (3) 0:00:00.03
sysORUpTime.5 = Timeticks: (3) 0:00:00.03
sysORUpTime.6 = Timeticks: (3) 0:00:00.03
sysORUpTime.7 = Timeticks: (5) 0:00:00.05
sysORUpTime.8 = Timeticks: (5) 0:00:00.05
sysORUpTime.9 = Timeticks: (5) 0:00:00.05
I used IP (192.168.xxx.yyy). Localhost and IP got same results.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you set up the paths to the snmp binaries? Goto Settings -> Paths. To debug further, Settings -> Log Level will help when set to DEBUG mode. Find anything cacti's poller is doing at cacti.log. For sure you provided the correct community string for your host in the Device screen?
Reinhard
capmax
Posts: 14
Joined: Tue Dec 18, 2007 6:07 am
Location: Lille, France

Post by capmax »

In the device page information of local host, make sure you have filled in the field "SNMP Community" with the value "public". It worked for me. :)

http://www.youritronics.com/2007/11/09/ ... -in-cacti/
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests