Ad Widget

Collapse

HP-UX supported items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobrivers
    Senior Member
    • Feb 2007
    • 115

    #1

    HP-UX supported items

    Hi,

    Since zabbix agent for HP-UX is pretty basic, does anyone got lucky on "extending" it, by using UserParameters?

    Rigth now I'm trying to monitor LAN0 parameters. For instance, in order to monitor lan0 colisions, I'm using:

    PHP Code:
    UserParameter=net.colision,netstat -grep lan0 awk '{print $9}' 
    It's working well, but I'm unable to figure out how to monitor lan0 traffic.

    netstat -i only gives I/O in termos of packets. Sice I'm not a HP-UX man, I'm stucked...

    Any advice?

    TIA & happy new year,

    Bob
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Bob -

    Try this. Add these paramaters to your zabbix_agentd.conf file and restart the agent:
    This will give you bytes in, bytes out, errors in, errors out and collisions.

    Code:
    # kpi.net.if.in[dev] where
    #  status on server = [ lan0, lo0, ce0, e1000g0 ]
    #  to determine status on other machines, type 'netstat -i' for list of devs
    
    UserParameter=kpi.net.if.in[*],/usr/bin/netstat -i | grep $1 | awk '{ print $$5}'
    UserParameter=kpi.net.if.inerr[*],/usr/bin/netstat -i | grep $1 | awk '{ print $$6}'
    UserParameter=kpi.net.if.out[*],/usr/bin/netstat -i | grep $1 | awk '{ print $$7}'
    UserParameter=kpi.net.if.outerr[*],/usr/bin/netstat -i | grep $1 | awk '{ print $$8}'
    UserParameter=kpi.net.if.collision[*],/usr/bin/netstat -i | grep $1 | awk '{ print $$9}'
    Then you will need to create the items in Zabbix GUI. (Note that the multiplier may be wrong. They may have updated this to work correctly since I last created this item)
    Attached Files

    Comment

    Working...