Hello I'm trying to setup SNMP on my Centos 4.2 server. I want the ability to monitor the disk and some other non default settings that can be defined in snmpd.conf but when I request the data, it doesn't give the disired results. Config below and trap results below. Thanks in advance for any help. Kevin
[root@localhost snmp] snmpget -v 2c -c public localhost disk HOST-RESOURCES-MIB::hrDiskStorageTable = No Such Object available on this agent at this OID
[root@localhost snmp]# grep -v '#' snmpd.conf | uniq com2sec notConfigUser default public group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser view systemview included .1.3.6.1.2.1.1 view systemview included .1.3.6.1.2.1.25.1.1 access notConfigGroup "" any noauth exact systemview none none view rwview included interfaces.ifTable.ifEntry.ifAdminStatus syslocation Unknown (edit /etc/snmp/snmpd.conf) syscontact Root root@localhost (configure /etc/snmp/snmp.local.conf) proc mountd proc sendmail 10 1 disk / 100000 load 12 14 14 exec .1.3.6.1.4.1.2021.51 ps /bin/ps exec .1.3.6.1.4.1.2021.52 top /usr/local/bin/top exec .1.3.6.1.4.1.2021.53 mailq /usr/bin/mailq pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
[root@localhost ~]# snmpwalk -v 2c -c public localhost SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain 2.6.9-22.0.2.EL #1 Tue Jan 17 06:51:40 CST 2006 i686 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 SNMPv2-MIB::sysUpTime.0 = Timeticks: (1560693) 4:20:06.93 SNMPv2-MIB::sysContact.0 = STRING: Root root@localhost (configure /etc/snmp/snmp.local.conf) SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf) SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP. SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB. SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching. SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model. SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00 HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (47717391) 5 days, 12:32:53.91
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, Feb 05, 2006 at 08:49:33AM -0800, Kevin B wrote:
Hello I'm trying to setup SNMP on my Centos 4.2 server. I want the ability to monitor the disk and some other non default settings that can be defined in snmpd.conf but when I request the data, it doesn't give the disired results. Config below and trap results below.
Do you get anything on the 'dmesg' output regarding this ? I have serious problems with snmp when SELinux was active. I don't remember exactly how I solved it, but I had to change a few contexts.
Best Regards,
- -- Rodrigo Barbosa rodrigob@suespammers.org "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
Rodrigo Barbosa wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, Feb 05, 2006 at 08:49:33AM -0800, Kevin B wrote:
Hello I'm trying to setup SNMP on my Centos 4.2 server. I want the ability to monitor the disk and some other non default settings that can be defined in snmpd.conf but when I request the data, it doesn't give the disired results. Config below and trap results below.
Do you get anything on the 'dmesg' output regarding this ? I have serious problems with snmp when SELinux was active. I don't remember exactly how I solved it, but I had to change a few contexts.
Best Regards,
Rodrigo Barbosa rodrigob@suespammers.org
Hello, I have selinux disabled on this one. Nothing in dmesg either. Thanks for the relpy. Let me know if you think of anything else please. TY Kevin
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, Feb 05, 2006 at 05:47:08PM -0800, Kevin Brouelette wrote:
Hello, I have selinux disabled on this one. Nothing in dmesg either. Thanks for the relpy. Let me know if you think of anything else please.
Try adding:
view systemview included .1
That is, of course, a very broad authorization, but should give you a place to start.
Best Regards,
- -- Rodrigo Barbosa rodrigob@suespammers.org "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, Feb 05, 2006 at 05:47:08PM -0800, Kevin Brouelette wrote:
Hello, I have selinux disabled on this one. Nothing in dmesg either. Thanks for the relpy. Let me know if you think of anything else please.
Try adding:
view systemview included .1
That is, of course, a very broad authorization, but should give you a place to start.
Best Regards,
Hello, That does show the disk capacity when I 'snmpwalk' for 'disk'. I'll write a huge file with zeroes and see if snmptrapd alerts on it. TY Kevin