PDA

View Full Version : Item value usage in Trigger name.


burtininkai
29-04-2010, 07:49
Just created few items to monitor NetAPP volume.


To get Volume name: Key is aggvolnm.2
To gaet Space usage: Key is aggvolpr.2


Monitoring using SNMP all seems to be ok getting Values. Perfect.

But also need to create Trigger which would send me an email, in which I would get information Volume name + space usage.

Template name: UCB_NetApp

In zabbix created trigger:

Name: {{HOSTNAME}:aggvolnm.2} space usage > 90 %
Expression: {UCB_NetApp:aggvolpr.2.min(#2)}>90 & UCB_NetApp:aggvolpr.2.min(#2)}<95

Trigger fires up and email sending action:

Default subject: {HOSTNAME}: {TRIGGER.NAME}: {STATUS}
Default message: Hostname: {HOSTNAME}
Problem: {TRIGGER.NAME}:
Problem status: {STATUS}
Severity: {TRIGGER.SEVERITY}
Date and Time: {EVENT.DATE} - {EVENT.TIME}
Last tested value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}

But when getting email getting error:

Server1: *UNKNOWN* space usage > 90 %

In version 1.8 all was fine.

What I've missed? Could You please show me the way? Thank You in advance.

MrKen
29-04-2010, 10:22
In zabbix created trigger:

Name: {{HOSTNAME}:aggvolnm.2} space usage > 90 %

But when getting email getting error:

Server1: *UNKNOWN* space usage > 90 %



Looks like that macro is not supported. Check the list of supported macros in the online documentation. http://www.zabbix.com/documentation/1.8/manual/config/macros (http://www.zabbix.com/forum/../documentation/1.8/manual/config/macros)

Don't know why it worked in 1.8 :confused:

MrKen

burtininkai
29-04-2010, 10:35
Seems like:

{host:key.func(param)} should be working. in notifications not?

burtininkai
11-05-2010, 08:57
All done.

Trigger
{{HOSTNAME}:aggvolnm.1.last(0)}Working perfectly for trigger name, but are vissible only for mail notifications. But still much better notification.

Thank You for support. Thread can be closed.