Ad Widget

Collapse

Including last value in an Alert

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oliverm
    Senior Member
    • May 2006
    • 155

    #1

    Including last value in an Alert

    Hi,

    I have a "catch all" alert that basically emails us when any HIGH trigger fires off.

    Is there something I can put in the alert to say what the last value was ?

    So, if its alerting coz of a web response code, to include the status code, if its alerting due to a lack of memory on a monitored box include the last value of the free mem...etc

    Olly
  • knarfling
    Member
    • Sep 2006
    • 47

    #2
    Catch all action

    Yes, I use a catch all action as well as some individual actions. Here is the macro that I use for the catch all.

    {HOSTNAME}:{TRIGGER.KEY} status: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}

    This will give messages like

    mysystem: system.cpu.load[,avg1] status: 5.03
    or
    mysystem: proc.num[httpd] status: 0
    or
    mysystem: web.test.fail[ShifterService] status: 1

    Hope this helps

    Comment

    Working...