Hi,
Im running zabbix-1.1beta1, and Im having a bit of trouble of UserParameters, that im hoping that someone might be able to help me out with. Some seem to work perfectly, and others report "Not supported by ZABBIX agent".
First of all, I've modified a cookbook example to query a web host and calculate the number of seconds until the SSL certificate expires. The script is just a bit of bash code that calls openssl, and uses 'date' to return the number of seconds. It works wonderfully
So, I thought I would write a UserParameter to call 'ftpcount' to enumerate the those currently connected to my ProFTPd service. The command line seems to work okay from the command line (run as the zabbix user), but the Item is reported as "Not supported by ZABBIX agent". I originally thought it might be an exit code problem, but putting the command into a script with "exit 0" didn't help
Likewise, I cant get the example MySQL UserParameters to work either - even though they work perfectly from the command line. I've changed the -u flag to a user who has suitable access, and have tested this from the command line. In the front-end, I get "Not supported by ZABBIX agent".
Anyone got any ideas?
Cheers,
Bryan
Im running zabbix-1.1beta1, and Im having a bit of trouble of UserParameters, that im hoping that someone might be able to help me out with. Some seem to work perfectly, and others report "Not supported by ZABBIX agent".
First of all, I've modified a cookbook example to query a web host and calculate the number of seconds until the SSL certificate expires. The script is just a bit of bash code that calls openssl, and uses 'date' to return the number of seconds. It works wonderfully
UserParameter=sslexpires[expiry],/usr/local/bin/zabbixCertificateLifespan www.mydomain.com
UserParameter=ftp[users],/usr/bin/ftpcount 2>/dev/null | tail -n 1 | sed 's/[^0-9]//g'
[0.20 zabbix@rhino /]$ /usr/bin/ftpcount 2>/dev/null | tail -n 1 | sed 's/[^0-9]//g'
8
[0.19 zabbix@rhino /]$
8
[0.19 zabbix@rhino /]$
UserParameter=mysql[ping],mysqladmin -u status ping | grep alive | wc -l
[0.22 zabbix@rhino /]$ mysqladmin -u status ping | grep alive | wc -l
1
[0.22 zabbix@rhino /]$
1
[0.22 zabbix@rhino /]$
Cheers,
Bryan
Comment