-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nothing in influx DB #38
Comments
Hi,
|
Hi, I've changed my conf and now i get something from the spool file but influxdb still empty. My nagios seem to does not create file in my spool .. Here is my configuration : `[root@JXT-NAGIOS ~]# cat config.gcfg [Log] [InfluxDBGlobal] [Livestatus] [InfluxDB "nagflux"]
Thanks for helping ! |
Livestatus is You should also add the following block to your config, but that's not your problem:
|
"is not nice to have"? ;-) |
The spool file is configured in nagios but still nothing into ... |
@sni yeah that's kinda wrong :-D it's fixed |
I'm not using OMD, I'm just trying to make a dashboard with grafana from an old nagios 4.1.1 |
Okay so after some investigation, i got a partial solution. It's seem to be a problem with process-host-perfdata-file command. |
Hi,
I'm trying to install nagflux on my nagios machine.
Here is my parameters :
`[root@JXT-NAGIOS ~]# cat config.gcfg
[main]
NagiosSpoolfileFolder = "/usr/local/nagios/var/spool/"
NagiosSpoolfileWorker = 1
InfluxWorker = 2
MaxInfluxWorker = 5
DumpFile = "nagflux.dump"
NagfluxSpoolfileFolder = "/usr/local/nagios/var/spool/nagflux"
FieldSeparator = "&"
BufferSize = 10000
FileBufferSize = 65536
# If the performancedata does not have a certain target set with NAGFLUX:TARGET.
# The following field will define the target for this data.
# "all" sends the data to all Targets(every Influxdb, Elasticsearch...)
# a certain name will direct the data to this certain target
DefaultTarget = "all"
[Log]
#leave empty for stdout
LogFile = ""
#List of Severities https://godoc.org/github.com/kdar/factorlog#Severity
MinSeverity = "DEBUG"
[InfluxDBGlobal]
CreateDatabaseIfNotExists = true
NastyString = ""
NastyStringToReplace = ""
[Livestatus]
# tcp or file
Type = "tcp"
# tcp: 127.0.0.1:6557 or file /var/run/live
Address = "127.0.0.1:6557"
# The amount to minutes to wait for livestatus to come up, if set to 0 the detection is disabled
MinutesToWait = 2
# Set the Version of Livestatus. Allowed are Nagios, Icinga2, Naemon.
# If left empty Nagflux will try to detect it on it's own, which will not always work.
Version = "Nagios"
[InfluxDB "nagflux"]
Enabled = true
Address = "http://192.168.2.116:8086"
Arguments = "precision=ms&db=nagflux"
StopPullingDataIfDown = true
`
When i launch nagflux, everything seem to be okay :
[root@JXT-NAGIOS ~]# ./nagflux 2017-09-13 17:22:38 Info: Started Nagflux v0.4.1 2017-09-13 17:22:38 Debug: Using Config: config.gcfg 2017-09-13 17:22:38 Info: Is InfluxDB(nagflux) running: true 2017-09-13 17:22:38 Debug: Influxdb(nagflux) is running 2017-09-13 17:22:38 Debug: Dumpfile: nagflux.dump-nagflux.influx not found, skipping... (Everything is fine) 2017-09-13 17:22:38 Debug: DumpfileCollector stopped 2017-09-13 17:22:40 Info: Setting Livestatus version to: Nagios 2017-09-13 17:22:40 Info: Nagios Spoolfile Folder: /usr/local/nagios/var/spool/ 2017-09-13 17:22:40 Info: Nagflux Spoolfile Folder: /usr/local/nagios/var/spool/nagflux 2017-09-13 17:22:45 Debug: Reading Directory: /usr/local/nagios/var/spool/ 2017-09-13 17:22:50 Debug: Reading Directory: /usr/local/nagios/var/spool/ 2017-09-13 17:22:55 Debug: Reading Directory: /usr/local/nagios/var/spool/ 2017-09-13 17:23:00 Debug: Reading Directory: /usr/local/nagios/var/spool/
But obviously, i have no data in my influxdb base ..
influxDB is 0.9.5.
Can you help me ?
The text was updated successfully, but these errors were encountered: