LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2010, 04:02 AM   #1
BFCsaus
Member
 
Registered: Jan 2007
Posts: 36

Rep: Reputation: 15
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.
 
Old 01-07-2010, 04:43 AM   #2
BFCsaus
Member
 
Registered: Jan 2007
Posts: 36

Original Poster
Rep: Reputation: 15
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...
 
Old 01-07-2010, 06:33 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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/
 
1 members found this post helpful.
Old 01-08-2010, 04:57 AM   #4
BFCsaus
Member
 
Registered: Jan 2007
Posts: 36

Original Poster
Rep: Reputation: 15
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...
 
Old 01-14-2010, 02:38 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
What do you mean by monitor executable?
Quote:
'monitor' executable??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrate Mod-Apache-Snmp with Net-SNMP source kirukan Linux - Server 2 05-11-2011 01:48 AM
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-16-2008 07:34 PM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration