Archived community.zenoss.org | full text search
Skip navigation
2170 Views 5 Replies Latest reply: Feb 19, 2013 7:55 AM by Charles Wilkinson RSS
James Smith Rank: White Belt 84 posts since
Jan 28, 2013
Currently Being Moderated

Feb 17, 2013 10:53 PM

How can I monitor IBM Power Systems(AIX)

I have only found the commercial zenpack(ZenPacks.zenoss.AixMonitor) or the community zenpack(ZenPacks.community.AIX-1.1-py2.6) to monitor the IBM Power Systems(AIX). Are there others ways or solutions to monitor it? Thank you!!

  • Charles Wilkinson Rank: White Belt 29 posts since
    Jun 22, 2012
    Currently Being Moderated
    1. Feb 18, 2013 4:13 AM (in response to James Smith)
    Re: How can I monitor IBM Power Systems(AIX)

    You can setup all the SNMP in AIX and use figures from that.  I'm in the middle of rolling it out at my own company with SNMP Version 3.  Some great and easy stuff to get from that and you can get every error event sent to you as a trap with a couple of entries in the ODM calling a simple script.

     

    What exactly do you want to monitor or capture that the existing options aren't getting?

  • Charles Wilkinson Rank: White Belt 29 posts since
    Jun 22, 2012
    Currently Being Moderated
    3. Feb 18, 2013 4:55 AM (in response to James Smith)
    Re: How can I monitor IBM Power Systems(AIX)

    The Link for setting up the SNMP mostly works but adjust for v61 or v71 AIX:

    http://forums.cacti.net/about19040.html

     

    If you want SNMP Version 3 you'll obviously need to set it up fairly differently.

     

    The services are setup to start from rc.tcpip but commented out so uncomment them there and they'll obviously start on boot.

     

    I'm yet to install the snmp community pack but will be doing that tomorrow as part of my testing in enterprise 4.1.1 so I'll reply yere, maybe with screen shots, to let you know what it gets and how it looks compared to the command-line pack we're currently using.  Hopefully I'll get some more useful CPU/Processor values from the SNMP.

     

    Beyond that, lookup LPAR2RRD.  I'm planning to do some customisation in Zenoss based of how thit works.

     

    P.S. if you want to get the events via SNMP traps then setup a couple of ODM entries to call whatever snmp script you desire:

     

    errnotify:

            en_name = "snmptrapn"

            en_persistenceflg = 0

            en_method = "/usr/local/bin/snmp_notify $1 $2 $3 $4 $5 $6 $7 $8 $9"

     

    errnotify:

            en_name = "snmptrapp"

            en_persistenceflg = 1

            en_method = "/usr/local/bin/snmp_notify $1 $2 $3 $4 $5 $6 $7 $8 $9"

     

    Those two entries should send any error events (just like what you get in errpt) via an snmp script at /usr/local/bin/snmp_notify.

     

    Here's my own script (but if anyone has suggestions to adjust it I'd love to know as this was just thrown together):

     

    # Reverse hashed LOG lines for debugging/recording

    LOG=/tmp/snmpnotify.log

    DATE=`date +%y%m%d%H%M%S`

    ERRMSG=/tmp/snmpnotify.msg

     

    # fix error id and set for oid use

    ERRIDN=colrm 1 2 $2

     

    echo `date` - SNMP trap sent for $1 $2 $5 >> $LOG

     

    # Create Trap Message seperated by '@'

    # Sequence Number

    # Error ID

    # Error Class

    # Error Type

    # Alert Flag

    # Resource Name

    # Resource Type

    # Resource Class

    # Error Label

     

    echo $1@$ERRIDN@$3@$5@$5@$6@$7@$8@$9 > $ERRMSG

    cat $ERRMSG | /usr/bin/xargs /usr/sbin/snmptrap -h 10.20.8.1 -c $ERRIDN -m

  • Charles Wilkinson Rank: White Belt 29 posts since
    Jun 22, 2012
    Currently Being Moderated
    5. Feb 19, 2013 7:55 AM (in response to James Smith)
    Re: How can I monitor IBM Power Systems(AIX)

    Having some issues with it reading the SNMP.

     

    Suspect the community pack might not support SNMP V3.

     

    Investigating further.  Will probably try setting up V2 and see if that works.

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points