I've used a few UserParameters in the past, but they were all basic cat/grep/cut/etc commands. I've created a perl script that executes in ~.15 seconds that returns a number.
I have added it to UserParameter just like always, it appears the script runs because the temp files the the script creates are owned by the zabbix user. I even ran it by running "su - zabbix scriptname" which worked okay.
Is there a special trick to this?
The zabbix_agent.conf has this:
UserParameter=mysql[qps],/usr/local/mrtg/mysql-qps.pl
The agent is 1.1beta2 on debian linux.
I have added it to UserParameter just like always, it appears the script runs because the temp files the the script creates are owned by the zabbix user. I even ran it by running "su - zabbix scriptname" which worked okay.
Is there a special trick to this?
The zabbix_agent.conf has this:
UserParameter=mysql[qps],/usr/local/mrtg/mysql-qps.pl
The agent is 1.1beta2 on debian linux.

Comment