Page 1 of 1

Nagios Core with Nagflux and InfluxDB

Posted: Wed Sep 12, 2018 8:06 am
by SwimmingFish849
Hi

I'm in the process of setting up Nagios Core to with with Grafana and all is working fine after following this guide:
https://support.nagios.com/kb/article/n ... lux_Config

One thing i'm struggling on though is getting all my data to appear in InFluxDB
I have a check called check_msa.pl to check our storage which works fine in Nagios but this data isn't being passed to Nagflux or InfluxDB and I can't find any reason for it

Running the command curl -G "http://localhost:8086/query?db=nagflux&pretty=true" --data-urlencode "q=show series" shows me other checks that are being passed through but not this one

Does anyone have any ideas?

Cheers

Re: Nagios Core with Nagflux and InfluxDB

Posted: Wed Sep 12, 2018 4:43 pm
by scottwilkerson
Can you show the output of running the check_msa.pl plugin from the command line?

Re: Nagios Core with Nagflux and InfluxDB

Posted: Thu Sep 13, 2018 6:15 am
by SwimmingFish849
Sure:
./check_msa.pl -H x.x.x.x
HP MSA 2040 SAS: OK

Or:
./check_msa.pl -H x.x.x.x --list

List of probes:
On-Board Temperature 1-Ctlr A (type: temperature) has status ok with message: 'On-Board Temperature 1-Ctlr A: 36 C 96.80F'
On-Board Temperature 1-Ctlr B (type: temperature) has status ok with message: 'On-Board Temperature 1-Ctlr B: 34 C 93.20F'
On-Board Temperature 2-Ctlr A (type: temperature) has status ok with message: 'On-Board Temperature 2-Ctlr A: 40 C 104.00F'
On-Board Temperature 2-Ctlr B (type: temperature) has status ok with message: 'On-Board Temperature 2-Ctlr B: 40 C 104.00F'
On-Board Temperature 3-Ctlr A (type: temperature) has status ok with message: 'On-Board Temperature 3-Ctlr A: 47 C 116.60F'
On-Board Temperature 3-Ctlr B (type: temperature) has status ok with message: 'On-Board Temperature 3-Ctlr B: 46 C 114.80F'
Disk Controller Temp-Ctlr A (type: temperature) has status ok with message: 'Disk Controller Temp-Ctlr A: 38 C 100.40F'
Disk Controller Temp-Ctlr B (type: temperature) has status ok with message: 'Disk Controller Temp-Ctlr B: 38 C 100.40F'
Memory Controller Temp-Ctlr A (type: temperature) has status ok with message: 'Memory Controller Temp-Ctlr A: 25 C 77.00F'
Memory Controller Temp-Ctlr B (type: temperature) has status ok with message: 'Memory Controller Temp-Ctlr B: 25 C 77.00F'
On-board SAS2008 Temperature-Ctlr A (type: temperature) has status ok with message: 'On-board SAS2008 Temperature-Ctlr A: 62 C 143.60F'
On-board SAS2008 Temperature-Ctlr B (type: temperature) has status ok with message: 'On-board SAS2008 Temperature-Ctlr B: 64 C 147.20F'
Host Left IOC Temperature-Ctlr A (type: temperature) has status ok with message: 'Host Left IOC Temperature-Ctlr A: 25 C 77.00F'
Host Right IOC Temperature-Ctlr B (type: temperature) has status ok with message: 'Host Right IOC Temperature-Ctlr B: 25 C 77.00F'
Host Left IOC Temperature-Ctlr A (type: temperature) has status ok with message: 'Host Left IOC Temperature-Ctlr A: 25 C 77.00F'
Host Right IOC Temperature-Ctlr B (type: temperature) has status ok with message: 'Host Right IOC Temperature-Ctlr B: 25 C 77.00F'
Capacitor Pack Voltage-Ctlr A (type: power) has status ok with message: 'Capacitor Pack Voltage-Ctlr A: 8.19V'
Capacitor Pack Voltage-Ctlr B (type: power) has status ok with message: 'Capacitor Pack Voltage-Ctlr B: 8.17V'
Capacitor Cell 1 Voltage-Ctlr A (type: power) has status ok with message: 'Capacitor Cell 1 Voltage-Ctlr A: 2.05V'
Capacitor Cell 1 Voltage-Ctlr B (type: power) has status ok with message: 'Capacitor Cell 1 Voltage-Ctlr B: 2.04V'
Capacitor Cell 2 Voltage-Ctlr A (type: power) has status ok with message: 'Capacitor Cell 2 Voltage-Ctlr A: 2.04V'
Capacitor Cell 2 Voltage-Ctlr B (type: power) has status ok with message: 'Capacitor Cell 2 Voltage-Ctlr B: 2.04V'
Capacitor Cell 3 Voltage-Ctlr A (type: power) has status ok with message: 'Capacitor Cell 3 Voltage-Ctlr A: 2.05V'
Capacitor Cell 3 Voltage-Ctlr B (type: power) has status ok with message: 'Capacitor Cell 3 Voltage-Ctlr B: 2.06V'
Capacitor Cell 4 Voltage-Ctlr A (type: power) has status ok with message: 'Capacitor Cell 4 Voltage-Ctlr A: 2.05V'
Capacitor Cell 4 Voltage-Ctlr B (type: power) has status ok with message: 'Capacitor Cell 4 Voltage-Ctlr B: 2.03V'
Capacitor Charge-Ctlr A (type: other) has status ok with message: 'Capacitor Charge-Ctlr A: 99%'
Capacitor Charge-Ctlr B (type: other) has status ok with message: 'Capacitor Charge-Ctlr B: 99%'
Overall Unit Status (type: unknown) has status ok with message: 'Overall Unit Status: OK'
Temperature Loc: upper-IOM A (type: temperature) has status ok with message: 'Temperature Loc: upper-IOM A: 37 C 98.60F'
Temperature Loc: lower-IOM B (type: temperature) has status ok with message: 'Temperature Loc: lower-IOM B: 34 C 93.20F'
Temperature Loc: left-PSU (type: temperature) has status ok with message: 'Temperature Loc: left-PSU: 37 C 98.60F'
Temperature Loc: right-PSU (type: temperature) has status ok with message: 'Temperature Loc: right-PSU: 41 C 105.80F'
Voltage 12V Loc: upper-IOM A (type: power) has status ok with message: 'Voltage 12V Loc: upper-IOM A: 11.81V'
Voltage 5V Loc: upper-IOM A (type: power) has status ok with message: 'Voltage 5V Loc: upper-IOM A: 5.01V'
Voltage 12V Loc: lower-IOM B (type: power) has status ok with message: 'Voltage 12V Loc: lower-IOM B: 11.86V'
Voltage 5V Loc: lower-IOM B (type: power) has status ok with message: 'Voltage 5V Loc: lower-IOM B: 5.03V'
Voltage 12V Loc: left-PSU (type: power) has status ok with message: 'Voltage 12V Loc: left-PSU: 11.98V'
Voltage 5V Loc: left-PSU (type: power) has status ok with message: 'Voltage 5V Loc: left-PSU: 5.07V'
Voltage 3.3V Loc: left-PSU (type: power) has status ok with message: 'Voltage 3.3V Loc: left-PSU: 3.37V'
Voltage 12V Loc: right-PSU (type: power) has status ok with message: 'Voltage 12V Loc: right-PSU: 11.97V'
Voltage 5V Loc: right-PSU (type: power) has status ok with message: 'Voltage 5V Loc: right-PSU: 5.06V'
Voltage 3.3V Loc: right-PSU (type: power) has status ok with message: 'Voltage 3.3V Loc: right-PSU: 3.37V'
Current 12V Loc: upper-IOM A (type: currentValue) has status ok with message: 'Current 12V Loc: upper-IOM A: 5.83A'
Current 12V Loc: lower-IOM B (type: currentValue) has status ok with message: 'Current 12V Loc: lower-IOM B: 5.83A'
Current 12V Loc: left-PSU (type: currentValue) has status ok with message: 'Current 12V Loc: left-PSU: 8.83A'
Current 5V Loc: left-PSU (type: currentValue) has status ok with message: 'Current 5V Loc: left-PSU: 4.23A'
Current 12V Loc: right-PSU (type: currentValue) has status ok with message: 'Current 12V Loc: right-PSU: 8.14A'
Current 5V Loc: right-PSU (type: currentValue) has status ok with message: 'Current 5V Loc: right-PSU: 4.67A'
Overall Unit Status (type: unknown) has status ok with message: 'Overall Unit Status: OK'
Temperature Loc: upper-IOM A (type: temperature) has status ok with message: 'Temperature Loc: upper-IOM A: 37 C 98.60F'
Temperature Loc: lower-IOM B (type: temperature) has status ok with message: 'Temperature Loc: lower-IOM B: 36 C 96.80F'
Temperature Loc: left-PSU (type: temperature) has status ok with message: 'Temperature Loc: left-PSU: 32 C 89.60F'
Temperature Loc: right-PSU (type: temperature) has status ok with message: 'Temperature Loc: right-PSU: 34 C 93.20F'
Voltage 12V Loc: upper-IOM A (type: power) has status ok with message: 'Voltage 12V Loc: upper-IOM A: 11.92V'
Voltage 5V Loc: upper-IOM A (type: power) has status ok with message: 'Voltage 5V Loc: upper-IOM A: 5.12V'
Voltage 12V Loc: lower-IOM B (type: power) has status ok with message: 'Voltage 12V Loc: lower-IOM B: 11.92V'
Voltage 5V Loc: lower-IOM B (type: power) has status ok with message: 'Voltage 5V Loc: lower-IOM B: 5.12V'
Voltage 12V Loc: left-PSU (type: power) has status ok with message: 'Voltage 12V Loc: left-PSU: 11.97V'
Voltage 5V Loc: left-PSU (type: power) has status ok with message: 'Voltage 5V Loc: left-PSU: 5.10V'
Voltage 3.3V Loc: left-PSU (type: power) has status ok with message: 'Voltage 3.3V Loc: left-PSU: 3.37V'
Voltage 12V Loc: right-PSU (type: power) has status ok with message: 'Voltage 12V Loc: right-PSU: 11.98V'
Voltage 5V Loc: right-PSU (type: power) has status ok with message: 'Voltage 5V Loc: right-PSU: 5.15V'
Voltage 3.3V Loc: right-PSU (type: power) has status ok with message: 'Voltage 3.3V Loc: right-PSU: 3.37V'
Current 12V Loc: upper-IOM A (type: currentValue) has status ok with message: 'Current 12V Loc: upper-IOM A: 0.41A'
Current 12V Loc: lower-IOM B (type: currentValue) has status ok with message: 'Current 12V Loc: lower-IOM B: 0.41A'
Current 12V Loc: left-PSU (type: currentValue) has status ok with message: 'Current 12V Loc: left-PSU: 2.30A'
Current 5V Loc: left-PSU (type: currentValue) has status ok with message: 'Current 5V Loc: left-PSU: 1.67A'
Current 12V Loc: right-PSU (type: currentValue) has status ok with message: 'Current 12V Loc: right-PSU: 3.56A'
Current 5V Loc: right-PSU (type: currentValue) has status ok with message: 'Current 5V Loc: right-PSU: 5.11A'
Overall Unit Status (type: unknown) has status ok with message: 'Overall Unit Status: OK'
Temperature Loc: upper-IOM A (type: temperature) has status ok with message: 'Temperature Loc: upper-IOM A: 36 C 96.80F'
Temperature Loc: lower-IOM B (type: temperature) has status ok with message: 'Temperature Loc: lower-IOM B: 35 C 95.00F'
Temperature Loc: left-PSU (type: temperature) has status ok with message: 'Temperature Loc: left-PSU: 33 C 91.40F'
Temperature Loc: right-PSU (type: temperature) has status ok with message: 'Temperature Loc: right-PSU: 34 C 93.20F'
Voltage 12V Loc: upper-IOM A (type: power) has status ok with message: 'Voltage 12V Loc: upper-IOM A: 11.86V'
Voltage 5V Loc: upper-IOM A (type: power) has status ok with message: 'Voltage 5V Loc: upper-IOM A: 5.05V'
Voltage 12V Loc: lower-IOM B (type: power) has status ok with message: 'Voltage 12V Loc: lower-IOM B: 11.92V'
Voltage 5V Loc: lower-IOM B (type: power) has status ok with message: 'Voltage 5V Loc: lower-IOM B: 5.05V'
Voltage 12V Loc: left-PSU (type: power) has status ok with message: 'Voltage 12V Loc: left-PSU: 12.04V'
Voltage 5V Loc: left-PSU (type: power) has status ok with message: 'Voltage 5V Loc: left-PSU: 5.08V'
Voltage 3.3V Loc: left-PSU (type: power) has status ok with message: 'Voltage 3.3V Loc: left-PSU: 3.37V'
Voltage 12V Loc: right-PSU (type: power) has status ok with message: 'Voltage 12V Loc: right-PSU: 11.97V'
Voltage 5V Loc: right-PSU (type: power) has status ok with message: 'Voltage 5V Loc: right-PSU: 5.06V'
Voltage 3.3V Loc: right-PSU (type: power) has status ok with message: 'Voltage 3.3V Loc: right-PSU: 3.35V'
Current 12V Loc: upper-IOM A (type: currentValue) has status ok with message: 'Current 12V Loc: upper-IOM A: 0.41A'
Current 12V Loc: lower-IOM B (type: currentValue) has status ok with message: 'Current 12V Loc: lower-IOM B: 0.41A'
Current 12V Loc: left-PSU (type: currentValue) has status ok with message: 'Current 12V Loc: left-PSU: 3.07A'
Current 5V Loc: left-PSU (type: currentValue) has status ok with message: 'Current 5V Loc: left-PSU: 3.21A'
Current 12V Loc: right-PSU (type: currentValue) has status ok with message: 'Current 12V Loc: right-PSU: 2.80A'
Current 5V Loc: right-PSU (type: currentValue) has status ok with message: 'Current 5V Loc: right-PSU: 4.08A'
connUnitStatus has status ok
HP MSA 2040 SAS: OK

Re: Nagios Core with Nagflux and InfluxDB

Posted: Thu Sep 13, 2018 8:02 am
by mcapra
That plugin does not appear to be providing any performance data. As Nagflux only deals with performance data, this adds up.

Please refer to the nagios plugin development guidelines for how plugins should present performance data:
https://nagios-plugins.org/doc/guidelines.html#AEN200

There are definitely measurements in that output, they just need to be formatted in a Nagios-friendly way.

Re: Nagios Core with Nagflux and InfluxDB

Posted: Thu Sep 13, 2018 8:05 am
by SwimmingFish849
Ah, ok that explains it then. I'll have to do some reading up on how to make them present performance data - thanks :)

Re: Nagios Core with Nagflux and InfluxDB

Posted: Thu Sep 13, 2018 8:07 am
by scottwilkerson
SwimmingFish849 wrote:Ah, ok that explains it then. I'll have to do some reading up on how to make them present performance data - thanks :)
no problem