After I upgraded to 1.1.2, I restarted one of our servers and the email alert I received did not populate the {HOSTNAME} variable in the email body. I also am using the variable {STATUS} and it worked properly, but I didn't get a value for the hostname, I know some work was done with the variables.. did hostname get changed?
Ad Widget
Collapse
zabbix 1.1.2 Actions
Collapse
X
-
Your not the only one dan... I have the same prob.
Its funny how even though it can be a minor thing, the "boss approval factor" always plays an important role.
No offence to Alexei but these little things add up to an overall impression of the software. If there are no proper upgrade release notes, warnings, etc; the boss isnt going to approve a zabbix maintenance contract (which I personally would lobby for if zabbix had a better reputation in our company).Comment
-
We just retested this functionality. Everything works perfectly on our test system.
May I ask you to provide us with:
- original message body
- message body from the email
- is there anything in ZABBIX server log file?Comment
-
Originally posted by AlexeiWe just retested this functionality. Everything works perfectly on our test system.
Action
Subject {TRIGGER.NAME}: {STATUS}
In version 111 {TRIGGER.NAME} содержащее в свою очередь {HOSTNAME} разворачивалось рекурсивно, в 112 только до первого уровня.
С {HOSTNAME} используемом прямо в action все в порядке.
Сорри фор рашион, лень.Last edited by den_crane; 13-09-2006, 10:43.Comment
-
I do confirm that ZABBIX does not substitute {HOSTNAME} if it was part of {TRIGGER.NAME} and used in either message's subject or body. Standalone {HOSTNAME} works fine.
Sorry for this.
A fix will be available shortly.Comment
-
Fixed src/zabbix_server/expression.c is attached. Recompile server and restart.Attached FilesComment
-
Recompile
First off, thanks for the quick fix Alexei.
mkaser, you can recomplile by:
1. put updated file into correct location in source
2. stop any running instances of zabbix_server, zabbix_agentd, etc.
3. from the root directory of the source run configure. I run:
#./configure --enable-server --enable-agent --with-mysql --with-net-snmp
however, you might need different switches if you use a different database, or dont need snmp, etc.
4. assuming that you don't get any errors, then run
#make install
5. Start zabbix_server, etc again
Hope that helps.Comment
-
Post more detail hornos
We need more detail if we are going to help you with your problem. Post some more information about the problem are you having.Originally Posted by hornos
Still no luck applying the fix provided by AlexeiComment
Comment