Page 1 of 1

Alerting execute a script

Posted: Thu Feb 27, 2020 10:51 am
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

Re: Alerting execute a script

Posted: Fri Feb 28, 2020 3:46 pm
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.

Re: Alerting execute a script

Posted: Mon Mar 02, 2020 3:07 am
by Sven.Z
Thanks :)
Best regards
Sven.Z

Re: Alerting execute a script

Posted: Mon Mar 02, 2020 8:23 am
by scottwilkerson
Sven.Z wrote:Thanks :)
Best regards
Sven.Z
No problem