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
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
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
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 2It 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
HOST=$WINBLOWS MAIL bill.gates at microsoft.com 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 <d.kip at gdi.minjus.nl>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 2It 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
participants (4)
-
d.kip@gdi.minjus.nl
-
ge.janssen@gmail.com
-
stef.coene@docum.org
-
steinarms@gmail.com