Now that I feel comfortable working with templates and everything, I am trying to add new users to the server. But because the xi_contact_generic contact template was deleted I ended up having issues with the XI notification user options.
I got it to work by adding xi_host_notification_handler and xi_service_notification_handler directly onto XI created contacts, but this is getting tiresome to manage as more and more users are added.
Attempting to recreate the xi_contact_generic contact template is however causing me some issues.
I check if it is working using http://SERVER-IP/nagiosxi/account/notifymethods.php, since it gives an error if it is not working.
Found some code around on the forum in an attempt to recreate it, so currently I have:
Code: Select all
define contact {
name xi_contact_generic
contactgroups +xi_contactgroup_all
host_notification_period xi_timeperiod_24x7
service_notification_period xi_timeperiod_24x7
host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handler
retain_status_information 1
retain_nonstatus_information 1
register 0
}My contact:
Code: Select all
define contact {
contact_name dean
alias Dean
host_notification_period dean_notification_times
service_notification_period dean_notification_times
host_notification_options d,u,r,f,s,
service_notification_options w,u,c,r,f,s,
email [email protected]
use xi_contact_generic,another_template,yetanother_template
}