Hi,
I'm currently trying to add some graphs to mi Nagvis setup (hover template)
But all i could find till now in regards to Nagios and Nagvis is related to Nagios core with pnp4nagios.
i know that the link to the php graphs is something like http://[nagios_server_IP]/nagiosxi/includes/components/perfdata/graphApi.php?host=[host_name]&service=[Service_Name]&source=1&view=1&start=&end=&rand=1365528046
but how could that be added to Nagvis?
hope someone could help since the nagvis forum is onyx referring back to here as soon as they see/hear of nagios xi.
regards
Matthias
Nagios XI and Nagvis Service/Host Graph's
Re: Nagios XI and Nagvis Service/Host Graph's
Well, XI provides two methods for graph display: pnp4nagios and highcharts. Do you know which one you are using? What version of XI are you currently running?
On 2014, I turned off the highcharts api. I then followed the following suggestion from James Barnes:
http://lists.mathias-kettner.de/piperma ... 00070.html
It is old. I changed the url mentioned to:
But did not get a graph. I then hardcoded the hostname (192.168.4.39) and service description (_HOST_) into the url:
This worked for hovers. I am unsure though what is wrong with the [pnp_hostname] and [pnp_service_description] variables/parameters.
On 2014, I turned off the highcharts api. I then followed the following suggestion from James Barnes:
http://lists.mathias-kettner.de/piperma ... 00070.html
It is old. I changed the url mentioned to:
Code: Select all
/nagiosxi/includes/components/perfdata/graphApi.php?host=[pnp_hostname]&service=[pnp_service_description]&source=1&view=1&start=&end=&rand=1410817866Code: Select all
/nagiosxi/includes/components/perfdata/graphApi.php?host=192.168.4.39&service=_HOST_&source=1&view=1&start=&end=&rand=1410818178Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios XI and Nagvis Service/Host Graph's
Yes,
You would likely have to use PNP4Nagios graphs in Nagvis unless you follow what Abrist suggested, an alternative would be using the Highcharts graphs from Host/Service details, or Home > Graph Explorer in a dashboard, if you are only looking for graphs. You could use something like:
http://docs.nagvis.org/1.5/en_US/gadgets.html
Or:
http://blog.stefandanielschwarz.de/2010 ... -with.html
Let us know if you are stuck at a specific point, or if you already tried adding a PNP graph, let us know what the results where.
You would likely have to use PNP4Nagios graphs in Nagvis unless you follow what Abrist suggested, an alternative would be using the Highcharts graphs from Host/Service details, or Home > Graph Explorer in a dashboard, if you are only looking for graphs. You could use something like:
http://docs.nagvis.org/1.5/en_US/gadgets.html
Or:
http://blog.stefandanielschwarz.de/2010 ... -with.html
Let us know if you are stuck at a specific point, or if you already tried adding a PNP graph, let us know what the results where.
Re: Nagios XI and Nagvis Service/Host Graph's
Hi Abrist,
I'm currently on Nagios XI 2014R1.4 without any changes in the default setup of the graph. so i guess I'm using the high charts.
I will check how to with then fully to pnp4nagios.
I'm currently on Nagios XI 2014R1.4 without any changes in the default setup of the graph. so i guess I'm using the high charts.
I will check how to with then fully to pnp4nagios.
abrist wrote:Well, XI provides two methods for graph display: pnp4nagios and highcharts. Do you know which one you are using? What version of XI are you currently running?
On 2014, I turned off the highcharts api. I then followed the following suggestion from James Barnes:
http://lists.mathias-kettner.de/piperma ... 00070.html
It is old. I changed the url mentioned to:But did not get a graph. I then hardcoded the hostname (192.168.4.39) and service description (_HOST_) into the url:Code: Select all
/nagiosxi/includes/components/perfdata/graphApi.php?host=[pnp_hostname]&service=[pnp_service_description]&source=1&view=1&start=&end=&rand=1410817866This worked for hovers. I am unsure though what is wrong with the [pnp_hostname] and [pnp_service_description] variables/parameters.Code: Select all
/nagiosxi/includes/components/perfdata/graphApi.php?host=192.168.4.39&service=_HOST_&source=1&view=1&start=&end=&rand=1410818178
Re: Nagios XI and Nagvis Service/Host Graph's
Hi,
after some updates in the hover template as suggested by Abrist its now working.
see attached template.
thanks for help
Matthias
after some updates in the hover template as suggested by Abrist its now working.
see attached template.
thanks for help
Matthias
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI and Nagvis Service/Host Graph's
Sounds great! I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee