host notification is not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
m.sundaramoorthi
Posts: 2
Joined: Tue Nov 17, 2015 2:19 am

host notification is not working

Post by m.sundaramoorthi »

Hi Team,

I have configured host notification and service notification. but host notification is not working. Below is the host definition.

Could some on please help to resolve this issue?

define host{
name windows-server ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
check_command check-host-alive ; Default command to check if servers are "alive"
check_interval 10 ; Actively check the server every 5 minutes
retry_interval 10 ; Schedule host check retries at 1 minute intervals
max_check_attempts 3 ; Check each server 10 times (max)
check_period 24x7 ; The service can be checked at any time of the day
notification_period 24x7 ; Send notification out at any time - day or night
notification_interval 0 ; Resend notifications every 30 minutes
notification_options d,u,r ; Only send notifications for specific host states
contact_groups *********** ; Notifications get sent to the admins by default
hostgroups windows-servers ; Host groups that Windows servers should be a member of
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
}

Thanks,
Sundar
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: host notification is not working

Post by hsmith »

Why is contact_groups obfuscated here? Do you have an email address there instead of an actual contact group?
Former Nagios Employee.
me.
m.sundaramoorthi
Posts: 2
Joined: Tue Nov 17, 2015 2:19 am

Re: host notification is not working

Post by m.sundaramoorthi »

No, I am using contact group only. The issue has been resolved, Email command definition was having a correction. I rectified this issue. Thanks for your help.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: host notification is not working

Post by rkennedy »

Glad to see this is resolved. I will now close this thread out, feel free to open another one if you ever need assistance in the future.
Former Nagios Employee
Locked