Ad Widget

Collapse

UserParameter scripts with arguments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cpicton
    Member
    • Nov 2006
    • 35

    #1

    UserParameter scripts with arguments

    Hi

    I am trying to get UserParameters with arguments working.

    I have the following in my agent.conf:
    Code:
    UserParameter=mysql[*], /usr/local/scripts/zabbix/mysql-stats $1
    (I have tried with or without the $1)

    When I run zabbix_get -s`hostname` -k 'mysql[Questions]', The parameter (Questions) never gets passed to my script (not in command line, stdin, or environment)

    What am I doing wrong here?
Working...