Ad Widget

Collapse

perl script, linux, and UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bbrendon
    Senior Member
    • Sep 2005
    • 870

    #1

    perl script, linux, and UserParameter

    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.
    Unofficial Zabbix Expert
    Blog, Corporate Site
  • Nate Bell
    Senior Member
    • Feb 2005
    • 141

    #2
    What exactly is the problem you ran into? The wording of your post implies something isn't working, but you never specified what.

    Nate

    Comment

    Working...