Ad Widget

Collapse

Zabbix cli to externaly expand macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • limo
    Senior Member
    • Dec 2004
    • 192

    #1

    Zabbix cli to externaly expand macros

    Hi to all,

    would be nice to have some commandline utility which takes stdin , expands macros and send it to stdout (or can be commandline parameters). Can be writen even in php to made it easy. Why we need this?

    We have some maps in svg (but can be in any format, of course). We want to put some values inside it and expand all values using cron script. But in fact, more people can use this feature, because you can prepare any export you want. It can be xml, text, html, ....

    Maybe input file like this
    Code:
    Numer of apache processes: {host1:proc.cnt[apache].last(0)}
    Is problem with apache?: {host1:proc.cnt[apache].last(0)<1}
    Is host dead?: {host1:icmpping.max(#3)<1}
    could be parsed like:
    Code:
    Numer of apache processes: 13
    Is problem with apache?: OFF
    Is host dead?: OFF
    Thanx!
Working...