Hi to all,
I just needed this so I made little patch. It is working for me, but it is more hack than real patch. I added commandline options to zabbix_server
than you can use zabbix_server with parameter -e and -t :
It is not safe and sure alex will don't like me for my hacks
but mysticaly, it works
we use it as external alerter script which substitutes macros in external files.
I just needed this so I made little patch. It is working for me, but it is more hack than real patch. I added commandline options to zabbix_server
Code:
" -n --new-nodeid <nodeid> convert database data to new nodeid",
" -e --expand-macros expand macros on stdin and print to stdout",
" -t --expand-macros-triggerid <triggerid> for -e and simple_macros: triggerid",
Code:
./zabbix_server -e -t '19524' -c /etc/zabbix/zabbix_server_beta.conf
{a423-1:icmpping.last(0)}
{HOSTNAME}
ctrl-d
1
A423-1
but mysticaly, it works
we use it as external alerter script which substitutes macros in external files.
Comment