[Q] Service config, go critical:HARD; Alert every 5 minutes until non-critical
Roderick A. Anderson
raanders at cyber-office.net
Mon Jun 14 19:01:22 CEST 2010
Martin Merlin wrote:
> On Mon, Jun 14, 2010 at 17:03, Roderick A. Anderson
> <raanders at cyber-office.net> wrote:
>> My Nagios foo must leave a lot to be desired. 8-(
>>
>> I have not been able to figure out the correct combination of service
>> definition settings to get a check to go CRITICAL:HARD on the first try
>> (no SOFT alerts), and keep sending alerts (every five minutes) until the
>> check/alert clears.
>>
>> Either the complete answer or a clue-stick whack (the settings I should
>> be looking at) would be greatly appreciated.
>
> From http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service
Thanks Martin.
No sure if I'd made it to this page. "The Book" is a little brief in
it's description.
> max_check_attempts:This directive is used to define the number of
> times that Nagios will retry the service check command if it returns
> any state other than an OK state. Setting this value to 1 will cause
> Nagios to generate an alert without retrying the service check again.
OK. This makes sense. (Whack one!)
> notification_interval: This directive is used to define the number of
> "time units" to wait before re-notifying a contact that this service
> is still in a non-OK state. Unless you've changed the interval_length
> directive from the default value of 60, this number will mean minutes.
> If you set this value to 0, Nagios will not re-notify contacts about
> problems for this service - only one problem notification will be sent
> out.
This too makes sense and again "The Book" is a little too brief in it's
description.
> This should be enough to get you up and running :-)
I'll try it today.
> If you still have problems, post your config to the list.
I will if needed but it has nothing out of the ordinary. Uses the
'generic_service' template from a CentOS 5.x install of Nagios 3.0.6
plus check_interval of 5 (minutes). Nothing else special. (3.2.1 from
Rpmforge will be coming in a week or so.)
Again thanks,
Rod
--
>
> Regards
> Martin Melin
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> 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
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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