what is the notification interval

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
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

what is the notification interval

Post by Pratapa »

Hi,

Following is the service definition.

define service {
service_description Print Spooler Service
use master-service-template
host_name host1,host2
check_command check_nt_service!1248!Spooler
notification_interval 10
contact_groups xyz_admins
}


define service {
name master-service-template
active_checks_enabled 1
passive_checks_enabled 0
parallelize_check 1
obsess_over_service 0
check_freshness 0
notifications_enabled 1
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 0
contact_groups nagios-admin
contacts contact-service-now-ticketer
check_period 24x7
notification_period 24x7
notification_options w,c,r
max_check_attempts 3
check_interval 5
retry_interval 1
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}

What is the Notification interval for the service "Print Spooler Service". Is it 0 or 10?

Regards,
Pratapa
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: what is the notification interval

Post by scottwilkerson »

It is 10 for this service.

The any attribute set in the service will override the attribute in the template.

Here are more details on Object Inheritance
https://assets.nagios.com/downloads/nag ... tance.html
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Re: what is the notification interval

Post by Pratapa »

Thank you very much.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: what is the notification interval

Post by scottwilkerson »

Pratapa wrote:Thank you very much.
No Problem

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked