nagios allow http communications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
veeravamsi
Posts: 145
Joined: Wed Jan 23, 2019 3:35 am

nagios allow http communications

Post by veeravamsi »

Hi Team,

We have issues with Certificates over SSL/https , so wondering if we can enable HTTP also ?

I couldnt find which file i need to edit ( currently only https is allowed and running )

--Vamsi
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: nagios allow http communications

Post by jbrunkow »

I believe you can allow HTTP connections the following way, unless this was set up using another method.

Edit the configuration file.
CentOS / Red Hat

Code: Select all

vi /etc/httpd/conf.d/nagiosxi.conf
Debian / Ubuntu

Code: Select all

vi /etc/apache2/conf-enabled/nagiosxi.conf
Then delete the following lines.

Code: Select all

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
...and restart Apache to apply the configuration.
CentOS / Red Hat

Code: Select all

systemctl restart httpd.service
Debian / Ubuntu

Code: Select all

systemctl restart apache2.service
How To Configure SSL/TLS

If you have any questions, please run this command (as root) and send us the resulting /tmp/HTTPDFILES.zip file:

CentOS / Red Hat

Code: Select all

zip -r /tmp/HTTPDFILES.zip /etc/httpd/conf/httpd.conf /etc/httpd/conf.d
Debian / Ubuntu

Code: Select all

zip -r /tmp/HTTPDFILES.zip /etc/apache2/apache2.conf /etc/apache2/conf-enabled /etc/apache2/sites-enabled
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
veeravamsi
Posts: 145
Joined: Wed Jan 23, 2019 3:35 am

Re: nagios allow http communications

Post by veeravamsi »

Thanks. I dont see the lines you mentioned to delete . Only these are found :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: nagios allow http communications

Post by jbrunkow »

Huh, it must not have been configured that way then. You may be able to run one of the following commands to find out what the HTTP configuration file is for your server.

Red Hat / CentOS

Code: Select all

httpd -S
Debian / Ubuntu

Code: Select all

apachectl -S
Otherwise, please provide ( PM ) us the entire Apache configuration. One of the following commands will compress the relevant folders in a file called HTTPDFILES in your /tmp directory.

Red Hat / CentOS

Code: Select all

zip -r /tmp/HTTPDFILES.zip /etc/httpd/conf/httpd.conf /etc/httpd/conf.d
Debian / Ubuntu

Code: Select all

zip -r /tmp/HTTPDFILES.zip /etc/apache2/apache2.conf /etc/apache2/conf-enabled /etc/apache2/sites-enabled
You will also probably need to change the setting to "use https" in the PHP config and update the program URL.

Code: Select all

vi /usr/local/nagiosxi/html/config.inc.php
Find the following line:

Code: Select all

$cfg['use_https']=true;
Change it to:

Code: Select all

$cfg['use_https']=false;
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
veeravamsi
Posts: 145
Joined: Wed Jan 23, 2019 3:35 am

Re: nagios allow http communications

Post by veeravamsi »

Thanks . You can close this threadd.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagios allow http communications

Post by scottwilkerson »

veeravamsi wrote:Thanks . You can close this threadd.
Great!

Closing thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked