PDA

View Full Version : procload on AIX


hjb
02-12-2004, 13:14
I would like to monitor procload values on AIX. Zabbix-server is a Linux-box under MDK 10.1. According to the triggers list, this is not supported on AIX. So I wrote the following script for zabbix_sender:

export LANG=C
set $(uptime | tr -d "," |awk '{ printf("%s %s %s", $10, $11, $12)}')
/home/beckers/zabbix-1.0/bin/zabbix_sender ls0002 10001 test:procload $1
/home/beckers/zabbix-1.0/bin/zabbix_sender ls0002 10001 test:procload5 $2
/home/beckers/zabbix-1.0/bin/zabbix_sender ls0002 10001 test:procload15 $3


Zabbix_server is ls0002 and my AIX-box is called test.

zabbix_trapperd.log on ls0002 shows the following (debug=4):

007708:20041202:090654 Length [7]
007708:20041202:090654 Sockfd [1]
007708:20041202:090654 After write()
007708:20041202:090654 Before accept()
007709:20041202:090654 After accept()
007709:20041202:090654 Before read()
007709:20041202:090654 After read() 2 [21]
007709:20041202:090654 Got line:test:procload15:0.10
007709:20041202:090654 In process_data()
007709:20041202:090654 Executing query:select i.itemid,i.key_,h.host,h.port,i.delay,i.descriptio n,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h .useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.va lue_type,i.trapper_hosts,i.delta from items i,hosts h where h.status in (0,2) and h.hostid=i.hostid and h.host='test' and i.key_='procload15' and i.status=0 and i.type=2
007709:20041202:090654 In DBnum_rows
007709:20041202:090654 Sending back [NOT OK
]
007709:20041202:090654 Length [7]
007709:20041202:090654 Sockfd [1]
007709:20041202:090654 After write()
007709:20041202:090654 Before accept()


Any hints?

Yours
hjb

Alexei
02-12-2004, 13:29
Type of the item must be "ZABBIX trapper".

hjb
02-12-2004, 15:20
Hi Alexei,

Thanks for your prompt response.

I changed the "Type" for this item for this host (test) to zabbix trapper,
but the error remains. Under last values for this host I have 3 lines
with the descriptions (procload{5|15}) but without values.

Or do I have to create completely new items?
Would I be better of with an UserParameter-extension to zabbix-agent?

BTW: The documentation for zabbix_sender in Manual.pdf is wrong:


EXAMPLE:

zabbix_sender oracle.company.com 10001 zabbix.companycom:procload 2.34

According to the text below the example, it should be:

zabbix_sender zabbix.company.com 10001 oracle.companycom:procload 2.34[/I]


Yours
hjb