I want to use a php script in UserParameter like:
UserParameter=db.size,php /root/calc_zdb_size.php
This php script has in the end the following line:
echo $size;
,where size is the number of bytes in my zabbix database.
But when I configure the item db.size on zabbix server web interface it does not works. It shows me "Not Supported". Then I go to the zabbix_server.log and see that:
027856:20070518:112453 Parameter [db.size] is not supported by agent on host [Aquarius2] Old status [0]
027856:20070518:112511 Type of received value [1417019392 ] is not sutable for [db.size@Aquarius2] having type [3]
It seems that zabbix is not recognizing an integer value but a string. What can I do to make zabbix get a number (integer or float value)?
I wait for your help!
Kind regards.
UserParameter=db.size,php /root/calc_zdb_size.php
This php script has in the end the following line:
echo $size;
,where size is the number of bytes in my zabbix database.
But when I configure the item db.size on zabbix server web interface it does not works. It shows me "Not Supported". Then I go to the zabbix_server.log and see that:
027856:20070518:112453 Parameter [db.size] is not supported by agent on host [Aquarius2] Old status [0]
027856:20070518:112511 Type of received value [1417019392 ] is not sutable for [db.size@Aquarius2] having type [3]
It seems that zabbix is not recognizing an integer value but a string. What can I do to make zabbix get a number (integer or float value)?
I wait for your help!
Kind regards.
Comment