Can not generate PDFs from reports
Re: Can not generate PDFs from reports
We are using a non standard port for Nagios XI web server. We use SSL on the web server.
Re: Can not generate PDFs from reports
1. Edit /usr/local/nagiosxi/html/config.inc.php, and around line 27, replace where it says $cfg['port_number'] = false; with the port number you're using to connect to the Nagios XI web interface.
2. Change $cfg['use_https'] = false; to = true
E.g. If I'm connected on port 8192, I would change it toCaveat: Do not put any commas or decimal points in the port number.
While you're editing that file, you could also tweak a setting that may be causing issues. Around line 53, change "latin1" to 'utf8' under where it says "ndoutils" => array(...:
2. Change $cfg['use_https'] = false; to = true
E.g. If I'm connected on port 8192, I would change it to
Code: Select all
// Force http/https
$cfg['use_https'] = true; // determines whether cron jobs and other scripts will force the use of HTTPS instead of HTTP
// Allow for different http port for subsystem calls
$cfg['port_number'] = 8192;While you're editing that file, you could also tweak a setting that may be causing issues. Around line 53, change "latin1" to 'utf8' under where it says "ndoutils" => array(...:
Code: Select all
"ndoutils" => array(
"dbtype" => 'mysql',
"dbserver" => 'localhost',
"user" => 'ndoutils',
"db" => 'nagios',
"charset" => 'utf8',
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Can not generate PDFs from reports
Good afternoon Dchurch,
We are getting close to the solution. It may have to do with our configuration of the SSL certificate. We are getting the following error now:
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
We are getting close to the solution. It may have to do with our configuration of the SSL certificate. We are getting the following error now:
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Re: Can not generate PDFs from reports
Issue fixed:
Changed the following line:
// Force http/https
$cfg['use_https'] = true; // determines whether cron jobs and other scripts wil$
Original setting:
// Force http/https
$cfg['use_https'] = False; // determines whether cron jobs and other scripts wil$
This thread can be closed.
Thank you for your help,
Joseph
Changed the following line:
// Force http/https
$cfg['use_https'] = true; // determines whether cron jobs and other scripts wil$
Original setting:
// Force http/https
$cfg['use_https'] = False; // determines whether cron jobs and other scripts wil$
This thread can be closed.
Thank you for your help,
Joseph
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Can not generate PDFs from reports
Locking threadmrjsokol wrote:Issue fixed:
Changed the following line:
// Force http/https
$cfg['use_https'] = true; // determines whether cron jobs and other scripts wil$
Original setting:
// Force http/https
$cfg['use_https'] = False; // determines whether cron jobs and other scripts wil$
This thread can be closed.
Thank you for your help,
Joseph