Xymon Mailing List Archive search

SMS alert on reboot

3 messages in this thread

list Jarrod Hodder · Wed, 18 Mar 2009 09:27:03 +1100 ·
Hey Guys,

 
I am trying to find a way I can get a SMS notification to be sent out
when a computer has been rebooted.

My SMS gateway is working fine. The indepth report on the CPU says that
the machine has been rebooted, but the status of the CPU never goes off
green.

How do I set it up to tell me when it has been rebooted when the status
doesn't change?

 
Cheers

 
Jarrod Hodder
list Josh Luthman · Tue, 17 Mar 2009 19:07:47 -0400 ·
When a machine has been rebooted the cpu column should go yellow for 60
minutes - this is how you'll initiate that notification.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
quoted from Jarrod Hodder


On Tue, Mar 17, 2009 at 6:27 PM, Jarrod Hodder <user-ee4213dc04dd@xymon.invalid>wrote:
 Hey Guys,


I am trying to find a way I can get a SMS notification to be sent out when
a computer has been rebooted.

My SMS gateway is working fine. The indepth report on the CPU says that the
machine has been rebooted, but the status of the CPU never goes off green.

How do I set it up to tell me when it has been rebooted when the status
doesn’t change?


Cheers


*Jarrod Hodder*

list Anna Jonna Armannsdottir · Wed, 18 Mar 2009 09:13:08 +0000 ·
quoted from Jarrod Hodder
On mið, 2009-03-18 at 09:27 +1100, Jarrod Hodder wrote:
Hey Guys,

 
I am trying to find a way I can get a SMS notification to be sent out
when a computer has been rebooted.

My SMS gateway is working fine. The indepth report on the CPU says
that the machine has been rebooted, but the status of the CPU never
goes off green.

How do I set it up to tell me when it has been rebooted when the
status doesn’t change?
It is done in client configuration. In hobbit-client.cfg : # The file defines a series of rules:
#    UP     : Changes the "cpu" status when the system has rebooted
recently,

For every client I use: HOST=xxxxxxx.is
	UP      10 
This rule triggers a yellow warning, for the cpu. So in hobbit-alerts.cfg you would have to use something like: HOST=xxxxxxx.is COLOR=yellow
	SCRIPT /usr/local/bin/hobbit-sms.sh 123456789 
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.