Xymon Mailing List Archive search

configuration of alerting

3 messages in this thread

list Kevin Kelly · Wed, 18 Nov 2009 12:46:29 -0600 ·
Wondering if someone could help solve my issues I am having with
configuring alerts.

 
I want to be able to send only certain disk and proc alerts to specific
groups. So in the example configuration below, I want to send alerts on
/appfilesystem to the server1 group, but when the file system turns red,
it goes the admin group only, instead of the server1 group.

 
The other is with procs. I wish to only have alerts defined(test) go to
server1 group with the exception of the time on Sunday mornings. But the
way I have it, they would also get alerts when sendmail goes red.  

 
Hobbit-clients.cfg

HOST=server1

        PROC    test 

        DISK    /appfilesystem  75 85 group=server1

 
DEFAULT

                DISK       *  85 95

                PROC     sendmail

 
Hobbit-alerts.cfg

HOST=server1 COLOR=yellow EXTIME=0:0255:0335 

#       MAIL user-2a94730ebdd3@xymon.invalid FORMAT=PLAIN SERVICE=procs DURATION>5

 
HOST=* COLOR=red

      MAIL user-b8d5edc5c44f@xymon.invalid FORMAT=PLAIN SERVICE=disk,proc DURATION>5

 
GROUP=server1

        MAIL user-2a94730ebdd3@xymon.invalid REPEAT=60 FORMAT=PLAIN DURATION>5

 
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Kevin Kelly · Thu, 19 Nov 2009 14:29:08 -0600 ·
Does anyone have a suggestion for this?
quoted from Kevin Kelly

 
I want to be able to send only certain disk and proc alerts to specific
groups. So in the example configuration below, I want to send alerts on
/appfilesystem to the server1 group, but when the file system turns red,
it goes the admin group only, instead of the server1 group.

 
The other is with procs. I wish to only have alerts defined(test) go to
server1 group with the exception of the time on Sunday mornings. But the
way I have it, they would also get alerts when sendmail goes red.  

 
Hobbit-clients.cfg

HOST=server1

        PROC    test 

        DISK    /appfilesystem  75 85 group=server1

 
DEFAULT

                DISK       *  85 95

                PROC     sendmail

 
Hobbit-alerts.cfg

HOST=server1 COLOR=yellow EXTIME=0:0255:0335 

#       MAIL user-2a94730ebdd3@xymon.invalid FORMAT=PLAIN SERVICE=procs DURATION>5

 
HOST=* COLOR=red

      MAIL user-b8d5edc5c44f@xymon.invalid FORMAT=PLAIN SERVICE=disk,proc DURATION>5

 
GROUP=server1

        MAIL user-2a94730ebdd3@xymon.invalid REPEAT=60 FORMAT=PLAIN DURATION>5

 
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Martin Flemming · Thu, 19 Nov 2009 21:48:46 +0100 (CET) ·
Hi !

.. only for debugging ...

You can check alerts with

/usr/lib/hobbit/server/bin/bbcmd hobbitd_alert --debug --test HOST SERVICE --cifs

and you can see why/what does('nt) trigger the alert


cheers,

 	martin
quoted from Kevin Kelly


On Thu, 19 Nov 2009, Kevin Kelly wrote:
Does anyone have a suggestion for this?


I want to be able to send only certain disk and proc alerts to specific
groups. So in the example configuration below, I want to send alerts on
/appfilesystem to the server1 group, but when the file system turns red,
it goes the admin group only, instead of the server1 group.


The other is with procs. I wish to only have alerts defined(test) go to
server1 group with the exception of the time on Sunday mornings. But the
way I have it, they would also get alerts when sendmail goes red.


Hobbit-clients.cfg

HOST=server1

       PROC    test

       DISK    /appfilesystem  75 85 group=server1


DEFAULT

               DISK       *  85 95

               PROC     sendmail


Hobbit-alerts.cfg

HOST=server1 COLOR=yellow EXTIME=0:0255:0335

#       MAIL user-2a94730ebdd3@xymon.invalid FORMAT=PLAIN SERVICE=procs DURATION>5


HOST=* COLOR=red

     MAIL user-b8d5edc5c44f@xymon.invalid FORMAT=PLAIN SERVICE=disk,proc DURATION>5


GROUP=server1

       MAIL user-2a94730ebdd3@xymon.invalid REPEAT=60 FORMAT=PLAIN DURATION>5