Page 1 of 1
Nagios api servicestatus not working
Posted: Tue Oct 24, 2017 8:03 am
by sanjayhiranisq
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
Re: Nagios api servicestatus not working
Posted: Tue Oct 24, 2017 11:18 am
by npolovenko
Hello,
@sanjayhiranisq.
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=1
Does it work or do you see the same HTTP ERROR 500 error?
After that please run:
Code: Select all
service nagios restart
service mysqld restart
service httpd restart
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.
Re: Nagios api servicestatus not working
Posted: Wed Oct 25, 2017 3:09 am
by sanjayhiranisq
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.
Re: Nagios api servicestatus not working
Posted: Wed Oct 25, 2017 9:06 am
by npolovenko
@sanjayhiranisq, Is there a possibility to upload the file to the google drive or any other cloud storage and share a link in pm?