Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[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.
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...
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, 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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.