questions about hobbit-alerts.cfg and hobbit-clients.cfg
list Gé Janssen
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
list Stef Coene
On Monday 09 March 2009, Gé Janssen wrote:
Can someone help me with the right syntax?
Put the REPEAT at the action line. So
HOST=venus SERVICE=* TIME=*:0800:2200 COLOR=red
SCRIPT /usr/local/bin/sendsmshobbit.sh 31652345678 FORMAT=sms
REPEAT=60
And my second question:
Sorry, no idee, never used the IGNORE option. Stef
list D. - Gdi/snb Kip
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 user-a32a29de9be6@xymon.invalid SERVICE=conn,disk COLOR=red TIME=*:0000:2400 EXPAGE=$EXPAGEUNIX REPEAT=1d EXHOST=$EXHOSTSUNIX DURATION>6
HOST=gbodb006
MAIL user-a32a29de9be6@xymon.invalid SERVICE=omni COLOR=yellow,red FORMAT=TEXT TIME=W:1200:1800 REPEAT=1h
▸
-----Oorspronkelijk bericht-----
Van: Gé Janssen [mailto:user-876f637131f0@xymon.invalid]
Verzonden: maandag 9 maart 2009 22:49
Aan: user-ae9b8668bcde@xymon.invalid
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
list Gé Janssen
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 user-a32a29de9be6@xymon.invalid SERVICE=conn,disk COLOR=red TIME=*:0000:2400 EXPAGE=$EXPAGEUNIX REPEAT=1d EXHOST=$EXHOSTSUNIX DURATION>6
HOST=gbodb006
MAIL user-a32a29de9be6@xymon.invalid SERVICE=omni COLOR=yellow,red FORMAT=TEXT TIME=W:1200:1800 REPEAT=1h
-----Oorspronkelijk bericht-----
Van: Gé Janssen [mailto:user-876f637131f0@xymon.invalid]
Verzonden: maandag 9 maart 2009 22:49
Aan: user-ae9b8668bcde@xymon.invalid
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
list Steinar M. Skúlason
HOST=$WINBLOWS
MAIL user-eb75f0bb94a3@xymon.invalid RECOVERED DURATION>5 REPEAT=60
SERVICE=BSOD
SCRIPT /usr/lib/hobbit/server/ext/send-sms.sh <my-phone-number>
FORMAT=PLAIN DURATION>30 RECOVERED REPEAT=60 COLOR=red SERVICE=BSOD
REPEAT is valid for both SCRIPT and MAIL - but not for host.
-Steinar
▸
On Tue, Mar 10, 2009 at 6:36 AM, Kip, D. - GDI/SNB <user-a81387f605a8@xymon.invalid>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 user-a32a29de9be6@xymon.invalid SERVICE=conn,disk COLOR=red
TIME=*:0000:2400 EXPAGE=$EXPAGEUNIX REPEAT=1d EXHOST=$EXHOSTSUNIX
DURATION>6
HOST=gbodb006
MAIL user-a32a29de9be6@xymon.invalid SERVICE=omni COLOR=yellow,red FORMAT=TEXT
TIME=W:1200:1800 REPEAT=1h
-----Oorspronkelijk bericht-----
Van: Gé Janssen [mailto:user-876f637131f0@xymon.invalid]
Verzonden: maandag 9 maart 2009 22:49
Aan: user-ae9b8668bcde@xymon.invalid
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