Page 1 of 1

Nagios with InfluxDB, nagflux and Grafana!!!

Posted: Mon Nov 06, 2017 5:25 pm
by ponnpr7
Do I need to install PNP4Nagios to have those Nagios with InfluxDB, nagflux and Grafana installed?

Thanks,
Ravi

Re: Nagios with InfluxDB, nagflux and Grafana!!!

Posted: Tue Nov 07, 2017 10:20 am
by mcapra
#1 I absolutely wouldn't install Grafana or InfluxDB or Nagflux on top of Nagios XI. If you want to leverage these services, do so on a completely separate machine.
#2 I absolutely wouldn't install PNP4Nagios on top of Nagios XI. Nagios XI already has portions of PNP4Nagios running on the back-end.

If you wanted to use Nagflux with Nagios XI, I believe the only way to do so without voiding portions of the support contract would be to use some sort of intermediary Gearman or Nagios Core machine to capture/process the check results from Nagios XI.

The less contract-friendly way would be to write a wrapper script that passes perfdata off to Nagios XI's back-end as well as Nagflux, which would require some sort of data transformation before passing it off to Nagflux. This wrapper script would then (most likely) be configured in the NPCD config.

Both solutions are quite a lot of trouble.

Re: Nagios with InfluxDB, nagflux and Grafana!!!

Posted: Tue Nov 07, 2017 11:24 am
by ponnpr7
Any API's that can be defined in Nagios Xi to collect the graph representation of Grafana.

thnaks,
Ravi

Re: Nagios with InfluxDB, nagflux and Grafana!!!

Posted: Tue Nov 07, 2017 1:10 pm
by kyang
Thanks @mcapra!

I wouldn't know of any API's to do so.

While looking on this topic, I saw this on the Nagios Exchange.

https://exchange.nagios.org/directory/D ... na/details

It's entirely up to you, whether you decide to install this on top of XI.

Make a backup in case things go wrong, but @mcapras answers are still valid and it could cause a lot of trouble.