>
> >> echo "[`date +%s`]
> >> CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3"
>
> Printf is POSIX standard, but both my command and the printf produce
> the same output. Try both and see. If you don't understand why they
> produce the same output, read the man pages and get a b
> > [mangled broken shell script removed]
>
oops yes part of it got chopped. and yes it wasn't elegant - i threw it
together to get it to run. it does run - it handles the cases
correctly, etc.
> What I saw as a shell script isn't a valid shell script. At
> the very least it looks like a case
I am using the CHANGE_NORMAL_SVC_CHECK_INTERVAL so that if a state of
CRITICAL HARD exists longer than the time period covered by
retry_check_interval and max_check_attempts nagios will still continue
checking the service at an increased interval until it returns to OK.
The essence of my external
According to http://nagios.sourceforge.net/docs/2_0/eventhandlers.html:
"In most cases, event handler commands will be shell or perl scripts. At
a minimum, the scripts should take the following macros as arguments:
Service event handler macros: $SERVICESTATE$, $SERVICESTATETYPE$,
$SERVICEATTEMP
> >I am trying to configure the following behavior from nagios:
> >1. check a service every normal_check_interval
> >2. if service check fails, up the check rate to retry_check_interval
> >3. if 2 successive service checks fail, send notification
> >4. continue to check at retry_check_interval unti
Hello,
I am trying to configure the following behavior from nagios:
1. check a service every normal_check_interval
2. if service check fails, up the check rate to retry_check_interval
3. if 2 successive service checks fail, send notification
4. continue to check at retry_check_interval until
Using nagios 2.0b3 and have the following host and related service
defined:
define host{
usevip.template
host_name ProdSystem
alias Prod
hostgroups Production
check_command check-du
> >
> > retry_check_interval: This directive is used to define the number of
> > "time units" to wait before scheduling a re-check of the service.
> > Services are rescheduled at the retry interval when the have changed
Thanks for clarifing this for me. I think the wording above is a bit
In http://nagios.sourceforge.net/docs/2_0/xodtemplate.html it states:
retry_check_interval: This directive is used to define the number of
"time units" to wait before scheduling a re-check of the service.
Services are rescheduled at the retry interval when the have changed to
a non-OK state. On
>
> On mine I put a # sign in front of the line and it remarks the line out.
I know, its just that doing that 200+ times for all the lines gets
tiresome... There should be one straightforward way to say "I don't
want this host (and all its associated services monitored) without
having to put "#
Please can someone tell me a sane way to easily and conveniently comment
out/disable hosts and all services associated with them? This
commenting out each line in services.cfg and using register = 0 is
starting to drive me crazy...
---
SF.Net
11 matches
Mail list logo