[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] SMS alert on reboot
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] SMS alert on reboot
- From: Anna Jonna Armannsdottir <annaj (at) hi.is>
- Date: Wed, 18 Mar 2009 09:13:08 +0000
- Organization: University of Iceland Computing Services
- References: <339D555B07BAFC4A9A6C99FAFBD5BF0631132C (at) para-serve.para.local>
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.