I am defining a service to check which will call a .sh file I wrote to schedule downtime..
I want to add the contact on the service so it will not send any alerts on this check.
So I created a noalerts contact
Code: Select all
define contact{
contact_name noalerts
alias Send No Alerts
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c,r
host_notification_options d,r
}
/usr/local/nagios/bin/nagios -vv /usr/local/nagios/etc/nagios.cfg
Error: Contact 'noalerts' has no service notification commands defined!
Error: Contact 'noalerts' has no host notification commands defined!
I have other contacts with those two commands like below
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
I do not want to send notification at all for the service
Any ideas?
Thank you
Tom