Recently Changed Hosts and Services q

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

Recently Changed Hosts and Services q

Post by Bitflogger »

Hello,

Under CCM, "Recently Changed Hosts and Services", is there a way to increase the number of items listed?

Thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recently Changed Hosts and Services q

Post by lmiltchev »

Currently, there is no easy way of doing that (in the GUI). You could try the following:

1. Backup your /usr/local/nagiosxi/html/includes/components/ccm/ccm-splash.inc.php file just in case you mess it up.

Code: Select all

cp -p /usr/local/nagiosxi/html/includes/components/ccm/ccm-splash.inc.php /usr/local/nagiosxi/html/includes/components/ccm/ccm-splash.inc.php.backup
2. Open the /usr/local/nagiosxi/html/includes/components/ccm/ccm-splash.inc.php file in a text editor, and modify the following lines:

line 91

Code: Select all

$host_change_sql = $ccmDB->query("SELECT * FROM `tbl_host` WHERE `config_id` = 1$extrasql ORDER BY `last_modified` DESC LIMIT 5");
line 97

Code: Select all

$service_change_sql = $ccmDB->query("SELECT * FROM `tbl_service` WHERE `config_id` = 1$extrasql ORDER BY `last_modified` DESC LIMIT 5");
line 298

Code: Select all

if ($x > 5)
line 329

Code: Select all

if ($x > 5)
by replacing the "default" number 5 with a different number, e.g. 10.

3. Save a exit.

Now, you should be able to see more hosts/services under the "Recently Changed" section.

Note: It's possible that this file will get overwritten on an upgrade, so you may lose your changes if you upgrade. If this happens, you would need to repeat the steps, listed above.

Let us know if this helped. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Re: Recently Changed Hosts and Services q

Post by Bitflogger »

This can be locked. Thanks!
Locked