Page 1 of 1
Recently Changed Hosts and Services q
Posted: Tue Jul 31, 2018 1:05 pm
by Bitflogger
Hello,
Under CCM, "Recently Changed Hosts and Services", is there a way to increase the number of items listed?
Thanks!
Re: Recently Changed Hosts and Services q
Posted: Wed Aug 01, 2018 11:25 am
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
line 329
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!
Re: Recently Changed Hosts and Services q
Posted: Tue Aug 07, 2018 3:20 pm
by Bitflogger
This can be locked. Thanks!