Hi All,
We are using Nagios XI 2011R1.9.
I have a services for which the notification_interval is 12 hrs (defined in the service template definition), and contacts associated with this service getting notified properly but one more new contacts wants to get notified in every 30 min. for the same service.. Can anyone please share any approach to solve this so that different contact will get notified in a different time interval for the same service.
Thanks in advance!!!!
below are the configurations.
Service Definition :-
define service {
service_description Total Processes
use xxx_linux
hostgroup_name Linux
check_command check_nrpe!check_procs!-a '-w 260 -c 275'!!!!!!
register 1
}
Service Templates :-
define service {
name xxx_linux
service_description Linux
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 720
notification_period 24x7
notification_options w,r,c,f
notifications_enabled 1
contacts grp aod solinux
register 0
}
Contacts definition :-
define contact {
contact_name grp aod solinux
alias grp aod solinux
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,r,f
service_notification_options w,c,r
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
email [email protected]
}
With Regards,
Bijay Ojha
Different notification interval for a service for 2 contacts
Re: Different notification interval for a service for 2 cont
The simplest way I can think of right off the bat is to make a copy of that service and give it a 30-minute notification interval then make that contact the only contact on this new service.
If you want it to stick to a single service, you would probably have to write a custom notification handler (or a wrapper around the default one) that will check the list of people being notified, and delay everyone except that one contact. Then the service would need a 30-minute interval and each interval it would need to check which notification this is and do the math on it to determine if anyone should be alerted...
I would stick to the first option.
If you want it to stick to a single service, you would probably have to write a custom notification handler (or a wrapper around the default one) that will check the list of people being notified, and delay everyone except that one contact. Then the service would need a 30-minute interval and each interval it would need to check which notification this is and do the math on it to determine if anyone should be alerted...
I would stick to the first option.
Former Nagios employee