PDA

View Full Version : how did you set up your email alerts?


mconigliaro
27-06-2005, 23:20
i dont know if i've missed something, but it appears that you need you manually create email alerts for each of your triggers. needless to say, this can take a really long time unless you write a script to do it for you (which is what i did for now). my question is this: is it possible (or maybe planned for a future release) to create "global" email alerts and assign them to all triggers? if not, what did you do for your alerts? for what its worth, id like to create one message with the following format, and link it to every trigger:

subject: {HOSTNAME} {ITEM_DESCRIPTION}
--
item value: {ITEM_VALUE}
trigger status: {TRIGGER_STATUS}

as you can see, additional variables are required to do this. you need to get the description and value of the item that the trigger is assiciated with, as well as the trigger status.

if its not available already, something like this would save a lot of time.

Alexei
28-06-2005, 08:30
Please, use trigger Scope "All triggers of this host" or "All triggers" to define global triggers.

mconigliaro
28-06-2005, 15:38
im aware of this feature, but i dont understand how i can get a meaningful alert without extra variables to hold the item description/value. in other words, if i were to create an alert with the body below, and assign it to all triggers...

Disk free on /: {{HOSTNAME}:diskfree[/].last(0)}

this doesnt help me when the trigger that caused the alert was high cpu utilization. correct me if im wrong, but it seems that i would keep getting email about disk space regardless of what trigger actually became true.