Implementing Notification Variables
Posted: Sun Dec 22, 2013 7:23 pm
I am have created 6 custom notification macros for hosts and services.
I have added the information to one host as proof of concept and modified the xi_host_notification_handler and xi_service_notification_handler with this information.
I have also modified the Notification Management to force this on all users to meet company standards.
Everything works....except now I have to do this 3500 times. The information for each host is different.
My question is, is there a script that I can use to add this to config files or import it somehow...3500 times is going to be rough...
Code: Select all
_Department IT-Staff-Infrastructure
_Owner IT-Staff-Infrastructure
_ServiceRoles Symantec Backup
_ContactName IT-Staff-SysAdmin
_Location Tech Building
_City HoustonCode: Select all
--department="$_HOSTDEPARTMENT$" --owner="$_HOSTOWNER$" --serviceroles="$_HOSTSERVICEROLES$" --contactname="$_HOSTCONTACTNAME$" --location="$_HOSTLOCATION$" --city="$_HOSTCITY$"
Code: Select all
Department: %department%
Owner: %owner%
ServiceRoles: %serviceroles%
ContactName: %contactname%
Location: %location%
City: %city%My question is, is there a script that I can use to add this to config files or import it somehow...3500 times is going to be rough...