Ad Widget

Collapse

Monitoring AIX 4.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maurizio
    Junior Member
    • Oct 2005
    • 4

    #1

    Monitoring AIX 4.3

    Hi all,
    AIX 4.3 is not supported anymore by IBM but since it's still running on a few server of mine...

    Zabbix_agentd doesn't support some parameters I'd like to monitor so I created some UserParameters trying to avoid the installation of additional programs.

    1) AIX zabbix_agent doesn't support mem[*], swap[*] so we use svmon

    UserParameter=mem[total],svmon|grep memory|awk '{printf "%.0f\n", $2*4}'

    UserParameter=mem[used],svmon|grep memory|awk '{printf "%.0f\n", $3*4}'

    UserParameter=mem[free],svmon|grep memory|awk '{printf "%.0f\n", $4*4}'

    UserParameter=paging[total],svmon|grep 'pg space'|awk '{printf "%.0f\n",$3*4}'

    UserParameter=paging[used],svmon|grep 'pg space'|awk '{printf "%.0f\n",$4*4}'

    UserParameter=paging[free],svmon|grep 'pg space'|awk '{printf "%.0f\n",($3 - $4)*4}'

    The problem here is that svmon can be executed by root, only. So, I created a special group 'zabbix' whose only member is 'zabbix' (i.e. the user which owns zabbix_agentd process) and switched the sgid bit on svmon (chgrp zabbix /bin/svmon; chmod g+sx /bin/svmon).
    Remember to activate the multiplier and set 1024 as Custom multiplier in the web UI.


    2) AIX zabbix_agent doesn't support system[proc*], system[uptime] so we use uptime and snmp

    UserParameter=sys[procload5],uptime|awk '{print $10}'|sed -e 's/,//'

    UserParameter=sys[uptime],snmpget -v 1 -c YOUR_COMMUNITY_NAME localhost system.sysUpTime.0|sed -e 's/.*(\([0-9]*\)).*/\1/'|awk '{print $1/100}'

    UserParameter=sys[proccount],ps g|sed -n '/PID/!p'|sed -n '$='

    UserParameter=sys[procrunning],ps -eal|sed -e '/A/b' -e '/R/b' -e d|sed -n '$='


    3) AIX zabbix_agent doesn't support netload, so we make use of SNMP

    UserParameter=net[en0in],snmpget -v 1 -c YOUR_COMMUNITY_NAME -Oqv localhost IF-MIB::ifInOctets.3

    UserParameter=net[en0out],snmpget -v 1 -c YOUR_COMMUNITY_NAME -Oqv localhost IF-MIB::ifOutOctets.3


    Maurizio Firmani
  • tommy13v
    Junior Member
    • Jan 2005
    • 7

    #2
    I am having an issue with getting SNMP to show me the info that I request, when I issue

    snmpget -v 1 -c PUBLIC -Oqv HOSTIPADDRESS IF-MIB::ifInOctets.3

    It gives me this error:

    sub-identifier not found: IF-MIB::ifInOctets
    Invalid object identifier: IF-MIB::ifInOctets.3

    If I snmpwalk I only see this info:

    .iso.3.6.1.2.1.1.1.0 = "IBM PowerPC CHRP Computer.Machine Type: 0x0800004c Proce
    ssor id: 00CFCE8F4C00.Base Operating System Runtime AIX version: 05.03.0000.0010
    .TCP/IP Client Support version: 05.03.0000.0020"
    .iso.3.6.1.2.1.1.2.0 = OID: .iso.3.6.1.4.1.2.3.1.2.1.1.3
    .iso.3.6.1.2.1.1.3.0 = Timeticks: (323700) 0:53:57.00
    .iso.3.6.1.2.1.1.4.0 = ""
    .iso.3.6.1.2.1.1.5.0 = "MYHOST"
    .iso.3.6.1.2.1.1.6.0 = ""
    .iso.3.6.1.2.1.1.7.0 = 72
    .iso.3.6.1.2.1.1.8.0 = Timeticks: (241400) 0:40:14.00
    .iso.3.6.1.2.1.1.9.1.2.1 = OID: .iso.3.6.1.4.1.2.3.1.2.1.1.3
    .iso.3.6.1.2.1.1.9.1.2.2 = OID: .iso.3.6.1.2.1.25
    .iso.3.6.1.2.1.1.9.1.2.3 = OID: .iso.3.6.1.4.1.2.6.191
    .iso.3.6.1.2.1.1.9.1.2.4 = OID: .iso.3.6.1.4.1.2.3.1.2.3.1.1
    .iso.3.6.1.2.1.1.9.1.3.1 = "AIX SNMP Agent"
    .iso.3.6.1.2.1.1.9.1.3.2 = "Host Resources DPI sub-agent Version 1"
    .iso.3.6.1.2.1.1.9.1.3.3 = "AIX Enterprise MIB Support subagent"
    .iso.3.6.1.2.1.1.9.1.3.4 = "SMUX ATM daemon"
    .iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (0) 0:00:00.00
    .iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (400) 0:00:04.00
    .iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (400) 0:00:04.00
    .iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (241400) 0:40:14.00
    End of MIB

    How do I get the proper MIB's loaded and query them properly.

    I am not well versed on SNMP so I may sound pretty stupid on this question.

    Thanks for any help.

    Comment

    • flex.lima
      Junior Member
      • Dec 2006
      • 2

      #3
      Maurizio Firmani
      It´s unsafe the user zabbix run svmon/sar/etc...
      Install/configure the sudo program and in your zabbix.conf you can use:

      UserParameter=mem[total],sudo svmon|grep memory|awk '{printf "%.0f\n", $2*4}'

      whith this program you can give the root permition just for zabbix and just for run the comand that you want

      by the way, I´m trying to install zabbix in aix 4.3.3 and I´m having problems with library Could not load module libintl.a(shr.o) when I try to configure ./configure --prefix=/usr/local/zabbix --enable-agent

      Comment

      • VeryNewbie
        Member
        • Feb 2007
        • 40

        #4
        try the same comand (./configure --prefix=/usr/local/zabbix --enable-agent) with --enable-static

        Comment

        Working...