status.php redirect to login page

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Pres-Gas
Posts: 52
Joined: Thu Mar 22, 2012 12:09 pm

status.php redirect to login page

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: status.php redirect to login page

Post 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?
Former Nagios employee
Pres-Gas
Posts: 52
Joined: Thu Mar 22, 2012 12:09 pm

Re: status.php redirect to login page

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: status.php redirect to login page

Post by hsmith »

The documentation is located in the XI web GUI under the "Help" menu.
Former Nagios Employee.
me.
Locked