REST API Not Found
Posted: Fri Jan 06, 2017 2:16 pm
Hello,
I've recently enabled my NagiosXI implementation to use SSL via the documentation here: https://assets.nagios.com/downloads/nag ... s%20XI.pdf
When attempting to access the REST API via HTTPS I now get a 404 not found - when I access the REST API via HTTP I get the expected return.
Here's the error's I'm seeing when attempting to access via HTTPS:
When accessing via HTTP I see the following:
Considering in both cases the GET request points to the same URL I'm at a loss to explain why it seems Apache is tripping up with HTTPS.
Thanks for any input!
I've recently enabled my NagiosXI implementation to use SSL via the documentation here: https://assets.nagios.com/downloads/nag ... s%20XI.pdf
When attempting to access the REST API via HTTPS I now get a 404 not found - when I access the REST API via HTTP I get the expected return.
Here's the error's I'm seeing when attempting to access via HTTPS:
Code: Select all
[root@nagiosxidev ~]# tail -25 /var/log/httpd/ssl_error_log
[Fri Jan 06 13:58:29 2017] [error] [client x.x.x.x] File does not exist: /usr/local/nagiosxi/html/api/v1/system
[root@nagiosxidev ~]# tail -25 /var/log/httpd/ssl_access_log
x.x.x.x - - [06/Jan/2017:13:58:29 -0500] "GET /nagiosxi/api/v1/system/status?apikey=noiqt6hr&pretty=1 HTTP/1.1" 404 321
Code: Select all
[root@nagiosxidev ~]# tail -25 /var/log/httpd/access_log
x.x.x.x - - [06/Jan/2017:14:10:13 -0500] "GET /nagiosxi/api/v1/system/status?apikey=noiqt6hr&pretty=1 HTTP/1.1" 200 990 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0"
Code: Select all
/nagiosxi/api/v1/system/status?apikey=noiqt6hr&pretty=1 Thanks for any input!