Ad Widget

Collapse

Reverse engineering SNMP monitoring data on HP server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oldjoeclark
    Junior Member
    • Feb 2011
    • 2

    #1

    Reverse engineering SNMP monitoring data on HP server

    On a HP/Linux server I am trying to make the SNMP data available so that it can be monitored by Zabbix. This includes lots of data on the health of its hardware including disk drives, fans, temperature, etc. The server has HP standard tools installed and running properly including HP's System Management Homepage (SMH) which makes its data available via SNMP and can be viewed via SHM's own web-based application running on port 2381. As proof of this when I turn snmp service off:
    Code:
    service snmpd stop
    it results in SMH not reaching any monitoring data.

    I have the server configured so I can remotely retrieve basic SNMP data. The following command using the net-SNMP snmpwalk command:

    Code:
    snmpwalk -v 1 -c public XXX.XXX.XX.XXX
    returns the following:

    Code:
    iso.3.6.1.2.1.1.1.0 = STRING: "Linux my.host.name.here 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST 2006 i686"
    iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10
    iso.3.6.1.2.1.1.3.0 = Timeticks: (1320) 0:00:13.20
    iso.3.6.1.2.1.1.4.0 = STRING: "Root <root@localhost> (configure /etc/snmp/snmp.local.conf)"
    iso.3.6.1.2.1.1.5.0 = STRING: "mnblei.mnb.circ8.dcn"
    iso.3.6.1.2.1.1.6.0 = STRING: "Unknown (edit /etc/snmp/snmpd.conf)"
    iso.3.6.1.2.1.1.8.0 = Timeticks: (0) 0:00:00.00
    iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.2.1.31
    iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.1
    ...
    ...
    And returns about 30 lines of data or so, BUT there is no HP-specific monitoring data to be found - just basics are returned.

    So this prompts some questions and possibilities:

    snmpwalk should return all available OIDs and their values in the MIB, yes? Is there some command line switch I need to add?

    Do I need to alter snmpd.conf some how? If yes, how? Could it be a permissions problem? Why would the SNMP daemon expose only part of its data?

    I am but a newbie in the Zabbix/SNMP world. Any useful insights much appreciated.

    Thanks,

    Paul
  • trinaryouroboros
    Junior Member
    • Sep 2011
    • 1

    #2
    Originally posted by oldjoeclark
    ...
    And returns about 30 lines of data or so, BUT there is no HP-specific monitoring data to be found - just basics are returned.

    So this prompts some questions and possibilities:

    snmpwalk should return all available OIDs and their values in the MIB, yes? Is there some command line switch I need to add?

    Do I need to alter snmpd.conf some how? If yes, how? Could it be a permissions problem? Why would the SNMP daemon expose only part of its data?

    I am but a newbie in the Zabbix/SNMP world. Any useful insights much appreciated.

    Thanks,

    Paul
    I know this is a little outside of zabbix itself, but if you are using HP System Management homepage on your system you will see a few sneaky lines on top of your snmpd.conf that show where HP inserted it's own rw community, the community name is usually something like a bunch of random looking characters - you can copy/paste this line underneath, so it looks something like:
    Code:
    rwcommunity   jSaiWqmZkl   127.0.0.1
    rwcommunity   zabbixrw   192.168.1.22
    The latter line, you obviously want to name your own community name instead of zabbixrw, and the IP of the zabbix server.

    Then restart snmpd, and check /var/log/messages to make sure it's happy:

    Code:
    service snmpd restart
    That could also be:

    Code:
    /etc/init.d/snmpd restart
    ..depends on your OS.

    I don't use Zabbix, per se, but I google'd this post and found this to be the key ingredient for my needs in hunting down the hp snmp stuff.

    If you do an snmpwalk with your new rw community you'll see that all the HP OID's like 1.3.6.1.4.1.232 will display now.

    Comment

    Working...