Hi,
is there any macro, which allows to send multiple servicegroup aliases by mail?
at this moment from the SERVICEGROUPALIAS macro description:
The long name / alias of either 1) the servicegroup name passed as an on-demand macro argument or 2) the primary servicegroup associated with the current service (if not used in the context of an on-demand macro). This value is taken from the alias directive in the servicegroup definition.
We would like nagios to send multiple servicegroup aliases if one service belongs to multiple servicegroups if this service is being affected. At this moment it seems, that we're getting only first servicegroup, when mail is sent.
At this moment the only available macro for this is SERVICEGROUPNAMES which is not exactly we would like to use.
or is there any way to create such an alias?
Nagios® Core™ 3.2.3
Macro SERVICEGROUPALIAS
Macro SERVICEGROUPALIAS
Last edited by romeor on Mon Jul 11, 2016 3:22 pm, edited 2 times in total.
Re: Macro SERVICEGROUPALIAS
For reference, can you show us your host, service, and servicegroup definitions? Also please post any other ones that are related.
Nagios does not send to service groups by default, it sends to contacts or contact groups. That's why I believe looking at your definitions will provide some clarification.
Nagios does not send to service groups by default, it sends to contacts or contact groups. That's why I believe looking at your definitions will provide some clarification.
Former Nagios Employee
Re: Macro SERVICEGROUPALIAS
Well, may be I've described my issue incorrectly. What I'm trying to achieve is to make nagios send by mail multiple service group descriptions (which is internal nagios macro: $SERVICEGROUPALIAS$). At this moment nagios sends only primary service group description if service is defined in multiple service groups. There is a way to send multiple service group names with macro $SERVICEGROUPNAMES$, but it is not I'd like to do.
Re: Macro SERVICEGROUPALIAS
This type of macro is not available in Nagios Core yet. You are welcome to post a feature request for adding this macro to Nagios Core:
https://github.com/NagiosEnterprises/nagioscore/issues?
Thank you!
https://github.com/NagiosEnterprises/nagioscore/issues?
Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Macro SERVICEGROUPALIAS
Thanks for an answer
Re: Macro SERVICEGROUPALIAS
Github is definitely the best place to go for things you would like to see implemented in Nagios Core.
Is it alright if we lock this thread?
Is it alright if we lock this thread?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Macro SERVICEGROUPALIAS
Yes, lock this one.