[hobbit] questions about hobbit-alerts.cfg
Gé Janssen
ge.janssen at gmail.com
Wed Mar 11 18:33:29 CET 2009
Thanks for the reply, that indeed was the solution:
First line: Host Service
second line: SCRIPT ...... number ..... REPEAT
HOST=home SERVICE=disk
SCRIPT /usr/local/bin/sendsmshobbit.sh 31651234567 REPEAT=60m
TIME=*:0800:2200 COLOR=red FORMAT=sms
Regards,
Ge
Kip, D. - GDI/SNB wrote:
> The 'REPEAT=' needs to be in the 'SCRIPT' line, not the 'HOST' line.
>
> Here's a part of my hobbit-alerts that works fine (though in this case they happen to be 'MAIL'...):
>
> -----------------
>
> HOST=*
> MAIL removed at for.privacy SERVICE=conn,disk COLOR=red TIME=*:0000:2400 EXPAGE=$EXPAGEUNIX REPEAT=1d EXHOST=$EXHOSTSUNIX DURATION>6
>
> HOST=gbodb006
> MAIL removed at for.privacy SERVICE=omni COLOR=yellow,red FORMAT=TEXT TIME=W:1200:1800 REPEAT=1h
>
> -----------------
>
>
> -----Oorspronkelijk bericht-----
> Van: Gé Janssen [mailto:ge.janssen at gmail.com]
> Verzonden: maandag 9 maart 2009 22:49
> Aan: hobbit at hswn.dk
> Onderwerp: [hobbit] questions about hobbit-alerts.cfg and hobbit-clients.cfg
>
> Hello,
>
> Today, after a friend had problems with is apache, I was sending a sms every 5 minutes.
>
> Unfortunately this is my private phone so 1 sms per hour seems acceptable.
>
> My rule states: (as found in the example on the manpage)
>
> HOST=venus SERVICE=* REPEAT=1h TIME=*:0800:2200 COLOR=red
> SCRIPT /usr/local/bin/sendsmshobbit.sh 31652345678 FORMAT=sms
>
> HOST=www.linix.be SERVICE=* REPEAT=1h TIME=*:0800:2200 COLOR=red
> SCRIPT /usr/local/bin/sendsmshobbit.sh 324567890123 FORMAT=sms
>
> HOST=home.nouwen.name SERVICE=* REPEAT=1h TIME=*:1000:2200 COLOR=red
> SCRIPT /usr/local/bin/sendsmshobbit.sh 31652345678 FORMAT=sms
>
> HOST=www.jos.nouwen.name SERVICE=* REPEAT=1h TIME=*:1000:2200 COLOR=red
> SCRIPT /usr/local/bin/sendsmshobbit.sh 31652345678 FORMAT=sms
>
> my logfile states:
> 2009-03-09 18:46:07 Ignored unknown/unexpected token 'REPEAT=1h' at line 120
> 2009-03-09 18:46:07 Ignored unknown/unexpected token 'REPEAT=1h' at line 123
> 2009-03-09 18:46:07 Ignored unknown/unexpected token 'REPEAT=1h' at line 126
> 2009-03-09 18:46:07 Ignored unknown/unexpected token 'REPEAT=1h' at line 129
>
>
> Clearly my solution was the "repeat" field. According to the internal documentation, this should be in mintes:
>
> # REPEAT - How often an alert gets repeated, in minutes.
> The html manpage:
> REPEAT How often an alert gets repeated. As with the DURATION
> setting, this is in minutes unless explicitly modified with 'm', 'h', 'd'.
>
> Ok, if this is what we need. In minutes:
>
> HOST=venus SERVICE=* REPEAT=60 TIME=*:0800:2200 COLOR=red
> SCRIPT /usr/local/bin/sendsmshobbit.sh 31652345678 FORMAT=sms
>
>
> My logfile states
>
> /usr/local/bin/sendsms $RCPT "$BBALPHAMSG"
> + /usr/local/bin/sendsms 31652345678 'home.nouwen.name:conn red [587147'
> 2009-03-09 21:49:17 Ignored unknown/unexpected token 'REPEAT=60' at line 120
> 2009-03-09 21:49:17 Ignored unknown/unexpected token 'REPEAT=60' at line 123
> 2009-03-09 21:49:17 Ignored unknown/unexpected token 'REPEAT=60' at line 126
> 2009-03-09 21:49:17 Ignored unknown/unexpected token 'REPEAT=60' at line 129
>
>
> Can someone help me with the right syntax?
>
>
>
> And my second question:
>
> In the hobbit-clients.cfg is the folowing server:
>
> HOST=venus
> # DISK /media/news 50 51
> DISK /media/news IGNORE
> PROC ssh
> PROC /usr/local/bin/smsd 2 2
> PROC cron
> PROC readserial 0 2
>
> It must be clearly that the /media/news filesystem is of no importance.
> Monitoring is nice for the graph, but I do not want a red disk if the filesystem is full.
> I tried IGNORE, 100 100 but nothing works.
> Since this is one of the servers that is sending sms i want to tune this parameter.
>
> Does someone else has an idea?
>
> Regards,
>
> Gé Janssen
>
> p.s. I upgraded last weekend to Xymon 4.23 from 4.20
>
> To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
>
>
>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
>
More information about the Xymon
mailing list