Issue with host & service problemid in Actions Component

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ghugon
Posts: 23
Joined: Tue May 07, 2019 7:55 am

Issue with host & service problemid in Actions Component

Post by ghugon »

Hi,

I am passing the following macros to an action script, all of them are correctly replaced with the expected values except %hostproblemid% and %serviceproblemid%.

For a host : '%hostid%' '%hostname%' '%hoststateid%' '%hoststatustext%' '%hostproblemid%'
For a service : '%hostid%' '%hostname%' '%servicename%' '%servicestateid%' '%servicestatustext%' '%serviceproblemid%'

Do you have an idea why that might be?

Thanks in advance for your help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issue with host & service problemid in Actions Component

Post by scottwilkerson »

The actions component doesn't have those macros available, see a comprehensive list here starting on page 12
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

If you would like I can put in a feature request to see if it's possible to add that to the component in a future release
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ghugon
Posts: 23
Joined: Tue May 07, 2019 7:55 am

Re: Issue with host & service problemid in Actions Component

Post by ghugon »

Oh OK, thanks, I totally missed that.
That would be great if you could open a feature request regarding the addition of those macors to the actions component, I'm pretty sure it can be useful to other people than me.

We have an action script that generates tickets in our ticket manager using the actions component whenever a technician decides to.
I wanted to add these macros to tickets and email alerts sent by Nagios in order to better track alerts.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issue with host & service problemid in Actions Component

Post by scottwilkerson »

ghugon wrote:I'm pretty sure it can be useful to other people than me.
I agree, feature requested.

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked