Xymon Mailing List Archive search

alarms and recoveries

2 messages in this thread

list Attila Papai · Thu, 23 Oct 2014 14:04:21 +1300 ·
Hi,

I'd like to ask your help, what would suggest to my situation. I'm trying
to set up xymon to send alarms to netcool.

HOST=%wmail.*.xyz.net COLOR=red,yellow,purple EXSERVICE=ports,procs,msgs
        SCRIPT /etc/xymon/send_alarm.sh "WMAIL" FORMAT=plain RECOVERED

When disk is getting full, it sends a warning at warning level. Then i was
decreasing free space, it hit the PANIC level, alarm became critical. Then
I made some space, to clear the alarms and lets see what happens. When it
recovered, I only got recovery for critical alarm, but for the netcool, I
need to send a recovery also to the WARNING alarm. Is this possible to do
this by default, or I need to develop a script for it? Like when sending
recovery to CRITICAL, send a recovery also to the MAJOR alarm?

Thanks!
list Betsy Schwartz · Sun, 26 Oct 2014 21:45:02 -0400 ·
One option would be to modify your send_alarm script
-check the board status of the alert
-if it is yellow, and I am sending a red, send a recovery for the yellow.

checking to see if the test  is yellow is going to be something like (don't
quote me , check the man page for exact syntax):

/usr/local/xymon/server/bin/xymon localhost "xymondboard test=$mytest
host=$myhost fields=color"