[hobbit] Alert via my own test script failed

Stef Coene stef.coene at docum.org
Sat May 26 16:39:58 CEST 2007


On Saturday 26 May 2007, casedj wrote:
> Following scripts were added  in hobbit-alerts.cfg:
>    HOST=linux_1   SERVICE=disk
>     SCRIPT          echo "my_linux disk went to warning state" |smbclient
> -M cici SCRIPT          echo "disk reached warning state" |write hobbit
>
> The color of disk changed while state reached warning level, but scripts
> had no effect.
>
> Or is syntax of the script wrong? how to write my own alert script?
It's better to put the commands in a script alert.sh and call that script:
SCRIPT alert.sh

With the content of alert.sh:

#!/bin/sh
echo "my_linux disk went to warning state" |smbclient M cici
echo "disk reached warning state" |write hobbit

Stef



More information about the Xymon mailing list