<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3562" name=GENERATOR>
<STYLE>
<!--
                       
 font-face
        {font-family:"Cambria Math";}
font-face
        {font-family:Calibri;}
                        
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {}

div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV id=idOWAReplyText27140 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>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):</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>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).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Every time the server runs it checks the current uptime with the contents of the file,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>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).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>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.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>This is just one idea and it has its flaws, but others may have better ideas or can improve on this one.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Good luck,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>|\/|artin</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Kevin Kelly [mailto:kkelly@lifetouch.com]<BR><B>Sent:</B> Mon 29-Jun-09 21:11<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] get alerts on a system rebootiing<BR></FONT><BR></DIV>
<DIV>
<DIV class=Section1>
<P class=MsoNormal>Is there a way to get an alert when a system was rebooted?</P>
<P class=MsoNormal> </P>
<P class=MsoNormal> </P></DIV><BR>______________________________________________________________________<BR>This email has been scanned by the MessageLabs Email Security System.<BR>For more information please visit http://www.messagelabs.com/email <BR>_____________________________________________________________________<BR></DIV><FONT SIZE=3><BR>
<BR>
*************************************************************************************<BR>
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way. <BR>
<BR>
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 security@colt.net and delete the message and any attachments without retaining any copies. <BR>
<BR>
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses. <BR>
<BR>
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.  <BR>
<BR>
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.<BR>
</FONT>
</BODY></HTML>