Ad Widget

Collapse

Actions providing more information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hichhiker
    Member
    • Nov 2004
    • 45

    #1

    Actions providing more information

    I am running 1.1.2 and was trying to set up an email alert that has some extra information. In this case I was monitoring a temperature sensor and wanted to alert if temp goes over a certain value. I also wanted to make sure the alert email contained some information as to what was the average temperature for last 30 minutes and what was the last temperature change, etc.

    All of this works great if you create a separate action just for this trigger - but having to create a dedicated action for each trigger is a lot of unneccessary work and a maintanance nightmare - so I was wondering if we can either hijack the trigger description or add another field to a trigger that would contain a message that can be included via a {TRIGGER.DETAIL} style tag by an action. The trick is that the tag would need to be recursively processed during alert time.

    so you would have a trigger like this:

    =========
    TRIGGER
    =========
    Expression: {SERVER:webtherm.sensor[3].last(0)}>70
    Detail:
    Current temperature is {SERVER:webtherm.sensor[3].last(0)}
    Change since last check... {SERVER:webtherm.sensor[3].change(0)}
    Average temp over last half hour: {SERVER:webtherm.sensor[3].avg(1800)}
    ==========

    and Action like this:
    ==========
    ACTION
    ==========
    ...
    Message:
    {TRIGGER.NAME}: {STATUS}
    {TRIGGER.DETAIL}
    ==========

    So this one action can be used via conditions with a lot of triggers and produce custom message for each trigger with relevant details.

    Just an idea..


    Also, the expressions that can be used to mine the data are great but it would be nice to have a bit more control via them. For example I would like to be able to get last "n" values, or a value as of "n" minutes/seconds ago, and other data mining things.

    I hope this makes sense.

    Thanks,

    -HH
Working...