Ad Widget

Collapse

Variable in Userparameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marc
    Senior Member
    • Oct 2004
    • 146

    #1

    Variable in Userparameter

    Hello all,
    i have defined the following userparameter:

    UserParameter=cmta.sendmailup[*],/etc/init.d/sendmail status up

    "/etc/init.d/sendmail" is a customized script and waits for an id like.. BB-Out

    Example:
    lp0056:/home/qx56451 # /etc/init.d/sendmail status up BB-out
    1

    i defined the following item and key..
    BB-Out (as desc) and key cmta.sendmailup[BB-out]
    within the log i see:

    006495:20060612:153000 Got line:cmta.sendmailup[BB-out]
    006495:20060612:153000 Sending back:Status of sendmail daemons:

    this means it doesnt use the keys [variable] at the cli without an argument i get this..

    lp0056:/home/qx56451 # /etc/init.d/sendmail status up
    Status of sendmail daemons:

    I want to monitor a lot of diffenernt sendmail instances and need to use a variable because it would be senceless to add a line foreach instance. They are different on each host and may change within a day. I dont want to give shell access to the gui admin to solve this issue in zabbix_agentd.conf.

    What am i doing wrong?
    regards,
    Marc
    Last edited by marc; 12-06-2006, 15:57.
  • marc
    Senior Member
    • Oct 2004
    • 146

    #2
    ok i forgot the $1 in the scripts execution path

    Comment

    Working...