get alerts on a system rebootiing
list Kevin Kelly
Is there a way to get an alert when a system was rebooted? This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email
list Alan Sparks
▸
Kevin Kelly wrote:
Is there a way to get an alert when a system was rebooted?
Not exactly... but you could create an alert rule for the host for COLOR=yellow on TEST=cpu for the host. The test will go yellow for a period after the machine is rebooted. You might get alerts if the CPU warning thresholds are exceeded unless you tune some settings in hobbit-clients.cfg. Is an option. -Alan
list Josh Luthman
Alert on yellow I think? Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX "When you have eliminated the impossible, that which remains, however improbable, must be the truth." --- Sir Arthur Conan Doyle
▸
On Mon, Jun 29, 2009 at 4:11 PM, Kevin Kelly <user-46671a9fcf56@xymon.invalid> wrote:
Is there a way to get an alert when a system was rebooted? This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email
list Stewart L
I know that when one of mine reboot, I get alerts on CPU or Uptime (depending on which client they have installed). No config required other than alerting configuration.
▸
On Mon, Jun 29, 2009 at 4:11 PM, Kevin Kelly <user-46671a9fcf56@xymon.invalid> wrote:
Is there a way to get an alert when a system was rebooted? This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email
--
Stewart
--
An infinite number of mathematicians walk into a bar. The first one orders a
beer. The second orders half a beer. The third, a quarter of a beer. The
bartender says "You're all idiots", and pours two beers.
list Martin Ward
You could do it with your own test. It's not something I have tried but off the top of my head (and assuming you are using a UNIX client):
A script is configured with a file name in it, the file name contains the uptime of the server in seconds (not sure how you get this but it's not difficult).
Every time the server runs it checks the current uptime with the contents of the file,
If the number in the file is greater than the current uptime then the server has been rebooted and you send a red alert to the Xymon server. You can set the script to run once a day so it doesn't consume vast amounts of CPU, it will always be run when the client is first started up but since you are checking the uptime you won't get any false alerts (which you would get if you just checked the Xymon client's PID).
Question: How would you stop the alert being overwritten then next time the script is run? Hmmm, you could write the word "RED" into the file as well. The script would check for this and not send a green alert if it found the word, but then you would have to edit the file manually to remove the flag word.
This is just one idea and it has its flaws, but others may have better ideas or can improve on this one.
Good luck,
|\/|artin
▸
From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
Sent: Mon 29-Jun-09 21:11
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] get alerts on a system rebootiing
Is there a way to get an alert when a system was rebooted?
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
_____________________________________________________________________
*************************************************************************************
The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any attachments without retaining any copies.
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.
No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
list Francesco Duranti
Hi all... Finally after a bit of time I was able to create a new version of the hobbit_perl_client (monitor of databases, netapp filers, bea WLS). The download also includes a patch for xymon servers related to graph display for version 4.2.3/4.3.0-beta2/4.4.0. You can find the download here: http://sourceforge.net/projects/hobbit-perl-cl/ What's changed in the last version: General - v1.20 - Add +time on the status message only if HOBBIT is defined (don't use it for BB). - Added patches for xymon 4.2.3 / 4.3.0-beta2 / 4.4.0 dbcheck.pl - v1.09 - Corrected a bug with custom checks running every time instead of running only when defined (fast|medium|slow). - Added a check for mysql thread warning/alerts. - Changed the tablespace report to show Size as the MaxSize of the Tablespace instead of the Allocated Space. The %Used is now calculated on the MaxSize and not on the Allocated Space so that you don't get alerts if the tablespace can grow with AutoExtend. - Added tablespace checks for mysql and changed tablespace checks for sqlserver. - Added a "version=8|9" for db2 database in the config file and changed some query to reflect the version. netapp.pl - v1.20 - New tests included: vol status, aggr status, iscsi (various commands), nfsstat, lun (various commands), priority check on volumes, asis deduplication checks and reports. - New report format for disk/inode/snapshot. In disk report you can see ASIS% and aggregate where the volume reside. In the inode and snapshot report you can see where the volumes reside. Before changing the new report mode for DF you MUST patch the xymon server or the rrd for disk graphs will not be created anymore - Created new patches for xymon 4.2.3 and 4.3.0-beta2 and 4.4.0 - Added some instruction on README.bbhosts to divide tests on 2 or more rows (number of test is starting to be high to go on a single row). - Added support for diskless gateway from Netapp (V-Series) and IBM (N-Series). You should add diskless=yes to the filer configuration. - Changed display of df disk and snapshot space report to display as df -h instead of Kb. - Corrected some bug related to Environment report on older NetApp filer - Added a license check that will report as alert if there's any license that is expired on the filer and warning if a license will expire in less then the parameter "licensewarning" defined in the netapp.ini file (default is 30 days).
list Martin Flemming
Great to hear, Francesco ! thanks a lot for your work and i will test & report it immediately .. cheers, martin
▸
On Tue, 30 Jun 2009, Francesco Duranti wrote:
Hi all... Finally after a bit of time I was able to create a new version of the hobbit_perl_client (monitor of databases, netapp filers, bea WLS). The download also includes a patch for xymon servers related to graph display for version 4.2.3/4.3.0-beta2/4.4.0. You can find the download here: http://sourceforge.net/projects/hobbit-perl-cl/ What's changed in the last version: General - v1.20 - Add +time on the status message only if HOBBIT is defined (don't use it for BB). - Added patches for xymon 4.2.3 / 4.3.0-beta2 / 4.4.0 dbcheck.pl - v1.09 - Corrected a bug with custom checks running every time instead of running only when defined (fast|medium|slow). - Added a check for mysql thread warning/alerts. - Changed the tablespace report to show Size as the MaxSize of the Tablespace instead of the Allocated Space. The %Used is now calculated on the MaxSize and not on the Allocated Space so that you don't get alerts if the tablespace can grow with AutoExtend. - Added tablespace checks for mysql and changed tablespace checks for sqlserver. - Added a "version=8|9" for db2 database in the config file and changed some query to reflect the version. netapp.pl - v1.20 - New tests included: vol status, aggr status, iscsi (various commands), nfsstat, lun (various commands), priority check on volumes, asis deduplication checks and reports. - New report format for disk/inode/snapshot. In disk report you can see ASIS% and aggregate where the volume reside. In the inode and snapshot report you can see where the volumes reside. Before changing the new report mode for DF you MUST patch the xymon server or the rrd for disk graphs will not be created anymore - Created new patches for xymon 4.2.3 and 4.3.0-beta2 and 4.4.0 - Added some instruction on README.bbhosts to divide tests on 2 or more rows (number of test is starting to be high to go on a single row). - Added support for diskless gateway from Netapp (V-Series) and IBM (N-Series). You should add diskless=yes to the filer configuration. - Changed display of df disk and snapshot space report to display as df -h instead of Kb. - Corrected some bug related to Environment report on older NetApp filer - Added a license check that will report as alert if there's any license that is expired on the filer and warning if a license will expire in less then the parameter "licensewarning" defined in the netapp.ini file (default is 30 days).
list Buchan Milne
▸
On Tuesday 30 June 2009 17:09:20 Francesco Duranti wrote:
Hi all... Finally after a bit of time I was able to create a new version of the hobbit_perl_client (monitor of databases, netapp filers, bea WLS). The download also includes a patch for xymon servers related to graph display for version 4.2.3/4.3.0-beta2/4.4.0. You can find the download here: http://sourceforge.net/projects/hobbit-perl-cl/
I see you created an svn repo ... I would feel much more comfortable if there was more of an appearance of code maintenance. We made some changes to dbcheck.pl on the version we use internally, since there was no activity on this project for a few years .... If a VCS is available, I will try and see if any of the changes are still applicable. Regards, Buchan
list Francesco Duranti
I know it was my fault but I didn't had the time to work on hobbit_perl_client for quite a long period of time. Now it seems that I start to have back some time to work on it so I created the new version and I had also the intention of putting all the source on the svn. I tried to implement also some of the patches I received in the last years. The code regarding dbcheck.pl is not changed much so probably all the patches you have could be implemented (I just changed something on the tablespace view and for sqlserver/mysql). On the db-side I'm not a database expert so every change/new functionality would be really appreciated :) In the next weeks I'll probably also add a new program to the hobbit_perl_client to check jboss server... more on this as soon as I have something "usable" on hand... Regards, Francesco
▸
-----Original Message-----
From: Buchan Milne [mailto:user-9b139aff4dec@xymon.invalid] Sent: mercoledì 1 luglio 2009 9.55
To: user-ae9b8668bcde@xymon.invalid
Cc: Francesco Duranti
Subject: Re: [hobbit] Hobbit_Perl_Client v1.20
On Tuesday 30 June 2009 17:09:20 Francesco Duranti wrote:Hi all... Finally after a bit of time I was able to create a new version of the hobbit_perl_client (monitor of databases, netapp filers, bea WLS). The download also includes a patch for xymon servers related to graph display for version 4.2.3/4.3.0-beta2/4.4.0. You can find the download here: http://sourceforge.net/projects/hobbit-perl-cl/
I see you created an svn repo ... I would feel much more comfortable if there was more of an appearance of code maintenance. We made some changes to dbcheck.pl on the version we use internally, since there was no activity on this project for a few years .... If a VCS is available, I will try and see if any of the changes are still applicable. Regards, Buchan
list Buchan Milne
▸
On Wednesday 01 July 2009 10:10:07 Francesco Duranti wrote:
I know it was my fault but I didn't had the time to work on hobbit_perl_client for quite a long period of time. Now it seems that I start to have back some time to work on it so I created the new version and I had also the intention of putting all the source on the svn. I tried to implement also some of the patches I received in the last years. The code regarding dbcheck.pl is not changed much so probably all the patches you have could be implemented (I just changed something on the tablespace view and for sqlserver/mysql). On the db-side I'm not a database expert so every change/new functionality would be really appreciated :) In the next weeks I'll probably also add a new program to the hobbit_perl_client to check jboss server... more on this as soon as I have something "usable" on hand...
I might be worthwhile considering refactoring some of the code, and putting it under a Xymon namespace, and making an official Xymon perl framework. I have a few other perl checks, and could probably have benefited from some routines, but didn't want to add a new dependency. However, if we make an official perl library that ships with Xymon, it would be less of an issue ... Regards, Buchan
list Francesco Duranti
Hi all... this is a bugfix release... if you applied the patch on xymon 4.2.3 please really this patch, there was a bug related to how disk/inode data was handled. This version should also fix another problem with rrd files and qtree and some more little bugs. netapp.pl - v1.21 - Corrected some bugs related to xtstats function - Corrected a bug related to the linecount for snapshot view - Corrected a bug related to the new option for the extended df (netapp.pl was ignoring the netapp.ini option) - Corrected a bug in the patch for 4.2.3 that cause errors in the hobbit_rrd processes - Corrected the size of the volname of qtree volume and a bug related with the header line that was incorrectly recognized as a filesystem
▸
From: Francesco Duranti [mailto:user-7104dcecbfef@xymon.invalid] Sent: martedì 30 giugno 2009 17.09 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Hobbit_Perl_Client v1.20 Hi all... Finally after a bit of time I was able to create a new version of the hobbit_perl_client (monitor of databases, netapp filers, bea WLS). The download also includes a patch for xymon servers related to graph display for version 4.2.3/4.3.0-beta2/4.4.0. You can find the download here: http://sourceforge.net/projects/hobbit-perl-cl/ What's changed in the last version: General - v1.20 - Add +time on the status message only if HOBBIT is defined (don't use it for BB). - Added patches for xymon 4.2.3 / 4.3.0-beta2 / 4.4.0 dbcheck.pl - v1.09 - Corrected a bug with custom checks running every time instead of running only when defined (fast|medium|slow). - Added a check for mysql thread warning/alerts. - Changed the tablespace report to show Size as the MaxSize of the Tablespace instead of the Allocated Space. The %Used is now calculated on the MaxSize and not on the Allocated Space so that you don't get alerts if the tablespace can grow with AutoExtend. - Added tablespace checks for mysql and changed tablespace checks for sqlserver. - Added a "version=8|9" for db2 database in the config file and changed some query to reflect the version. netapp.pl - v1.20 - New tests included: vol status, aggr status, iscsi (various commands), nfsstat, lun (various commands), priority check on volumes, asis deduplication checks and reports. - New report format for disk/inode/snapshot. In disk report you can see ASIS% and aggregate where the volume reside. In the inode and snapshot report you can see where the volumes reside. Before changing the new report mode for DF you MUST patch the xymon server or the rrd for disk graphs will not be created anymore - Created new patches for xymon 4.2.3 and 4.3.0-beta2 and 4.4.0 - Added some instruction on README.bbhosts to divide tests on 2 or more rows (number of test is starting to be high to go on a single row). - Added support for diskless gateway from Netapp (V-Series) and IBM (N-Series). You should add diskless=yes to the filer configuration. - Changed display of df disk and snapshot space report to display as df -h instead of Kb. - Corrected some bug related to Environment report on older NetApp filer - Added a license check that will report as alert if there's any license that is expired on the filer and warning if a license will expire in less then the parameter "licensewarning" defined in the netapp.ini file (default is 30 days).
list Derek Deckert
Return Receipt
Your [hobbit] Hobbit_Perl_Client v1.21 document: was user-7cb470a0e94e@xymon.invalid received by: at: 07/02/2009 03:26:45 PM
Notice:
This communication is an electronic communication within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. � 2510. Its disclosure is strictly limited to the recipient(s) intended by the sender of this message. This transmission and any attachments may contain proprietary, confidential, attorney-client privileged information and/or attorney work product. If you are not the intended recipient, any disclosure, copying, distribution, reliance on, or use of any of the information contained herein is STRICTLY PROHIBITED. Please destroy the original transmission and its attachments without reading or saving in any matter and confirm by return email.
list Francesco Duranti
It would really be nice to have it included in this way so that anyone that want to develop something with perl for xymon can use a unique set of utility/libraries... The biggest problem will probably the lack of documentation (I'm not very good at it) ... but I will probably put some documentation/commenting on the source code very soon... I know that the code is not so clean but I'm also really new with perl (and probably many of the function/procedure could be written better by someone that know the language more then me :). I will try to put the project on svn soon (in the next few day) and I'll try to start to work with it (I don't know anything about svn so I have to read some docs on how to do those things...).
▸
Francesco
-----Original Message-----
From: Buchan Milne [mailto:user-9b139aff4dec@xymon.invalid] Sent: mercoledì 1 luglio 2009 11.14
To: user-ae9b8668bcde@xymon.invalid
Cc: Francesco Duranti
Subject: Re: [hobbit] Hobbit_Perl_Client v1.20
I might be worthwhile considering refactoring some of the code, and putting it under a Xymon namespace, and making an official Xymon perl framework.
I have a few other perl checks, and could probably have benefited from some routines, but didn't want to add a new dependency. However, if we make an official perl library that ships with Xymon, it would be less of an issue ...
Regards,
Buchan
list Bill Hart
Return Receipt
Your [hobbit] Hobbit_Perl_Client v1.21 document: was user-079de6b18352@xymon.invalid received by: at: 07/02/2009 03:35:42 PM
▸
Notice:
This communication is an electronic communication within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. � 2510. Its disclosure is strictly limited to the recipient(s) intended by the sender of this message. This transmission and any attachments may contain proprietary, confidential, attorney-client privileged information and/or attorney work product. If you are not the intended recipient, any disclosure, copying, distribution, reliance on, or use of any of the information contained herein is STRICTLY PROHIBITED. Please destroy the original transmission and its attachments without reading or saving in any matter and confirm by return email.