Page 1 of 1
Results per page
Posted: Fri Mar 31, 2017 8:21 am
by ahoward12
Hey, I am looking to set my default "Results per page" in CCM to none. Is there an actual way to do this, not a workaround in the URL? It becomes very trivial and annoying clicking it every single time.
I have looked at these posts already:
I added the
with no luck.
https://support.nagios.com/forum/viewto ... 67&p=31580
https://support.nagios.com/forum/viewto ... age#p18339
As always thank you for all of the quick answers I recieve!
Re: Results per page
Posted: Fri Mar 31, 2017 9:21 am
by avandemore
You can change the default in /usr/local/nagiosxi/html/includes/components/ccm/config.inc.php by changing the value of $CFG['default_pagelimit'] =. It will work best if you set a value equal to one of the presets.
Re: Results per page
Posted: Fri Mar 31, 2017 9:35 am
by ahoward12
I made the change, I closed and reopened my browser etc and no success yet. Here is my config.inc.php below
Code: Select all
<?php
//
// Nagios Core Config Manager
// Copyright (c) 2010-2016 Nagios Enterprises, LLC
//
// File: config.inc.php
// Desc: Defines the Nagios CCM configuration array. For Nagios XI it pulls in an pre-made
// configuration file or for the CCM standalone version it generates a small amount of
// config values that it requires.
//
// Global configuration options for Nagios CCM
$CFG = array();
// Use Nagios XI's generated configs or create configs for CCM standalone (Nagios Core)
if (ENVIRONMENT == 'nagiosxi') {
require_once('/usr/local/nagiosxi/etc/components/ccm_config.inc.php');
} else {
// Nagios Core file locations
$CFG['plugins_directory'] = '/usr/local/nagios/libexec';
$CFG['command_file'] = '/usr/local/nagios/var/rw/nagios.cmd';
$CFG['lock_file'] = '/usr/local/nagios/var/nagios.lock';
// MySQL database connection info
$CFG['db'] = array(
'server' => 'localhost',
'port' => '3306',
'database' => 'nagiosql',
'username' => 'nagiosql',
'password' => 'n@gweb'
);
}
// Misc. global settings used somewhere in the CCM
$CFG['common']['install'] = 'passed';
$CFG['domain'] = 'localhost';
$CFG['default_pagelimit'] = 1000;
$CFG['lock_file'] = '/usr/local/nagios/var/nagios.lock';
if (file_exists('/usr/share/pear/HTML/Template/IT.php')) {
$CFG['pear_include'] = '/usr/share/pear/HTML/Template/IT.php';
} else {
$CFG['pear_include'] = '/usr/share/php/HTML/Template/IT.php';
}
$CFG['audit_send'] = '/usr/local/nagiosxi/scripts/send_to_auditlog.php';
~
~
~
~
~
~
Re: Results per page
Posted: Fri Mar 31, 2017 9:37 am
by avandemore
What version are you running? What browser? It worked fine on FF without a close, a simple reload did it.
Re: Results per page
Posted: Fri Mar 31, 2017 10:04 am
by ahoward12
I use Chrome preferably but I tried in FF and it still didn't work. I am on Nagios XI 5.4.3, with the recent update is where I noticed this. While I was on 5.4.2 I had no issues with this.
Re: Results per page
Posted: Fri Mar 31, 2017 11:14 am
by lmiltchev
I don't believe there is a way to set the default results per page to "None". You can set it to any of the "pre-set" values, 15, 30, 50, etc. The highest one is 1000, which should be a high enough value. You can set it up by going to the CCM->CCM Admin->Settings->Default Result Limit, type in "1000", and click on "Save Settings".
example01.PNG
Re: Results per page
Posted: Fri Mar 31, 2017 12:14 pm
by ahoward12
Perfect! That was it, I couldn't seem to find that anywhere. I honestly didn't expect to be in the web interface. Thank you!
Re: Results per page
Posted: Fri Mar 31, 2017 12:38 pm
by cdienger
Glad we were able to help! Are we okay to assume the thread can be closed?
Re: Results per page
Posted: Mon Apr 03, 2017 10:31 am
by ahoward12
Yes please close it as resolved. Thank you again!