To disable the "Host UP" notification
John Joseph
jjk_saji at yahoo.com
Tue Sep 27 12:52:04 CEST 2005
Hi Hans
ThanksFor the mail
I did the changes in the contacts.cfg file , my
contacts.cfg file is as below
############################################
# 'aliasJose' contact definition 0
#
#Alias Mail
define contact{
contact_name aliasJose
alias aliasJoseph
host_notification_period 24x7
host_notification_options d,u
host_notification_commands
notify-by-email
service_notification_period 24x7
service_notification_options w,u,c
service_notification_commands
notify-by-email
email
joseph at nagios.test.ae
}
What I had observed is that , I gets this Host UP
notification for the services which are critical or
down , not for all the services , ie it has something
to do with services.cfg file , there also I had
removed the r options
my services.cfg has the following
# 'procs-CPU-10%-20%' service definition 67
#
#
#service_id 414
define service{
service_description
procs-CPU-10%-20%
host_name
Appsprd
check_command
check_procs_CPU
max_check_attempts 20
normal_check_interval 3
retry_check_interval 20
active_checks_enabled 1
check_period 24x7
freshness_threshold 0
low_flap_threshold 0
high_flap_threshold 0
notification_interval 20
notification_period 24x7
notification_options w,u,c
notifications_enabled 1
contact_groups IT-Support
stalking_options
o,w,u,c
}
# 'procs-CPU-10%-20%' service definition 68
#
#
#service_id 415
define service{
service_description
procs-CPU-10%-20%
host_name
AppsPrdDb
check_command
check_procs_CPU
max_check_attempts 20
normal_check_interval 3
retry_check_interval 20
active_checks_enabled 1
check_period 24x7
freshness_threshold 0
low_flap_threshold 0
high_flap_threshold 0
notification_interval 20
notification_period 24x7
notification_options w,u,c
notifications_enabled 1
contact_groups IT-Support
stalking_options
o,w,u,c
}
# 'procs-CPU-10%-20%' service definition 69
#
#
#service_id 416
define service{
service_description
procs-CPU-10%-20%
host_name
AppsTest
check_command
check_procs_CPU
max_check_attempts 20
normal_check_interval 3
retry_check_interval 20
active_checks_enabled 1
check_period 24x7
freshness_threshold 0
low_flap_threshold 0
high_flap_threshold 0
notification_interval 20
notification_period 24x7
notification_options w,u,c
notifications_enabled 1
contact_groups IT-Support
stalking_options
o,w,u,c
}
Thanks
Joseph
--- Hans Engelen <engelenh at gmail.com> wrote:
> On 9/26/05, John Joseph <jjk_saji at yahoo.com> wrote:
>
> > Hi Friends
> > I am getting notification on "Host UP" , I would
> > like to do something to do with this notification
> , I
> > need to stop this notification only
> > Which parameter I have to check
> > Will disabling the stlaking option , will help in
> > this aim
>
> Sounds like you need to tweak your contact settings
> (contacts.cfg or
> whatever file you define your contacts in).
> Specifically these 2 lines :
> service_notification_options w,u,c,r
> host_notification_options d,u,r
> From the manual :
> *host_notification_options*: This directive is
> used to define the host
> states for which notifications can be sent out to
> this contact. Valid
> options are a combination of one or more of the
> following: *d* = notify on
> DOWN host states, *u* = notify on UNREACHABLE host
> states, *r* = notify on
> host recoveries (UP states), and *f* = notify when
> the host starts and stops
> flapping. If you specify *n* (none) as an option,
> the contact will not
> receive any type of host notifications.
> *service_notification_options*: This
> directive is used to define the service states for
> which notifications can
> be sent out to this contact. Valid options are a
> combination of one or more
> of the following: *w* = notify on WARNING service
> states, *u* = notify on
> UNKNOWN service states, *c* = notify on CRITICAL
> service states, *r* =
> notify on service recoveries (OK states), and *f* =
> notify when the servuce
> starts and stops flapping. If you specify *n* (none)
> as an option, the
> contact will not receive any type of service
> notifications.
> Unless I misunderstand your question removing the
> 'r' option in
> host_notification_options should stop you from
> getting host up messages.
> Cheers,
> Hans
>
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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