SNMP problems

Natalie Aloi naloi at experisdatacenters.com
Mon Jul 13 21:58:44 CEST 2009


Installing net-snmp-utils seems to have fixed my snmpwalk issue...but can someone advise a link to go to for loading these Nagios MIBs (additional steps on using these mibs?)
thanks!
 echo "mibs +NAGIOS-NOTIFY-MIB" >> /usr/share/snmp/snmp.conf
echo "mibs +NAGIOS-ROOT-MIB" >> /usr/share/snmp/snmp.conf

[root at dns /]# yum install net-snmp-utils
Loaded plugins: refresh-packagekit
updates-newkey | 3.4 kB 00:00
fedora | 2.4 kB 00:00
updates | 2.6 kB 00:00
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package net-snmp-utils.i386 1:5.4.1-19.fc9 set to be updated
--> Processing Dependency: net-snmp = 1:5.4.1-19.fc9 for package: net-snmp-utils
--> Running transaction check
---> Package net-snmp.i386 1:5.4.1-19.fc9 set to be updated
--> Processing Dependency: net-snmp-libs = 1:5.4.1-19.fc9 for package: net-snmp
--> Running transaction check
---> Package net-snmp-libs.i386 1:5.4.1-19.fc9 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
 Package Arch Version Repository Size
=============================================================================
Installing:
 net-snmp-utils i386 1:5.4.1-19.fc9 updates-newkey 182 k
Updating:
 net-snmp i386 1:5.4.1-19.fc9 updates-newkey 694 k
 net-snmp-libs i386 1:5.4.1-19.fc9 updates-newkey 1.2 M
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 2 Package(s)
Remove 0 Package(s)
Total download size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): net-snmp-5.4.1-19.fc9.i386.rpm | 694 kB 00:00
(2/3): net-snmp-utils-5.4.1-19.fc9.i386.rpm | 182 kB 00:00
(3/3): net-snmp-libs-5.4.1-19.fc9.i386.rpm | 1.2 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
 Updating : net-snmp-libs ######################### [1/5]
 Updating : net-snmp ######################### [2/5]
 Installing: net-snmp-utils ######################### [3/5]
 Cleanup : net-snmp-libs ######################### [4/5]
 Cleanup : net-snmp ######################### [5/5]
Unable to send message to PackageKit
Installed: net-snmp-utils.i386 1:5.4.1-19.fc9
Updated: net-snmp.i386 1:5.4.1-19.fc9 net-snmp-libs.i386 1:5.4.1-19.fc9
Complete!
[root at dns /]# snmpwalk -v1 -c public localhost
Cannot find module (NAGIOS-NOTIFY-MIB mibs +NAGIOS-NOTIFY-MIB): At line 0 in (none)
SNMPv2-MIB::sysDescr.0 = STRING: Linux dns.experisdatacenters.com 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (5019) 0:00:50.19
SNMPv2-MIB::sysContact.0 = STRING: Root <root at localhost> (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: dns.experisdatacenters.com
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (4) 0:00:00.04
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: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (4) 0:00:00.04
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (53496337) 6 days, 4:36:03.37
End of MIB
[root at dns /]# sudo service nagios restart
Running configuration check...done.
Stopping nagios: No lock file found in /usr/local/nagios/var/nagios.lock
Starting nagios: done.
[root at dns /]#

-----Original Message-----
From: Natalie Aloi [mailto:naloi at experisdatacenters.com]
Sent: Monday, July 13, 2009 01:43 PM
To: 'Nagios Users Mail-list'
Subject: SNMP problems


Hello, I just installed
yum install perl-Net-SNMP and 
echo "mibs +NAGIOS-NOTIFY-MIB" >> /usr/share/snmp/snmp.conf and 
echo "mibs +NAGIOS-ROOT-MIB" >> /usr/share/snmp/snmp.conf
But I don't seem to be able to do an snmpwalk or snmptranslate 
snmpd is running

[root at dns /]# ps -ef |grep snmpd
root 9157 1 0 12:52 ? 00:00:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
root 10837 9119 0 13:35 pts/2 00:00:00 grep snmpd
[root at dns /]# kill 9157
[root at dns /]# service snmpd start
Starting snmpd: [ OK ]
[root at dns /]#

I am kinda stuck not really sure where else to look 


and I have 
Network Operations Center Manager 
Experis Data Center LLC 
8209 Valley Pike 
PO Box 535 
Middletown,VA 22645 
phone:540-869-8702 
cell:240-988-3267 
fax:540-869-8710 
e-mail:naloi at experisdatacenters.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090713/f067a2b4/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list