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
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: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
On Tue, Mar 17, 2009 at 6:27 PM, Jarrod Hodder <Jarrod.Hodder at pmg.net.au>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*
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.
participants (3)
-
annaj@hi.is
-
Jarrod.Hodder@pmg.net.au
-
josh@imaginenetworksllc.com