Notification Problem
Shaun Martin
smartin at akazaresearch.com
Tue Sep 2 21:51:11 CEST 2008
Hi Marc,
Ok I did the following below and included updated config info. Submitted a
passive check result of ok and the host still turned red to a down status
and I still do not get my services notifying anyone.
- set active_checks_enabled in the host definition to '0'
THIS ONE HERE DID NOT WORK IT YELLED AT ME ABOUT A CONFIGURATION ERROR -
set the host check_period to 'none'
- do not specify the check_command directive _at all_ in the host
definition. You should also set the check_period to none.
UPDATED TEMPLATE
define host{
name linux-server-isovera ; The name
of th
is host template
use generic-host ; This template
inherits
other values from the generic-host template
check_period none ; By default, Linux host
s are checked round the clock
active_checks_enabled 0
check_interval 5 ; Actively check the
hos
t every 5 minutes
retry_interval 1 ; Schedule host
check re
tries at 1 minute intervals
max_check_attempts 10 ; Check each Linux
host
10 times (max)
; check_command check-host-alive ; Default command
to c
heck Linux hosts
notification_period 24x7 ; Linux admins hate to be
wok
en up, so we only notify during the day
; Note that the
notifica
tion_period variable is being overridden from
; the value that is
inher
ited from the generic-host template!
notification_interval 120 ; Resend
notifications e
very 2 hours
notification_options d,u,r ; Only send
notification
s for specific host states
contact_groups isovera ; Notifications get
sen
t to the admins by default
register 0 ; DONT REGISTER THIS
DEF
INITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
Thanks,
Shaun
On 9/2/08 2:24 PM, "Marc Powell" <marc at ena.com> wrote:
> Please always respond on-list so that others, now and in the future,
> learn from your experience. More below --
>
> On Sep 2, 2008, at 1:04 PM, Shaun Martin wrote:
>
>> Hi Marc,
>>
>> Nagios will suppress service
>> notifications if the host check returns a non-OK state.
>>
>> I had no idea the host has to be up for services to notify. That is
>> my issue
>> the host is not pingable from my network. How can I resolve this? As
>> the
>> host entry has to have the right ip for the services to work so I
>> cannot
>> change that to localhost. How do I disable the host check in such a
>> way that
>> the services still work and notify?
>
> You have a few options --
> - Change the host check_command to something that works when the host
> is up and doesn't when it's down. Ping is just the most common case
> but you can use any plugin/test you like.
> - use the 'check_dummy' plugin instead of check_[ping,icmp,fping] to
> always return an OK state for the host check.
> - set active_checks_enabled in the host definition to '0'
> - set the host check_period to 'none'
> - do not specify the check_command directive _at all_ in the host
> definition. You should also set the check_period to none.
>
> --
> Marc
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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
--
Shaun Martin
Systems Administrator
Akaza Research
smartin at akazaresearch.com
Office: (617) 621-8585 x 13
Cell: (978) 360-3402
www.akazaresearch.com <http://www.akazaresearch.com/>
www.openclinica.org <http://www.openclinica.org/>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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