[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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