Alerting execute a script

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Sven.Z
Posts: 20
Joined: Thu Aug 04, 2016 2:30 am

Alerting execute a script

Post by Sven.Z »

Hello,
i have a question about the feature alerting and execute a script.

I need a context variable that contains the last log message.
You already have this in the email template.
Unfortunately not in the execute a script feature.
is there a way to implement this context variable
% Lastalertlog%

best regards
Sven
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Alerting execute a script

Post by cdienger »

As of the moment scripts can only be configured to use the following:

%count% - The total # of events
%status% - The status (ok, warning, critical)
%output% - The output from the alert
%lastrun% - The timestamp of the last run

I will add your information to a feature request to make %Lastalertlog% available for scripts.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Sven.Z
Posts: 20
Joined: Thu Aug 04, 2016 2:30 am

Re: Alerting execute a script

Post by Sven.Z »

Thanks :)
Best regards
Sven.Z
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Alerting execute a script

Post by scottwilkerson »

Sven.Z wrote:Thanks :)
Best regards
Sven.Z
No problem
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked