Results per page

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Results per page

Post 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

Code: Select all

result_limit=0
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!
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Results per page

Post 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.
Previous Nagios employee
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Re: Results per page

Post 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';
~
~
~
~
~
~
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Results per page

Post by avandemore »

What version are you running? What browser? It worked fine on FF without a close, a simple reload did it.
Previous Nagios employee
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Re: Results per page

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Results per page

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Re: Results per page

Post 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!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Results per page

Post by cdienger »

Glad we were able to help! Are we okay to assume the thread can be closed?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Re: Results per page

Post by ahoward12 »

Yes please close it as resolved. Thank you again!
Locked