RE: [Nagios-devel] new service directive: hard_check_interval
Posted: Fri Jun 13, 2003 2:02 pm
Simple. I want another interval used when the state is hard and the =
service is NOT OK.
I want 3 different check_intervals:
1) When the service is running just fine (normal_check_interval)
2) When the service has failed once (Critical or Warning) and up to =
max_check_attempt times (retry_check_interval)
3) When the service goes to a non-OK hard state (hard_check_interval)
Maybe hard_check_interval isn't the proper wording for what I want. It =
is the first thing I thought of.
I want a non-OK service checked more often than an OK service. I'd like =
to
know more accurately when the service came back up.
-----Original Message-----
From: Russell Scibetti [mailto:[email protected]]
Sent: Fri 6/13/2003 3:59 PM
To: David Quattlebaum
Cc: [email protected]
Subject: Re: [Nagios-devel] new service directive: hard_check_interval
I've gotta ask...why?
The normal_check_interval IS the number of time units to wait between=20
checks when a service is in a hard state. When a service is in a soft=20
state, the retry_interval is used until max_attempts is reached, at=20
which point it goes into a hard state and back to the =
normal_check_interval.
What are you trying to do that normal_check_interval doesn't already=20
give you?
Russell
David Quattlebaum wrote:
>I want to implement a new service definition directive:
>
> hard_check_interval #
>
>If present, this specifies the number of "time units" to wait before =
scheduling the next check for the service when the service is in the =
HARD_STATE. If this directive is not given, normal_check_interval will =
be used for its setting.
>
>When a service is in the HARD state, I want it to be checked more =
often.
>
>Has anyone done this? Recommended this?
>
>I've started making changes to the source code (nagios-1.1) to see if I =
can get this to work. It's to the point where the config directive is =
recognized in the config files. When I choose "View Config" from the =
left pane of the nagios web page and choose the "Services" object type, =
it shows the "hard check time" column filled in correctly.
>
>I just can't figure out where to change the code to make it work. The =
files I've changed so far are:
>
>base/nagios.c - at line 1542, I check for HARD_STATE and used =
hard_interval
> instead of normal_check_interval. I thought this =
would make it
> work, but was wrong.
>
>cgi/config.c - show hard_check_interval on web page
>
>common/objects.c - added hard_interval to add_service(). use =
normal_interval if
> hard_interval
>common/objects.h - added hard_interval to add_service() proto.
>
>xdata/xodtemplate.h - added hard_check_interval (and =
have_hard_check_interval) to
> xodtemplate_service
>
>xdata/xodtemplate.c - process hard_check_interval
>
>Thanks for any help.
>
>--
>David Quattlebaum =
>"Weebles wobble but they don't fall down."
>
>
>-------------------------------------------------------
>This SF.NET email is sponsored by: eBay
>Great deals on office technology -- on eBay now! Click here:
>http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
>_______________________________________________
>Nagios-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/lis ... gios-devel
>
>
--=20
Russell Scibetti
Quadrix Solutions, Inc.
http://www.quadrix.com
(732) 235-2335, ext. 7038
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
service is NOT OK.
I want 3 different check_intervals:
1) When the service is running just fine (normal_check_interval)
2) When the service has failed once (Critical or Warning) and up to =
max_check_attempt times (retry_check_interval)
3) When the service goes to a non-OK hard state (hard_check_interval)
Maybe hard_check_interval isn't the proper wording for what I want. It =
is the first thing I thought of.
I want a non-OK service checked more often than an OK service. I'd like =
to
know more accurately when the service came back up.
-----Original Message-----
From: Russell Scibetti [mailto:[email protected]]
Sent: Fri 6/13/2003 3:59 PM
To: David Quattlebaum
Cc: [email protected]
Subject: Re: [Nagios-devel] new service directive: hard_check_interval
I've gotta ask...why?
The normal_check_interval IS the number of time units to wait between=20
checks when a service is in a hard state. When a service is in a soft=20
state, the retry_interval is used until max_attempts is reached, at=20
which point it goes into a hard state and back to the =
normal_check_interval.
What are you trying to do that normal_check_interval doesn't already=20
give you?
Russell
David Quattlebaum wrote:
>I want to implement a new service definition directive:
>
> hard_check_interval #
>
>If present, this specifies the number of "time units" to wait before =
scheduling the next check for the service when the service is in the =
HARD_STATE. If this directive is not given, normal_check_interval will =
be used for its setting.
>
>When a service is in the HARD state, I want it to be checked more =
often.
>
>Has anyone done this? Recommended this?
>
>I've started making changes to the source code (nagios-1.1) to see if I =
can get this to work. It's to the point where the config directive is =
recognized in the config files. When I choose "View Config" from the =
left pane of the nagios web page and choose the "Services" object type, =
it shows the "hard check time" column filled in correctly.
>
>I just can't figure out where to change the code to make it work. The =
files I've changed so far are:
>
>base/nagios.c - at line 1542, I check for HARD_STATE and used =
hard_interval
> instead of normal_check_interval. I thought this =
would make it
> work, but was wrong.
>
>cgi/config.c - show hard_check_interval on web page
>
>common/objects.c - added hard_interval to add_service(). use =
normal_interval if
> hard_interval
>common/objects.h - added hard_interval to add_service() proto.
>
>xdata/xodtemplate.h - added hard_check_interval (and =
have_hard_check_interval) to
> xodtemplate_service
>
>xdata/xodtemplate.c - process hard_check_interval
>
>Thanks for any help.
>
>--
>David Quattlebaum =
>"Weebles wobble but they don't fall down."
>
>
>-------------------------------------------------------
>This SF.NET email is sponsored by: eBay
>Great deals on office technology -- on eBay now! Click here:
>http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
>_______________________________________________
>Nagios-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/lis ... gios-devel
>
>
--=20
Russell Scibetti
Quadrix Solutions, Inc.
http://www.quadrix.com
(732) 235-2335, ext. 7038
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]