he api call
curl -XGET "https://nagios/nagiosxi/api/v1/objects/ ... h&pretty=1"
Responds with :
This page isn’t working
nagios is currently unable to handle this request.
HTTP ERROR 500
all other api calls work, unfortunately this is the only one we require
Nagios api servicestatus not working
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Nagios api servicestatus not working
Hello, @sanjayhiranisq.
Can you paste this link in your web browser(please replace YOUR_NAGIOS_IP and YOUR_NAGIOS_API with the correct data):
Does it work or do you see the same HTTP ERROR 500 error?
After that please run:
If above doesn't solve it please upload Nagios XI System Profile so I can review it.
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it here. Or you can send it to me in a PM. If you choose to send it in pm please let us know here as soon as you send it.
Can you paste this link in your web browser(please replace YOUR_NAGIOS_IP and YOUR_NAGIOS_API with the correct data):
Code: Select all
http://YOUR_NAGIOS_IP/nagiosxi/api/v1/objects/servicestatus?apikey=YOUR_NAGIOS_API&pretty=1After that please run:
Code: Select all
service nagios restart
service mysqld restart
service httpd restartTo send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it here. Or you can send it to me in a PM. If you choose to send it in pm please let us know here as soon as you send it.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
sanjayhiranisq
- Posts: 32
- Joined: Tue Sep 13, 2016 3:04 am
Re: Nagios api servicestatus not working
This did not resolve the issue. I tried to upload the profile to a PM and I got this : The file is too big, maximum allowed size is 1 MiB.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Nagios api servicestatus not working
@sanjayhiranisq, Is there a possibility to upload the file to the google drive or any other cloud storage and share a link in pm?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.