Ad Widget

Collapse

item key "user defined" macros ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fbeuserie@gmail.com
    Junior Member
    • Mar 2009
    • 2

    #1

    item key "user defined" macros ?

    hi,

    i'm deploying a large zabbix setup to monitor many customer remote site and server.

    if i need to check the status of the bacula backup (exemple), i'm using this item:

    system.run[echo "list job=Daily" | sudo bconsole | grep "| B" | tail -1 | cut -d"|" -f 9]

    with an update frequency of 14400 (one time a day.
    this is okay but since the job name can change, It would be really cool for the admin to add some macro in the item key like:

    app.bacula.jobs["Daily"]

    that will evaluate internally on the full system.run command.

    the good news will be that other guys didn't need to know/understand the bash one liner.

    perhaps it's already possible, but didn't find it ?
    should i post this in the "feature request" forum ?


    thanks
Working...