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?!
PNP4Nagios
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PNP4Nagios
This is customized in Nagios XI, I believe you may be able to use something like this: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?!
Code: Select all
http://www.domain.com/nagiosxi/includes/components/perfdata/graphApi.php?host=google&srv=_HOST_&view=0&source=0&start=1341373079&end=1341387479Re: PNP4Nagios
Yes, but if i use these links, i become a "session timeout"scottwilkerson wrote:This is customized in Nagios XI, I believe you may be able to use something like this: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?!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
Any Ideas ?!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PNP4Nagios
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
Sou you get something like this
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=0rj35qjkCode: 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