View Full Version : zabbix 1.1.2 Actions
dantheman
12-09-2006, 16:56
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?
dantheman
12-09-2006, 18:24
I will be rolling back to 1.1.1 until this is figured out.. it creates a bit more work for us (well for me.. my boss starts asking what is going on when the emails don't say what is going on..) when we don't know which server is having the problem.
dantheman
12-09-2006, 23:14
Does anybody else have this behavior with the new release?
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).
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?
den_crane
13-09-2006, 10:35
We 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 все в порядке.
Сорри фор рашион, лень.
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.
Fixed src/zabbix_server/expression.c is attached. Recompile server and restart.
den_crane
13-09-2006, 13:34
Fixed src/zabbix_server/expression.c is attached. Recompile server and restart.
It's work. Thank you.
New at this thanks. I have copied the new file into the specified directory, what is the next step?
peter_field
21-09-2006, 02:56
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.
Still no luck applying the fix provided by Alexei :(
dantheman
21-09-2006, 17:24
No luck? It worked fine for me, what did you do and how do you know it's not working?
RohrbaGe
21-09-2006, 17:56
definetly the patch worked.
Ro
peter_field
22-09-2006, 10:54
Originally Posted by hornos
Still no luck applying the fix provided by AlexeiWe need more detail if we are going to help you with your problem. Post some more information about the problem are you having.
Thanks Peter, I was missing the options. Works now. :)
Thanks Peter, I was missing the options. Works now. :)Which options were you missing?
I applied all the steps mentionned in post #11 (http://www.zabbix.com/forum/showpost.php?p=13933&postcount=11)
In attachment you will see the Action configuration and the mail output
disgruntleddutch
04-10-2006, 02:09
Patch worked miracles here as well.
Fixed src/zabbix_server/expression.c is attached. Recompile server and restart.
The patch worked fine for {HOSTNAME}. On our patched 1.1.2 zabbix system though, the new {TRIGGER.SEVERITY} variable doesn't seem to work . Anyone else having this problem?
knarfling
04-10-2006, 16:36
Sorry, It is working just fine on my end. I also applied the patch and am using 1.1.2 on RedHat Enterprise 4.
I have a subject of {HOSTNAME}: {TRIGGER.SEVERITY} and I get
<realhostname>: High
or
<realhostname>: Average
as the subject of the emails.
This tells me which server and how big the problem is before I see the trouble.
Any chance of a misspelling or a broken brackets issue? Can you copy and paste the actual text of the email?
aorlowski
05-10-2006, 08:40
cd ~/zabbix-1.1.2
./configure --enable-server --enable-agent --with-mysql --with-net-snmp
make
make install
This was great, and I am glad you fixed it. It was going into prod this weekend.
Great product and I would like to get our company to buy the support. Zabbix can do alot more than I can tell it to, so the support would be great.