无法解析身份验证凭证



我已经为nagios和grafana集成设置了一个Influxdb,我已经配置了一切文件来自nagflux/perfdata文件夹但是当我执行

时,我无法获取任何流入数据。
curl -G “http://localhost:8086/query?db=nagios&pretty=true” --data-urlencode “q=show series”
“error”: “unable to parse authentication credentials”

我已经创建了数据库" nagios "和用户nagios具有管理员权限。

同样在配置文件

[monitor]
Whether to record statistics internally.
store-enabled = true
The destination database for recorded statistics
store-database = “nagios”
The interval at which to record statistics
store-interval = “20s”
[http]
Determines whether HTTP endpoint is enabled.
enabled = true
Determines whether the Flux query endpoint is enabled.
flux-enabled = false
The bind address used by the HTTP service.
bind-address = “:8086”
Determines whether user authentication is enabled over HTTP/HTTPS.
auth-enabled = true
The default realm sent back when issuing a basic auth challenge.
realm = “InfluxDB”
Determines whether HTTP request logging is enabled.
log-enabled = true
and in Nagflux
Main file processing configuration
[main]
#NagiosThe location of the performance data, here is the directory copied from our script
NagiosSpoolfileFolder = “/usr/local/nagflux/spool/nagfluxperfdata”
NagiosSpoolfileWorker = 1
InfluxWorker = 2
MaxInfluxWorker = 5
#File location just specify one
DumpFile = “/usr/local/nagflux/log/nagflux/nagflux.dump”
#This is the temporary storage directory of nagflux
NagfluxSpoolfileFolder = “/usr/local/nagflux”
FieldSeparator = “&”
BufferSize = 1000
FileBufferSize = 65536
#Save target we use Influxdb
DefaultTarget = “Influxdb”
#Log save settings
[Log]
LogFile = “/usr/local/nagflux/log/nagflux.log”
MinSeverity = “INFO”
#ubfluxdb global settings, mainly to allow the creation of a database
[InfluxDBGlobal]
CreateDatabaseIfNotExists = true
NastyString = “”
NastyStringToReplace = “”
HostcheckAlias = “hostcheck”
#Specify the database, NagiosPerfdata here is the database name, it will be created automatically
[InfluxDB “nagios”]
Enabled = true
Version = 1.4.2
#influxdb API interface address, the default is port 8086
Address = " http://localhost:8086 "
#Specify the user name and password here, must have administrator rights
Arguments = “precision=ms&u=nagios&p=xxxxxx&db=nagios”
StopPullingDataIfDown = true
#This configuration here is mainly to eliminate errors that have been reported in the log. If there is no livestatu$
[Livestatus]
Type = “tcp”
Version = “Icinga2”

nagflux日志文件返回

2021-10-30 12:32:36 Info: Is InfluxDB(nagios) running: false

你能帮我一下吗?

Case可以关闭在nagflux上的config文件上的config文件的访问权限

相关内容

  • 没有找到相关文章

最新更新