Page 1 of 1

Add permanent link to notifications

Posted: Fri Nov 02, 2012 8:55 am
by fao
Hi there,

We would like to add this link http://nagios.fao.org/nagiosxi/includes ... $HOSTALIAS$ to the notify-host-by-email and notify-service-by-email commands in order to provide contacts receiving notifications with a instantaneous view on the host status. This works perfectly only if the user has an open session to the Nagios interface. Is there a way to get it working with a direct access bypassing the authentication?

Regards

Re: Add permanent link to notifications

Posted: Fri Nov 02, 2012 10:59 am
by scottwilkerson
You can use this URL, then if they aren't logged in it will prompt then to login

Code: Select all

http://nagios.fao.org/nagiosxi/?&xiwindow=http%3A%2F%2Fnagios.fao.org%2Fnagiosxi%2Fincludes%2Fcomponents%2Fxicore%2Fstatus.php%3Fhost%3Dlocalhost
The only other way would be to have the system log them in as a particular user. You could setup such a user and then get the username and ticket from the backend API component and tack that on to the query string.