Xymon Mailing List Archive search

Running client scripts from alerts???

10 messages in this thread

list Mathias Carlsson · Mon, 1 Feb 2010 10:12:25 +0100 ·
Hi!

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?


Mathias Carlsson
list Malcolm Hunter · Mon, 01 Feb 2010 11:36:27 +0100 ·
quoted from Mathias Carlsson
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
list Thorsten Erdmann · Mon, 01 Feb 2010 14:40:51 +0100 ·
Hello

is there a way to cleanup hostdata and histlogs automaticly? Lets say 
delete all files older than half a year or so. May I do that via OS or is 
there a special Hobbit-way to do it.

Thanks

Thorsten Erdmann


If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
list Chris Morris · Mon, 1 Feb 2010 13:53:22 -0000 ·
Use the Hobbit trimhistory utility.


	From: user-9219fb9415b1@xymon.invalid
[mailto:user-9219fb9415b1@xymon.invalid] 
	Sent: 01 February 2010 13:41
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] cleanup hostdata and histlogs
quoted from Thorsten Erdmann
	
	
	Hello
	
	is there a way to cleanup hostdata and histlogs automaticly?
Lets say delete all files older than half a year or so. May I do that
via OS or is there a special Hobbit-way to do it.
	
	Thanks
	
	Thorsten Erdmann
	
	If you are not the intended addressee, please inform us
immediately that you have received this e-mail in error, and delete it.
We thank you for your cooperation. 
	
	
**************************************************************************** 

The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any). 
*****************************************************************************
list Rich Smrcina · Mon, 01 Feb 2010 08:16:57 -0600 ·
quoted from Chris Morris
On 02/01/2010 07:40 AM, user-9219fb9415b1@xymon.invalid wrote:
Hello

is there a way to cleanup hostdata and histlogs automaticly? Lets say delete all files older than half a year or so. May I do that via OS or is there a special Hobbit-way to do it.

Thanks

Thorsten Erdmann

If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
Take a look at the trimhistory command.

-- 
Rich Smrcina
Phone: XXX-XXX-XXXX
http://www.linkedin.com/in/richsmrcina

Catch the WAVV! http://www.wavv.org
WAVV 2010 - Apr 9-13, 2010 Covington, KY
list Thorsten Erdmann · Mon, 01 Feb 2010 15:49:25 +0100 ·
quoted from Rich Smrcina
On 02/01/2010 07:40 AM, user-9219fb9415b1@xymon.invalid wrote:
Hello

is there a way to cleanup hostdata and histlogs automaticly? Lets say > delete all files older than half a year or so. May I do that via OS or 
is there a special Hobbit-way to do it.

Thanks

Thorsten Erdmann
Take a look at the trimhistory command.
Ok, trimhistory cleans up the histlogs, but not the hostdata. I did the following:

./trimhistory --cutoff=`expr \`date +%s\` - 31536000` --drop --droplogs

Can I simply delete the old hostdata files?

Thank you
quoted from Rich Smrcina
Thorsten Erdmann


If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
list Rich Smrcina · Mon, 01 Feb 2010 09:16:00 -0600 ·
quoted from Thorsten Erdmann
On 02/01/2010 08:49 AM, user-9219fb9415b1@xymon.invalid wrote:
On 02/01/2010 07:40 AM, user-9219fb9415b1@xymon.invalid wrote:
Hello

is there a way to cleanup hostdata and histlogs automaticly? Lets say
delete all files older than half a year or so. May I do that via OS or
is there a special Hobbit-way to do it.

Thanks

Thorsten Erdmann
Take a look at the trimhistory command.
Ok, trimhistory cleans up the histlogs, but not the hostdata. I did the following:

./trimhistory --cutoff=`expr \`date +%s\` - 31536000` --drop --droplogs

Can I simply delete the old hostdata files?

Thank you
Thorsten Erdmann

If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
I suggest checking the list archive, but based on how much historical information you require I'm inclined to say yes.
quoted from Rich Smrcina

-- 
Rich Smrcina
Phone: XXX-XXX-XXXX
http://www.linkedin.com/in/richsmrcina

Catch the WAVV! http://www.wavv.org
WAVV 2010 - Apr 9-13, 2010 Covington, KY
list Mario Andre · Tue, 2 Feb 2010 12:08:14 -0200 ·
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
quoted from Malcolm Hunter


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

list Thorsten Erdmann · Mon, 22 Feb 2010 14:51:07 +0100 ·
Hi

I use the hobbit extension script dbcheck.pl for checking my oracle databases. Now for the first time one of my databases gets a tablespace full warning on the undo tablespace. dbcheck.pl says undotablespace is filled up to 99%. But Enterprise Manager says it's only 75%.

Further analysis shows that indeed dba_free_space is up to 99%. As I understand this, it does not make sense to check dba_free_space for undo tablespaces because dba_free_space only shows the free data at the end of a datafile, not the free blocks in the middle of the files (maybe this is also tru with tablespaces containing BLOBs).

So I think it would be more sensefull to ignore undo tablespaces in the tablespace check, therefor dbcheck has the undo-check. How can I filter out all the undo tablespaces without knowing their exact names in general. BTW: in the graph section of the tablespace-checks the undo tablespaces are missing already, why?


Another problem is the MemReq-check. It shows the sum of all errors since the beginning of time. I think this is more a database issue, but how can I clear the counter if I think I have repaired the cause?
quoted from Rich Smrcina

Thank you

Thorsten Erdmann


If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
list Kumaresh P N · Fri, 18 Jun 2010 10:24:31 -0400 ·
Hi Thorsten,

I am in the same situation, did u delete hostdata and does it create any
other issues ?

************************************
Best Regards
Kumaresh
quoted from Rich Smrcina


On Mon, Feb 1, 2010 at 10:49 AM, <user-9219fb9415b1@xymon.invalid> wrote:
On 02/01/2010 07:40 AM, user-9219fb9415b1@xymon.invalid wrote:
Hello

is there a way to cleanup hostdata and histlogs automaticly? Lets say
delete all files older than half a year or so. May I do that via OS or
is there a special Hobbit-way to do it.

Thanks

Thorsten Erdmann
Take a look at the trimhistory command.
Ok, trimhistory cleans up the histlogs, but not the hostdata. I did the
following:

./trimhistory --cutoff=`expr \`date +%s\` - 31536000` --drop --droplogs

Can I simply delete the old hostdata files?

Thank you

Thorsten Erdmann

If you are not the intended addressee, please inform us immediately that
you have received this e-mail in error, and delete it. We thank you for your
cooperation.