This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
asardouk
Posts: 31 Joined: Thu Feb 25, 2016 4:49 am
Post
by asardouk » Mon Sep 26, 2016 12:44 pm
Hi,
I installed Nagios XI since few months. it works well. I tried to use the API.
The old one works well, but i got a message for the new one with the URL :
https://xxxxxxx.fr/nagiosxi/api/v1/syst ... xxxxxxxxxx
Code: Select all
Not Found
The requested URL /nagiosxi/api/v1/system/status was not found on this server.
How can i resolve this ?
Thanks,
Centos 7 64 bits
Nagios XI 5.2.5 by manual Install
httpd with SSL
Last edited by
asardouk on Tue Sep 27, 2016 12:57 pm, edited 1 time in total.
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
rkennedy
Posts: 6579 Joined: Mon Oct 05, 2015 11:45 am
Post
by rkennedy » Mon Sep 26, 2016 1:00 pm
Can you please post everything in your /etc/httpd/conf.d/ directory? It might just need a rewrite rule for SSL, but this will help to see for sure what's going on.
Former Nagios Employee
asardouk
Posts: 31 Joined: Thu Feb 25, 2016 4:49 am
Post
by asardouk » Tue Sep 27, 2016 3:28 am
Here is the nagiosxi.conf from /etc/httpd/conf.d/
Code: Select all
#NameVirtualHost *:443
<VirtualHost *:80> # Add this line
<Directory "/usr/local/nagiosxi/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
Require all granted
</Directory> # Add this line
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/nagiosxi/$1 [R,L]
</VirtualHost>
<VirtualHost *:443>
ServerName XXXXX
SSLEngine on
SSLCompression off
SSLProtocol all -SSLv2 -SSLv3
SSLCertificateFile /etc/letsencrypt/live/XXXXX/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/XXXXX/lets-encrypt-x3-cross-signed.pem
SSLCertificateKeyFile /etc/letsencrypt/live/XXXXX/privkey.pem
SSLHonorCipherOrder on
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DE$
<Directory "/usr/local/nagiosxi/html">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Alias /nagiosxi "/usr/local/nagiosxi/html"
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Tue Sep 27, 2016 9:34 am
Do you see the following section of code in the "/etc/httpd/conf.d/ssl.conf" before d before </VirtualHost>?
Code: Select all
<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>
https://assets.nagios.com/downloads/nag ... s%20XI.pdf
Be sure to check out our
Knowledgebase for helpful articles and solutions!
asardouk
Posts: 31 Joined: Thu Feb 25, 2016 4:49 am
Post
by asardouk » Tue Sep 27, 2016 12:56 pm
I found it in another file "ssl.conf" with the AJAXTERM part. So i put them in my nagiosxi.conf and it works !!
Thanks for help
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511