PDA

View Full Version : perl script, linux, and UserParameter


bbrendon
19-11-2005, 19:02
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.

Nate Bell
21-11-2005, 15:45
What exactly is the problem you ran into? The wording of your post implies something isn't working, but you never specified what.

Nate