API Issue
Posted: Mon Jun 04, 2018 4:22 pm
Hey all,
I am having some issues with API's in our nagiosxi instance. I have added
To the ssl.conf file above the </VirtualHost>
Which fixed the first error I was getting (page not found) now I am getting a "NoEndpoint:" if I tail the httpd error log I get "Php Notice: Undefined inex: request in /usr/local/nagiosxi/html/api/v1/index.php on line 37"
Any ideas on where to look next?
I have tried a few of the example links from the "Help with Nagios XI" page. I have checked my user is a full admin and has api access enabled.
I am having some issues with API's in our nagiosxi instance. I have added
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>Which fixed the first error I was getting (page not found) now I am getting a "NoEndpoint:" if I tail the httpd error log I get "Php Notice: Undefined inex: request in /usr/local/nagiosxi/html/api/v1/index.php on line 37"
Any ideas on where to look next?
I have tried a few of the example links from the "Help with Nagios XI" page. I have checked my user is a full admin and has api access enabled.