Hello,
Under CCM, "Recently Changed Hosts and Services", is there a way to increase the number of items listed?
Thanks!
Recently Changed Hosts and Services q
Re: Recently Changed Hosts and Services q
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.
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
line 97
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!
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.backupline 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");Code: Select all
$service_change_sql = $ccmDB->query("SELECT * FROM `tbl_service` WHERE `config_id` = 1$extrasql ORDER BY `last_modified` DESC LIMIT 5");Code: Select all
if ($x > 5)Code: Select all
if ($x > 5)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
This can be locked. Thanks!