Page 1 of 1
PNP4Nagios
Posted: Wed Jul 04, 2012 2:39 am
by Koschka
Hello,
i need to know the direct url to pnp4nagios in my xi installation like:
http://www.domain.com/pnp4nagios/image? ... 1341387479
I use a script to call the images directly, but i cant find the right url on my nagios xi vm installation.
Can you help me?!
Re: PNP4Nagios
Posted: Thu Jul 05, 2012 10:08 am
by scottwilkerson
Koschka wrote:Hello,
i need to know the direct url to pnp4nagios in my xi installation like:
http://www.domain.com/pnp4nagios/image? ... 1341387479
I use a script to call the images directly, but i cant find the right url on my nagios xi vm installation.
Can you help me?!
This is customized in Nagios XI, I believe you may be able to use something like this:
Code: Select all
http://www.domain.com/nagiosxi/includes/components/perfdata/graphApi.php?host=google&srv=_HOST_&view=0&source=0&start=1341373079&end=1341387479
Re: PNP4Nagios
Posted: Tue Jul 10, 2012 2:10 am
by Koschka
scottwilkerson wrote:Koschka wrote:Hello,
i need to know the direct url to pnp4nagios in my xi installation like:
http://www.domain.com/pnp4nagios/image? ... 1341387479
I use a script to call the images directly, but i cant find the right url on my nagios xi vm installation.
Can you help me?!
This is customized in Nagios XI, I believe you may be able to use something like this:
Code: Select all
http://www.domain.com/nagiosxi/includes/components/perfdata/graphApi.php?host=google&srv=_HOST_&view=0&source=0&start=1341373079&end=1341387479
Yes, but if i use these links, i become a "session timeout"
Any Ideas ?!
Re: PNP4Nagios
Posted: Tue Jul 10, 2012 8:57 am
by scottwilkerson
You can circumvent the "session timeout" by doing the following.
Create a read-only user.
Install the backend API component
http://exchange.nagios.org/directory/Ad ... nt/details
Then, in the backend API component select the read-only user, grab the username and ticket from one of the URL's and append that to your image URL
Code: Select all
&username=readonlyusername&ticket=0rj35qjk
Sou you get something like this
Code: Select all
http://www.domain.com/nagiosxi/includes/components/perfdata/graphApi.php?host=google&srv=_HOST_&view=0&source=0&start=1341373079&end=1341387479&username=readonlyusername&ticket=0rj35qjk