How do you do this in Zabbix?
Official/unofficial documentation seems to suggest that you need to periodically run your script and send the output of each instance to Zabbix for entry in the database. I want to run one script that sends multiple values, each new line being record in the database.
For instance, how would I monitor the "api" column in a long running vmstat:
root@cactimel1:[/]# vmstat -p 5
memory page executable anonymous filesystem
swap free re mf fr de sr epi epo epf api apo apf fpi fpo fpf
109279344 51177344 24 133 0 0 0 0 0 0 2 0 0 1 0 0
107555872 49561024 4 8 0 0 0 0 0 0 0 0 0 0 0 0
107548408 49552632 3 3 0 0 0 0 0 0 0 0 0 0 0 0
107555856 49561008 3 3 0 0 0 0 0 0 0 0 0 0 0 0
107555856 49561008 3 3 0 0 0 0 0 0 0 0 0 0 0 0
107555856 49561008 3 3 0 0 0 0 0 0 0 0 0 0 0 0
My eventual goal is to have Solaris DTrace scripts outputing very specific statistics to monitor within Zabbix. If this is not possible with Zabbix, perhaps someone is familiar with how this is done in Cacti/rrdtool?
Official/unofficial documentation seems to suggest that you need to periodically run your script and send the output of each instance to Zabbix for entry in the database. I want to run one script that sends multiple values, each new line being record in the database.
For instance, how would I monitor the "api" column in a long running vmstat:
root@cactimel1:[/]# vmstat -p 5
memory page executable anonymous filesystem
swap free re mf fr de sr epi epo epf api apo apf fpi fpo fpf
109279344 51177344 24 133 0 0 0 0 0 0 2 0 0 1 0 0
107555872 49561024 4 8 0 0 0 0 0 0 0 0 0 0 0 0
107548408 49552632 3 3 0 0 0 0 0 0 0 0 0 0 0 0
107555856 49561008 3 3 0 0 0 0 0 0 0 0 0 0 0 0
107555856 49561008 3 3 0 0 0 0 0 0 0 0 0 0 0 0
107555856 49561008 3 3 0 0 0 0 0 0 0 0 0 0 0 0
My eventual goal is to have Solaris DTrace scripts outputing very specific statistics to monitor within Zabbix. If this is not possible with Zabbix, perhaps someone is familiar with how this is done in Cacti/rrdtool?
Comment