Hi ,
I tried to use zabbix in a feels server to collect sysstat parameters using UserParameter object but after 1 hour the server stop collect the data .
The graph shows th no data found for this period . In any time tha I change the status in items page the data started collect again .
Some times in a 4 processor machine the continuos collect one of them and stop to collect others . And all scripts are likes .
So that the scripts :
ALL processors :
script name : cpu.idle_1min
#!/bin/sh
sar -u -h | grep idle | tail -n1 | cut -f 6
processor 0 :
#!/bin/sh
sar -P 0 -u -h | grep idle | tail -n1 | cut -f 6
For processor 1 :
#!/bin/sh
sar -P 1 -u -h | grep idle | tail -n1 | cut -f 6
the UserParameter section :
UserParameter=cpu[idle_1min],echo `/opt/zabbix/scripts/cpu.idle_1min`
UserParameter=cpu0[idle_1min],echo `/opt/zabbix/scripts/cpu0.idle_1min`
UserParameter=cpu1[idle_1min],echo `/opt/zabbix/scripts/cpu1.idle_1min`
UserParameter=cpu2[idle_1min],echo `/opt/zabbix/scripts/cpu2.idle_1min`
UserParameter=cpu3[idle_1min],echo `/opt/zabbix/scripts/cpu3.idle_1min`
Any help ???
I tried to use zabbix in a feels server to collect sysstat parameters using UserParameter object but after 1 hour the server stop collect the data .
The graph shows th no data found for this period . In any time tha I change the status in items page the data started collect again .
Some times in a 4 processor machine the continuos collect one of them and stop to collect others . And all scripts are likes .
So that the scripts :
ALL processors :
script name : cpu.idle_1min
#!/bin/sh
sar -u -h | grep idle | tail -n1 | cut -f 6
processor 0 :
#!/bin/sh
sar -P 0 -u -h | grep idle | tail -n1 | cut -f 6
For processor 1 :
#!/bin/sh
sar -P 1 -u -h | grep idle | tail -n1 | cut -f 6
the UserParameter section :
UserParameter=cpu[idle_1min],echo `/opt/zabbix/scripts/cpu.idle_1min`
UserParameter=cpu0[idle_1min],echo `/opt/zabbix/scripts/cpu0.idle_1min`
UserParameter=cpu1[idle_1min],echo `/opt/zabbix/scripts/cpu1.idle_1min`
UserParameter=cpu2[idle_1min],echo `/opt/zabbix/scripts/cpu2.idle_1min`
UserParameter=cpu3[idle_1min],echo `/opt/zabbix/scripts/cpu3.idle_1min`
Any help ???
Comment