Page 1 of 1

Latest Alerts component question

Posted: Thu Feb 07, 2019 5:57 pm
by Bitflogger
Hello, I am running v5.5.8, 64 bit, VM, CentOS 7.

I have been asked if the Latest Alerts component could be modified to show only critical states.

Is that a change that might be made by the developer?

Is it possible for me to get access to the code for that component?

Earl

Re: Latest Alerts component question

Posted: Fri Feb 08, 2019 8:51 am
by scottwilkerson
The code is here
/usr/local/nagiosxi/html/includes/components/latestalerts/

To change to only critical for the services you would edit line 221 of /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php from this

Code: Select all

$backendargs["current_state"] = "in:1,2,3";
to this

Code: Select all

$backendargs["current_state"] = "in:2";

Re: Latest Alerts component question

Posted: Fri Feb 08, 2019 10:11 am
by Bitflogger
Wow! Thanks!

Please lock the case.

Earl

Re: Latest Alerts component question

Posted: Fri Feb 08, 2019 10:20 am
by scottwilkerson
Bitflogger wrote:Wow! Thanks!

Please lock the case.

Earl
Locking thread