PNP4Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Koschka
Posts: 8
Joined: Mon Dec 12, 2011 3:30 pm

PNP4Nagios

Post 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?!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PNP4Nagios

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Koschka
Posts: 8
Joined: Mon Dec 12, 2011 3:30 pm

Re: PNP4Nagios

Post 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 ?!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PNP4Nagios

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked