LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SNMP conundrum (https://www.linuxquestions.org/questions/linux-newbie-8/snmp-conundrum-780490/)

BFCsaus 01-07-2010 04:02 AM

SNMP conundrum
 
Hi,

Running Fedora 11 with following SNMP packages installed:

net-snmp-utils-5.4.2.1-10.fc11.i586
net-snmp-5.4.2.1-10.fc11.i586
net-snmp-libs-5.4.2.1-10.fc11.i586

When I run a simple snmpwalk:

[root@system ~]# snmpwalk -v 2c -c public localhost system
SNMPv2-MIB::sysDescr.0 = STRING: Linux steve 2.6.29.4-167.fc11.i686.PAE #1 SMP Wed May 27 17:28:22 EDT 2009 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (142968) 0:23:49.68
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: steve
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (54) 0:00:00.54
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (54) 0:00:00.54
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (54) 0:00:00.54
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (54) 0:00:00.54
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (54) 0:00:00.54
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (54) 0:00:00.54
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (54) 0:00:00.54
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (54) 0:00:00.54
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (54) 0:00:00.54

Things look ok but when i try a:

[root@system snmp]# snmpwalk -v 2c -c public localhost 1

The output is the same except for an additonal line:

HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (164543) 0:27:25.43
HOST-RESOURCES-MIB::hrSystemUptime.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

When I try:

root@system snmp]# snmpwalk -v 2c -c public localhost hrDiskStorageTable
HOST-RESOURCES-MIB::hrDiskStorageTable = No more variables left in this MIB View (It is past the end of the MIB tree)

or

[root@system mibs]# snmpwalk -v 2c -c public localhost ifAdminStatus
IF-MIB::ifAdminStatus = No Such Object available on this agent at this OID

Basically, I am unable to retrieve any information past the 'system' group for any specific OID. Ive run countless snmpwalk's and snmpget's to no avail. I have made no amendments to the snmpd.conf file so suspect some kind of permission problem or something silly ive overlooked.

An snmptranslate shows:

[root@steve mibs]# snmptranslate .1.3.6.1.2.1.2.2.1.2
IF-MIB::IfDescr

Basically what I am trying to do is retrieve the information on the status of a network interface and feed into Servers Alive but am hitting a brick wall at every turn.

We already monitor diskspace and processes via add-on's but are struggling configuring SNMP. Unfortunately it seem's Servers Alive is far more Windows orientated so may have to revert to Big Brother or Nagios...




Thanks in advance.

BFCsaus 01-07-2010 04:43 AM

Initial problem solved, should have read the snmpd.conf file closer and created a community with read/write access.

If anyone has experience of configuring Servers Alive to receive any changes in the status of the Network interfaces etc etc it would be appreciated if you could pass on the info...



Thanks...

kirukan 01-07-2010 06:33 AM

Quote:

If anyone has experience of configuring Servers Alive to receive any changes in the status of the Network interfaces etc etc
you mean receiving snmptrap for state changes?
OK,refer the following link
http://www.linuxquestions.org/questi...disman-770939/

BFCsaus 01-08-2010 04:57 AM

Thanks Kirukan, daft question but where is the 'monitor' executable?? ive got the gnome-system-monitor package installed but for the life of me can't find monitor.. even after a good google...



Thanks...

kirukan 01-14-2010 02:38 AM

What do you mean by monitor executable?
Quote:

'monitor' executable??


All times are GMT -5. The time now is 11:36 PM.