Latest Alerts component question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Latest Alerts component question

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Latest Alerts component question

Post 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";
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Re: Latest Alerts component question

Post by Bitflogger »

Wow! Thanks!

Please lock the case.

Earl
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Latest Alerts component question

Post by scottwilkerson »

Bitflogger wrote:Wow! Thanks!

Please lock the case.

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