Page 1 of 1

Issue with host & service problemid in Actions Component

Posted: Fri Feb 28, 2020 5:53 am
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.

Re: Issue with host & service problemid in Actions Component

Posted: Fri Feb 28, 2020 11:01 am
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

Re: Issue with host & service problemid in Actions Component

Posted: Fri Feb 28, 2020 11:56 am
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.

Re: Issue with host & service problemid in Actions Component

Posted: Fri Feb 28, 2020 12:07 pm
by scottwilkerson
ghugon wrote:I'm pretty sure it can be useful to other people than me.
I agree, feature requested.

Locking thread