Griesbacher / nagflux

A connector which copies performancedata from Nagios / Icinga(2) / Naemon to InfluxDB
GNU General Public License v2.0
67 stars 32 forks source link

Nagflux saves data incorrectly into InfluxDB 2.0 - still problems with check_multi #22

Closed rbo closed 7 years ago

rbo commented 7 years ago

Hi,

i got some problemes with check_multi & nagflux:

Here the performance data:

check_multi::check_multi::plugins=1 time=0.053427 check_multi_extended::check_multi_extended::count_ok=1 count_warning=0 count_critical=0 count_unknown=0 overall_state=0 'influxdb_disk::check_influxdb::data'=5873575B;;;0; 'db'=0B;;;0; 'meta'=703B;;;0; 'raft'=0B;;;0; 'wal'=32464726B;;;0; '_internal'=4575006B;;;0; 'graphite'=29937B;;;0; 'nagflux'=1268632B;;;0; 

screen shot 2016-12-12 at 09 49 39

and the result in InfluxDB:

> select time,service,performanceLabel,value from metrics where time < now() and time > now() - 1m and service = 'test_influx_disk_multi' ;
name: metrics
-------------
time            service         performanceLabel                        value
2016-12-12T08:47:38Z    test_influx_disk_multi  check_multi::check_multi::plugins               1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  influxdb_disk::check_influxdb::wal              1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  influxdb_disk::check_influxdb::raft             1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  influxdb_disk::check_influxdb::nagflux              1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  influxdb_disk::check_influxdb::meta             1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  influxdb_disk::check_influxdb::graphite             1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  influxdb_disk::check_influxdb::db               1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  influxdb_disk::check_influxdb::data             1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  influxdb_disk::check_influxdb::_internal            1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  check_multi_extended::check_multi_extended::overall_state   1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  check_multi_extended::check_multi_extended::count_warning   1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  check_multi_extended::check_multi_extended::count_unknown   1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  check_multi_extended::check_multi_extended::count_ok        1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  check_multi_extended::check_multi_extended::count_critical  1.268632e+06
2016-12-12T08:47:38Z    test_influx_disk_multi  check_multi::check_multi::time                  1.268632e+06

It looks like nagflux stores the last perf. value to all fields/values in the influxdb.

Thanks Robert

Griesbacher commented 7 years ago

Hi Robert,

this sounds like the bug #20 . Did you update Nagflux/OMD to version v0.3.0 ? I pushed this version of Nagflux to OMD on 07.12.16: https://github.com/ConSol/omd/commit/0d09d3ad0a1f50da649aad221f3c920e1235abde

Greetings, Philip

rbo commented 7 years ago

Hi Philip,

i use:

omd version
OMD - Open Monitoring Distribution Version 2.21.20161207-labs-edition, Addons: ....
$ ./bin/nagflux -V
v0.2.9

mh, let me try naglux v0.3.0

Thanks Robert

rbo commented 7 years ago

:blush: Sorry, with nagflux v0.3.0 it works very well. Thanks Philip!