Page 1 of 1

Macro's for Server type or XI_Wizard

Posted: Tue Dec 10, 2019 3:13 pm
by manimurugesan
Hi Team,

We are sending alerts to ServiceNow through SNMP Trap Sender. We would like server type information in the alert i.e Windows, Linux or Network Device do that ServiceNow can filter the server type and send the alert to respective teams.

To do this we require Macro to configure in Nagios. But as per Nagios Standard Macro's list there are no Macro for server type information.

Can we customize the macro's and give XI_Wizard information to that macro. "Xi_Wizard" information which we need in alert whenever the trap is sending to ServiceNow.

Please find the screenshot attached for inforamtion

Re: Macro's for Server type or XI_Wizard

Posted: Tue Dec 10, 2019 5:13 pm
by benjaminsmith
Hello @Manimurugesan,

You can add a free variable to your configurations specifying Windows, Linux or Network Device. I would recommend using the Bulk Modifications Tool to add this free variable to your existing configuration objects.

Once this is complete, then follow the guide below ( page 7) to add a custom macro to your notifications.

Understanding Notification Variables

Let me know if you need any additional help setting this up.

Re: Macro's for Server type or XI_Wizard

Posted: Tue Dec 10, 2019 7:05 pm
by manimurugesan
Thank you the quick response Bengamin,

The document says to configure free variable for individual host but in my scenario i want to use the already available information i.e. "_Xi wizard" and create the macro to pull the information. Document says to configure on each host and services as it would be manual task and not practical.

Re: Macro's for Server type or XI_Wizard

Posted: Tue Dec 10, 2019 7:49 pm
by Box293
Use the Bulk Modifications Tool to add this free variable to your existing configuration objects. This is in Core Configuration Manager > Tools > Bulk Modification Tools. Here you can assign the macro to multiple objects at one time.