End of MIB

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

End of MIB

steve
Hello All,

I need some help from you guys, I am totally new to opennms and i am trying to monitor disk space of my machine and other machines around me using centos and want to get notification as well by email. I googled a lot and try to follow some links but they are not working for me. Whenever i try to run snmpwalk -v 1 -c mycommunity localhost .1.3.6.1.4.1.xxxxxx. I always get the error message end of mib. Can someone please guide me on this or provide me useful link which will help me. My opennms version is opennms-1.10.5-1.

Thanks in Advance

Best wishes,

Steve
Reply | Threaded
Open this post in threaded view
|

Re: End of MIB

Dustin Craft
Steve,

It looks like you're going too far down the mib tree and are asking for information that isn't there.  If you're getting the "end of mib" response when you do something like:

snmpwalk -v 2c -c communitystring targetip .1.3.6.1.4.1.2.3.4.5.6

then instead try:

snmpwalk -v 2c -c communitystring targetip .1.3.6.1.4.1.2.3.4.5

and so on.  Keep paring the request down in order to provide more possible matches for snmpwalk to find.  If you get down to something close to .1.3.6.1 and you're still not getting something then your host probably isn't returning any mibs to you but I wouldn't think you'd get "end of mib" if that were the case.

Hope this helps!

-D
Reply | Threaded
Open this post in threaded view
|

Re: Disk monitoring for locahost

steve
Hi Dustin,

Thanks for your kind response, you are right if I reduce these number like given below then i am getting response but no idea why is that.

snmpwalk -v 2c -c communitystring targetip .1.3.6.1.4

Now when i try to search the graph of my localhost which is centos, it is not showing disk partition or making any graph but when add a node of remote machine which is a windows server it is showing its partitions and graph as well, but not getting any notification email if threshold crossed more then 90%. . whenever i try to modify the code of datacollection-config.xml and restart opennms the service always failed to start. I don't where exactly i have to put this code given in the below link, I am following this link given below it is very helpful but little bit advance. Can you please guide me  how can i get notified by email when threshold crossed and monitor the disk of my localhost server.

http://opennms.530661.n2.nabble.com/Re-Monitor-Disk-Usage-Phew-td3474005.html

Thanks in advance

Best Wishes
Steve  
Reply | Threaded
Open this post in threaded view
|

Re: Disk monitoring

steve
Hello All,

I am trying to monitor hard disk of my localhost which is based on linux CentOs and using opennms. I have followed these steps given below. But not getting any luck can some one please help to monitor my disk.

If I run snmpwalk, i am getting this error for localhost

snmpwalk -v2c localhost -c mycommunitystring .iso.org.dod.internet.mgmt.mib-2.host.hrStorage

HOST-RESOURCES-MIB::hrStorage = No more variables left in this MIB View (It is past the end of the MIB tree)

but if run on one of my windows server i am getting this response and parttion and graphs are showing ok on webinterface.

HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 4193848 KBytes
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRemovableDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageCompactDisc
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: A:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\ Label:  Serial Number e88429d0
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: D:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 10459647
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 125917
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 65528
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 9467725
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 32045
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 29418
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0

But if run this same snmpwalk on any other servers i get the some response but i cannot see any partion or any graph on my web interface in resource graph section.

snmpwalk -v2c 192.168.50.8 -c mystring .iso.org.dod.internet.mgmt.mib-2.host.hrStorage
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 8388152 KBytes
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRemovableDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageCompactDisc
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: A:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\ Label:  Serial Number e88429d0
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: D:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 10459647
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 262100
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 131064
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 6479559
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 61264
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 46723
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0
 
These are the steps i have followed. I checked the rrd file of nodes but only one node has rrd file and its paritions

STEP 1:
The below commands have been executed on the test machine where SNMP is monitored:
sudo echo "disk /" >> /etc/snmp.snmpd.conf
sudo echo "disk /boot" >> /etc/snmp.snmpd.conf
sudo /etc/init.d/snmpd restart
 
STEP 2:
snmpwalk -v2c -c public localhost .1.3.6.1.4.1.2021
I ran this command on the test machine - output is a text file attached to this email.
 
STEP 3:
On the OpenNMS server I edited the datacollection-config.xml file.. The text in BOLD has been included:
 
<systemDef name="Net-SNMP (UCD)">
        <sysoidMask>.1.3.6.1.4.1.2021.250.</sysoidMask>
        <collect>
          <includeGroup>mib2-host-resources-system</includeGroup>
          <includeGroup>mib2-host-resources-memory</includeGroup>
          <includeGroup>net-snmp-disk</includeGroup>
          <includeGroup>net-snmp-disk-more</includeGroup>
          <includeGroup>ucd-loadavg</includeGroup>
          <includeGroup>ucd-memory</includeGroup>
          <includeGroup>ucd-sysstat</includeGroup>
          <includeGroup>ucd-sysstat-raw</includeGroup>
          <includeGroup>ucd-sysstat-raw-more</includeGroup>
        </collect>
      </systemDef>
      <systemDef name="Net-SNMP">
        <sysoidMask>.1.3.6.1.4.1.8072.3.</sysoidMask>
        <collect>
          <includeGroup>mib2-host-resources-system</includeGroup>
          <includeGroup>mib2-host-resources-memory</includeGroup>
          <includeGroup>mib2-host-resource-storage</includeGroup>
          <includeGroup>mib2-X-interfaces</includeGroup>
          <includeGroup>net-snmp-disk</includeGroup>
          <includeGroup>net-snmp-disk-more</includeGroup>
          <includeGroup>openmanage-coolingdevices</includeGroup>
          <includeGroup>openmanage-temperatureprobe</includeGroup>
          <includeGroup>openmanage-powerusage</includeGroup>
          <includeGroup>ucd-loadavg</includeGroup>
          <includeGroup>ucd-memory</includeGroup>
          <includeGroup>ucd-sysstat</includeGroup>
          <includeGroup>ucd-sysstat-raw</includeGroup>
          <includeGroup>ucd-sysstat-raw-more</includeGroup>
        </collect>
      </systemDef> 

Thanks in Advance,

Best Wishes
Steve