Hello
I have a question about actions a trigger can execute. It is like this. In the company I work, an alarmcenter is already existing, which works with XML files.
Now I got the assignment, that if for example a server is down, zabbix should create in a specific folder an XML file, which will be used from the existing alarmcenter to generate a VBA Msgbox alert. This type
of notification is just for low priorities events.
For more importent tasks I use the mail action which comes with zabbix.
Goal of this task is to keep the number of sent emails as low as possible.
I have created the following alert script:
Then I created the media type script for my xml(Administration -> Media Type -> Create New) file and added it to my users media(Profile -> Media). Now if the trigger changes it creates the file.
What do you think about this? Are there betters ways? What makes me unhappy with this solution is, that I have to connect this alert script with a user.
What I imagine is something like "IF trigger comes true THEN create xml file".
Thanks and kind regards
jompsi
I have a question about actions a trigger can execute. It is like this. In the company I work, an alarmcenter is already existing, which works with XML files.
Now I got the assignment, that if for example a server is down, zabbix should create in a specific folder an XML file, which will be used from the existing alarmcenter to generate a VBA Msgbox alert. This type
of notification is just for low priorities events.
For more importent tasks I use the mail action which comes with zabbix.
Goal of this task is to keep the number of sent emails as low as possible.
I have created the following alert script:
Code:
jompsi@zabbix:/usr/lib/zabbix/alertscripts# cat xml #!/bin/bash to=$1 subject=$2 body=$3 out=/tmp/test.xml echo $subject>$out echo $body>>$out
What do you think about this? Are there betters ways? What makes me unhappy with this solution is, that I have to connect this alert script with a user.
What I imagine is something like "IF trigger comes true THEN create xml file".
Thanks and kind regards
jompsi

Comment