Griesbacher / nagflux

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

Critical: Connection type is unknown, options are: tcp, file. Input #43

Open HAlover99 opened 5 years ago

HAlover99 commented 5 years ago

Hi all,

I have a strange problem with influDB because the database collect the data from nagios but continue to show this message in /var/log/syslog

Jan 13 12:02:55 mi-sg3-nagios-01 nagflux[26725]: #033[31m2019-01-13 13:02:55 Critical: Connection type is unknown, options are: tcp, file. Input:

Could you help me to fix it?

nms@mi-sg3-nagios-01:~$ curl -G "http://localhost:8086/query?db=nagflux&pretty=true" --data-urlencode "q=show series" { "results": [ { "statement_id": 0, "series": [ { "columns": [ "key" ], "values": [ [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg12-sw-01,performanceLabel=pl,service=hostcheck,unit=%,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg12-sw-01,performanceLabel=rta,service=hostcheck,unit=ms,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg12-sw-02,performanceLabel=pl,service=hostcheck,unit=%,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg12-sw-02,performanceLabel=rta,service=hostcheck,unit=ms,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg12-sw-04,performanceLabel=pl,service=hostcheck,unit=%,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg12-sw-04,performanceLabel=rta,service=hostcheck,unit=ms,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg3-sw-01,performanceLabel=pl,service=hostcheck,unit=%,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg3-sw-01,performanceLabel=rta,service=hostcheck,unit=ms,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg3-sw-02,performanceLabel=pl,service=hostcheck,unit=%,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=mi-sg3-sw-02,performanceLabel=rta,service=hostcheck,unit=ms,warn-fill=none" ], [ "metrics,command=check-host-alive,crit-fill=none,host=rm-msc10-sw-01,performanceLabel=pl,service=hostcheck,unit=%,warn-fill=none" ],

Best Regards CR

dragonfly-net commented 5 years ago

Check your config file, section [Livestatus] required. https://github.com/Griesbacher/nagflux/issues/30