Page 1 of 1

status.php redirect to login page

Posted: Fri Oct 23, 2015 8:36 am
by Pres-Gas
We have a separate web page that we would like to allow a direct view of that host's service statuses in nagios. We are using the following url as an href:

Code: Select all

https://nagiosserver.fqdn/nagiosxi/includes/components/xicore/status.php?host=host.fqdn
However if we are not already logged in; instead of being redirected to a login page we get a "Your session has timed out." page and no redirect.

Is there another url we should use?

Re: status.php redirect to login page

Posted: Fri Oct 23, 2015 9:27 am
by tmcdonald
Without being logged in, there's not much we can do to directly display that page's contents without breaking security.

The proper way to go about this is to use the API in XI 5, which will allow you to programmatically pull information about hosts and services in an authenticated and authorized way. Not sure what version you are on, but if you are not on 5 would an upgrade be possible?

Re: status.php redirect to login page

Posted: Tue Nov 03, 2015 2:50 pm
by Pres-Gas
tmcdonald wrote:Without being logged in, there's not much we can do to directly display that page's contents without breaking security.

The proper way to go about this is to use the API in XI 5, which will allow you to programmatically pull information about hosts and services in an authenticated and authorized way. Not sure what version you are on, but if you are not on 5 would an upgrade be possible?
Can you point me to the API docs? We are running the latest XI5.

Re: status.php redirect to login page

Posted: Tue Nov 03, 2015 3:16 pm
by hsmith
The documentation is located in the XI web GUI under the "Help" menu.