Nagios Core -> NagFlux -> InFluxDB -> Grafana

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Nagios Core -> NagFlux -> InFluxDB -> Grafana

Post by neworderfac33 »

Good morning,

I know that Grafana isn't a Nagios product, but I'm just posting my question in case anyone else has attempted to do what I'm trying and can offer any advice.

I currently have a Core 4.3.2 installation running under RedHat 7.2

I also have PNP4Nagios and Grafana, which works fine, with PNP Datasource in Grafana taking the data from PNP4Nagios and generating charts within Grafana beautifully, as well as natively within PNP4Nagios itself.

However, the PNP datasource does not support email alerting, so, whilst I can get Grafana to send out a test email, proving that my SMTP configuration is correct, I can't generate email alerts as a result of one of my Nagios services passing its warning/critical thresholds.

A datasource that DOES support alerting in this way is InFluxDB, which comes preinstalled with Grafana and I have set this up... I think!

BUT... in order for InFluxDB to be able to communicate with Nagios, I need to install something called NagFlux - see https://github.com/Griesbacher/nagflux

I have also found information about installing all of these at https://exchange.nagios.org/directory/D ... na/details, but it appears to refer to Nagios XI running under CentOS, and it also seems to cover installing InFluxDB, which I already have (as well as details on installing Grafana, which I've already done)

So, my question is, has anyone out there tried to install and configure NagFlux in a setup similar to mine and would you be interested in sharing?

Thanks in advance

Pete
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Core -> NagFlux -> InFluxDB -> Grafana

Post by mcapra »

I spent about an hour playing around with a similar setup and didn't encounter any specific problems following what's on the Nagflux github page. Seemed pretty straight forward.

I never played around with the InfluxDB alerting stuff, but I was able to get Core perfdata into InfluxDB (and eventually Elasticsearch) and then drawn by Grafana. Is there a particular reason you're leveraging InfluxDB to handle the alerting when you already have Core installed?
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Core -> NagFlux -> InFluxDB -> Grafana

Post by dwhitfield »

Thanks for the assist @mcapra!
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Nagios Core -> NagFlux -> InFluxDB -> Grafana

Post by neworderfac33 »

No, no reason in particular - I was just wondering if it could be done, that's all.

In any case, I've just been informed that we're not going to require Grafana alerting, so my question has become academic.

Thanks for your assistance, though - you can close this thread.

Have a good weekend.

Pete
Locked