max_check_attempts not working for me
Marc Powell
marc at ena.com
Thu Nov 29 02:52:09 CET 2007
On Nov 28, 2007, at 5:59 PM, Jeremy C. Reed wrote:
> On Wed, 28 Nov 2007, Marc Powell wrote:
>
>>> Here is the template I am using:
>>>
>>> define service{
>>> name service-template ; The
>> 'name' of this
>>
>> <chop>
>>> is_volatile 0
>>> check_period 24x7
>>> max_check_attempts 3
>>> normal_check_interval 5
>>> retry_check_interval 1
>>
>> Assuming this is the template that you have applied to the service in
>> question and you don't override any of the relevant values in your
>> service definition, this should do nearly what you want (it'd be
>> about 3
>> minutes before notification actually). This is a common configuration
>> and I'm not aware of any bugs related to it ever appearing. Are you
>> sure
>> nagios was restarted after applying this configuration? That you only
>> have one daemon process running? Are you sure that nagios is reading
>> this file? Are you sure that this template is applied to your
>> services
>> in question? Are you sure that it's a service notification that
>> you're
>> receiving and not a host notification?
>
> This is the template we have used for a long time (probably with those
> same settings and over a hundred nagios restarts). I also have
> similar for
> my host template (but it is "max_check_attempts 5").
Does that one work as expected or are they all 'broken'? If they're
all broken then I'd hazard that something is still amiss with your
configuration.
> You mention "3 minutes" above, but I don't see any indication that
> it is
> checked multiple times before the notification.
yup. 3 check attempts (max_check_attempts) at 1 minute retry interval.
> What types of logs would I see if it checked but not notifying yet
> because
> still max_check_attempts-1 to do?
It's displayed in the web interface in the 'Attempts' column or
Current Attempt if you're looking at a specific service detail. It'll
be 1/3, 2/3 or 3/3. If you see 1/1 then your template isn't being
applied as you think it is.
--
Marc
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list