configuration of alerting
list Kevin Kelly
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
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 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
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
▸
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