Hi all,
We're implementing a connector between the zabbix events to our Ticketing system (jira), all are running so good but for the correct classification of each event we need to add the Hostgroup to the Action and no way we found.
We try to do those things:
1.- Add a new template macro called {$Hostgroup} and using it on all the servers.
2.- Add like a field into the Default message field the {$Hostgroup}, it doesnt runs.
3.- Add the macro inside each host like host macro and use it on the Default message field, {$Hostgroup}, it doesnt runs.
4.- Change the Default message to a remote command like this:
hostname:/home/zabbix/scripts/send_mail.sh {$HOSTGROUP} "{HOSTNAME}" "{TRIGGER.NAME}" "{TRIGGER.COMMENT}"
The send_mail.sh is :
echo $1 $2 $3 $4 | /bin/mail -s "test" [email protected]
But the messages doesnt have the {$Hostgroup} fill, they appears like {}.
For a correct implementation we need to have the hostgroup corresponding to each server because as we develop it each event comes to a different support group queue.
Any idea?
Maybe a develop inside the actions.inc.php?
Each server only have one hostgroup deffined.
Thanks so much!
We're implementing a connector between the zabbix events to our Ticketing system (jira), all are running so good but for the correct classification of each event we need to add the Hostgroup to the Action and no way we found.
We try to do those things:
1.- Add a new template macro called {$Hostgroup} and using it on all the servers.
2.- Add like a field into the Default message field the {$Hostgroup}, it doesnt runs.
3.- Add the macro inside each host like host macro and use it on the Default message field, {$Hostgroup}, it doesnt runs.
4.- Change the Default message to a remote command like this:
hostname:/home/zabbix/scripts/send_mail.sh {$HOSTGROUP} "{HOSTNAME}" "{TRIGGER.NAME}" "{TRIGGER.COMMENT}"
The send_mail.sh is :
echo $1 $2 $3 $4 | /bin/mail -s "test" [email protected]
But the messages doesnt have the {$Hostgroup} fill, they appears like {}.
For a correct implementation we need to have the hostgroup corresponding to each server because as we develop it each event comes to a different support group queue.
Any idea?
Maybe a develop inside the actions.inc.php?
Each server only have one hostgroup deffined.
Thanks so much!

tomorrow at work I've to read it with care
Comment