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
nagios allow http communications
Re: nagios allow http communications
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
Debian / Ubuntu
Then delete the following lines.
...and restart Apache to apply the configuration.
CentOS / Red Hat
Debian / Ubuntu
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
Debian / Ubuntu
Edit the configuration file.
CentOS / Red Hat
Code: Select all
vi /etc/httpd/conf.d/nagiosxi.confCode: Select all
vi /etc/apache2/conf-enabled/nagiosxi.confCode: Select all
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}CentOS / Red Hat
Code: Select all
systemctl restart httpd.serviceCode: Select all
systemctl restart apache2.serviceIf 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.dCode: Select all
zip -r /tmp/HTTPDFILES.zip /etc/apache2/apache2.conf /etc/apache2/conf-enabled /etc/apache2/sites-enabledAs 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!
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
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>
<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>
Re: nagios allow http communications
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
Debian / Ubuntu
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
Debian / Ubuntu
You will also probably need to change the setting to "use https" in the PHP config and update the program URL.
Find the following line:
Change it to:
Red Hat / CentOS
Code: Select all
httpd -SCode: Select all
apachectl -SRed Hat / CentOS
Code: Select all
zip -r /tmp/HTTPDFILES.zip /etc/httpd/conf/httpd.conf /etc/httpd/conf.dCode: Select all
zip -r /tmp/HTTPDFILES.zip /etc/apache2/apache2.conf /etc/apache2/conf-enabled /etc/apache2/sites-enabledCode: Select all
vi /usr/local/nagiosxi/html/config.inc.phpCode: Select all
$cfg['use_https']=true;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!
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
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
Great!veeravamsi wrote:Thanks . You can close this threadd.
Closing thread