Ad Widget

Collapse

How to group several actions that occur at the same time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hans dmacron0
    Junior Member
    • Aug 2010
    • 10

    #1

    How to group several actions that occur at the same time?

    Hi,

    Just another question.

    Is it possible to group (or collect) several actions and only get one message?

    I know I can make dependencies of triggers. But supose a disk full and a high cpu load are tiggered on the same server and at the same time an other server has a raid that fails. I would like to get just one message about it.

    It this at all possible? If yes can some one point me in the right direction?

    Thanks.

    Hans de Groot
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    We are doing this king of message aggregation via an external script.

    We have defined a media of type "Script".
    Associated script looks like:
    Code:
    !# /bin/sh
    echo $2 >> /tmp/emailbatch.log
    Every minute, a cron job reads /tmp/emailbatch.log, if non empty send it my mail.

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    Working...