Xymon Mailing List Archive search

Running client scripts from alerts???

list Mario Andre
Tue, 2 Feb 2010 12:08:14 -0200
Message-Id: <user-1580485a0e56@xymon.invalid>

Hi,
On a linux client you I can use hobbitboard. I don't know if bbwin supports
hobbitboard.

I use this script to restart devmon on a bbproxy:

#!/bin/sh
TEST=`/home/bbmon/server/bin/bb  IP_of_XYMON  "hobbitdboard test=dm
color=purple" | grep myhost`

if  [ -n "$TEST" ];
        then
PID=`cat /var/run/devmon/devmon.pid`
echo $PID;
kill $PID;
sleep 30;
/usr/local/devmon/devmon
xm=1;
else
xm=0;
fi
#echo $xm


On Mon, Feb 1, 2010 at 8:36 AM, Malcolm Hunter <user-b3e590ffeb6d@xymon.invalid>wrote:
Are there any way to make XYmon run scripts on clients depending on
alerts?
I'm monitoring a bunch of services on windows 2003/2008 servers running
bbwin,
and I would like to run different scripts depending on which service is
failing.
Instead of just restarting the service, I would like to run a script to
take care of the real reason of the failure.

Are there any way to do this with XYmon?
You could write an external script called from BBwin that checks the
service status and calls the relevant script when it fails.

Malcolm


--
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Facebook: http://www.facebook.com/FriendlyAtheist

Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5
• sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser