Skip to content
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

InfluxDB Database(nagflux) does not exists and Nagflux was not able to create it #54

Open
NurMT opened this issue Sep 1, 2022 · 2 comments

Comments

@NurMT
Copy link

NurMT commented Sep 1, 2022

root@host:/opt/nagflux# /opt/nagflux/nagflux -configPath=/opt/nagflux/config.gcfg
2022-09-01 17:54:50 Info: Started Nagflux v0.4.1
2022-09-01 17:54:50 Info: Is InfluxDB(nagflux) running: true
2022-09-01 17:54:52 Warn: Could not create database:nagflux
2022-09-01 17:54:54 Warn: Could not create database:nagflux
2022-09-01 17:54:56 Warn: Could not create database:nagflux
2022-09-01 17:54:58 Warn: Could not create database:nagflux
2022-09-01 17:55:00 Warn: Could not create database:nagflux
2022-09-01 17:55:00 Critical: InfluxDB Database(nagflux) does not exists and Nagflux was not able to create it
2022-09-01 17:55:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:55:02 Info: Livestatus version:
2022-09-01 17:55:02 Warn: Could not detect livestatus type, with version: . Asuming Nagios
2022-09-01 17:55:02 Info: Nagios Spoolfile Folder: /usr/local/nagios/var/spool/nagfluxperfdata
2022-09-01 17:55:02 Info: Nagflux Spoolfile Folder: /usr/local/nagios/var/nagflux
2022-09-01 17:55:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:55:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:55:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:55:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:55:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:55:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:55:32 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:55:32 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:55:32 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:56:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:56:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:56:02 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:56:32 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:56:32 Critical: Connection type is unknown, options are: tcp, file. Input:
2022-09-01 17:56:32 Critical: Connection type is unknown, options are: tcp, file. Input:
@lausser
Copy link
Collaborator

lausser commented Sep 1, 2022

What about the environment? Is there a running Naemon with a livestatus socket? Is OMD involved? What does config.gcfg look like?

@NurMT
Copy link
Author

NurMT commented Sep 5, 2022

root@pkl-smkn1cmi:/home/nur# systemctl status nagios
● nagios.service - Nagios Core 4.4.7
   Loaded: loaded (/lib/systemd/system/nagios.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2022-09-01 12:41:25 WIB; 3 days ago
     Docs: https://www.nagios.org/documentation
 Main PID: 3376 (nagios)
    Tasks: 6 (limit: 1105)
   CGroup: /system.slice/nagios.service
           ├─3376 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
           ├─3377 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─3378 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─3379 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─3380 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           └─3381 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

Sep 05 10:56:36 pkl-smkn1cmi check_nrpe[14165]: Remote myip does not support version 3/4 packets
Sep 05 10:56:36 pkl-smkn1cmi check_nrpe[14165]: Remote myip accepted a version 2 packet
Sep 05 10:56:40 pkl-smkn1cmi check_nrpe[14193]: Remote myip does not support version 3/4 packets
Sep 05 10:56:40 pkl-smkn1cmi check_nrpe[14193]: Remote myip accepted a version 2 packet
Sep 05 10:56:42 pkl-smkn1cmi check_nrpe[14200]: Remote myip does not support version 3/4 packets
Sep 05 10:56:42 pkl-smkn1cmi check_nrpe[14200]: Remote myip accepted a version 2 packet
Sep 05 10:56:44 pkl-smkn1cmi check_nrpe[14215]: Remote myip does not support version 3/4 packets
Sep 05 10:56:44 pkl-smkn1cmi check_nrpe[14215]: Remote myip accepted a version 2 packet
Sep 05 10:56:51 pkl-smkn1cmi check_nrpe[14258]: Remote myip does not support version 3/4
[main]
    NagiosSpoolfileFolder = "/usr/local/nagios/var/spool/nagfluxperfdata"
    NagiosSpoolfileWorker = 1
    InfluxWorker = 2
    MaxInfluxWorker = 5
    DumpFile = "nagflux.dump"
    NagfluxSpoolfileFolder = "/usr/local/nagios/var/nagflux"
    FieldSeparator = "&"
    BufferSize = 10000
    FileBufferSize = 65536
    DefaultTarget = "all"

[Livestatus]
    Type = "tcp"
    Address = "myip:6557"
    MinutesToWait = 2
    Version = "Nagios"

[Log]
    LogFile = ""
    MinSeverity = "INFO"

[InfluxDBGlobal]
    CreateDatabaseIfNotExists = true
    NastyString = ""
    NastyStringToReplace = ""
    HostcheckAlias = "hostcheck"

[InfluxDB "nagflux"]
    Enabled = true
    Version = 1.0
    Address = "http://127.0.0.1:8086"
    Arguments = "precision=ms&u=root&p=root&db=nagflux"
    StopPullingDataIfDown = true

[InfluxDB "fast"]
    Enabled = false
    Version = 1.0
    Address = "http://127.0.0.1:8086"
    Arguments = "precision=ms&u=root&p=root&db=fast"
    StopPullingDataIfDown = false

here is my config.gcfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants