mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-07-31 01:34:06 +02:00
parent
16af7ffb5a
commit
8d605d18b8
@ -421,26 +421,6 @@
|
|||||||
description: >
|
description: >
|
||||||
Number of not connected endpoints
|
Number of not connected endpoints
|
||||||
|
|
||||||
- name: status.api.zones.demo.client_log_lag
|
|
||||||
type: integer
|
|
||||||
description: >
|
|
||||||
Lag of the replaylog
|
|
||||||
|
|
||||||
- name: status.api.zones.demo.connected
|
|
||||||
type: boolean
|
|
||||||
description: >
|
|
||||||
Zone connected
|
|
||||||
|
|
||||||
- name: status.api.zones.demo.endpoints
|
|
||||||
type: text
|
|
||||||
description: >
|
|
||||||
Endpoint names
|
|
||||||
|
|
||||||
- name: status.api.zones.demo.parent_zone
|
|
||||||
type: keyword
|
|
||||||
description: >
|
|
||||||
Parent zone
|
|
||||||
|
|
||||||
- name: status.avg_execution_time
|
- name: status.avg_execution_time
|
||||||
type: integer
|
type: integer
|
||||||
description: >
|
description: >
|
||||||
|
@ -421,26 +421,6 @@
|
|||||||
description: >
|
description: >
|
||||||
Number of not connected endpoints
|
Number of not connected endpoints
|
||||||
|
|
||||||
- name: status.api.zones.demo.client_log_lag
|
|
||||||
type: integer
|
|
||||||
description: >
|
|
||||||
Lag of the replaylog
|
|
||||||
|
|
||||||
- name: status.api.zones.demo.connected
|
|
||||||
type: boolean
|
|
||||||
description: >
|
|
||||||
Zone connected
|
|
||||||
|
|
||||||
- name: status.api.zones.demo.endpoints
|
|
||||||
type: text
|
|
||||||
description: >
|
|
||||||
Endpoint names
|
|
||||||
|
|
||||||
- name: status.api.zones.demo.parent_zone
|
|
||||||
type: keyword
|
|
||||||
description: >
|
|
||||||
Parent zone
|
|
||||||
|
|
||||||
- name: status.avg_execution_time
|
- name: status.avg_execution_time
|
||||||
type: integer
|
type: integer
|
||||||
description: >
|
description: >
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4,7 +4,6 @@ import (
|
|||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"crypto/x509"
|
"crypto/x509"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
@ -32,7 +31,6 @@ func requestURL(bt *Icingabeat, method string, URL *url.URL) (*http.Response, er
|
|||||||
skipSslVerify = true
|
skipSslVerify = true
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Print(bt.config.SSL.CertificateAuthorities)
|
|
||||||
tlsConfig := &tls.Config{
|
tlsConfig := &tls.Config{
|
||||||
InsecureSkipVerify: skipSslVerify,
|
InsecureSkipVerify: skipSslVerify,
|
||||||
RootCAs: certPool,
|
RootCAs: certPool,
|
||||||
|
@ -47,7 +47,6 @@ func (bt *Icingabeat) Run(b *beat.Beat) error {
|
|||||||
go eventstream.Run()
|
go eventstream.Run()
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Print(bt.config.Statuspoller.Interval)
|
|
||||||
if bt.config.Statuspoller.Interval > 0 {
|
if bt.config.Statuspoller.Interval > 0 {
|
||||||
var statuspoller *Statuspoller
|
var statuspoller *Statuspoller
|
||||||
statuspoller = NewStatuspoller(bt, bt.config)
|
statuspoller = NewStatuspoller(bt, bt.config)
|
||||||
|
@ -56,6 +56,15 @@ func BuildStatusEvents(body []byte) []beat.Event {
|
|||||||
switch statusvalue.(type) {
|
switch statusvalue.(type) {
|
||||||
case map[string]interface{}:
|
case map[string]interface{}:
|
||||||
if len(statusvalue.(map[string]interface{})) > 0 {
|
if len(statusvalue.(map[string]interface{})) > 0 {
|
||||||
|
for key, value := range value.(map[string]interface{}) {
|
||||||
|
if key == "api" {
|
||||||
|
// "zones" can include a massive amount of data, depending
|
||||||
|
// on the number of connected agents and satellites
|
||||||
|
// since enough data is included in other keys, we're
|
||||||
|
// removing "zones" explicitly
|
||||||
|
delete(value.(map[string]interface{}), "zones")
|
||||||
|
}
|
||||||
|
}
|
||||||
event.Fields.Put(key, value)
|
event.Fields.Put(key, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -877,38 +877,6 @@ type: integer
|
|||||||
Number of not connected endpoints
|
Number of not connected endpoints
|
||||||
|
|
||||||
|
|
||||||
[float]
|
|
||||||
=== `status.api.zones.demo.client_log_lag`
|
|
||||||
|
|
||||||
type: integer
|
|
||||||
|
|
||||||
Lag of the replaylog
|
|
||||||
|
|
||||||
|
|
||||||
[float]
|
|
||||||
=== `status.api.zones.demo.connected`
|
|
||||||
|
|
||||||
type: boolean
|
|
||||||
|
|
||||||
Zone connected
|
|
||||||
|
|
||||||
|
|
||||||
[float]
|
|
||||||
=== `status.api.zones.demo.endpoints`
|
|
||||||
|
|
||||||
type: text
|
|
||||||
|
|
||||||
Endpoint names
|
|
||||||
|
|
||||||
|
|
||||||
[float]
|
|
||||||
=== `status.api.zones.demo.parent_zone`
|
|
||||||
|
|
||||||
type: keyword
|
|
||||||
|
|
||||||
Parent zone
|
|
||||||
|
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
=== `status.avg_execution_time`
|
=== `status.avg_execution_time`
|
||||||
|
|
||||||
|
20
fields.yml
20
fields.yml
@ -589,26 +589,6 @@
|
|||||||
description: >
|
description: >
|
||||||
Number of not connected endpoints
|
Number of not connected endpoints
|
||||||
|
|
||||||
- name: status.api.zones.demo.client_log_lag
|
|
||||||
type: integer
|
|
||||||
description: >
|
|
||||||
Lag of the replaylog
|
|
||||||
|
|
||||||
- name: status.api.zones.demo.connected
|
|
||||||
type: boolean
|
|
||||||
description: >
|
|
||||||
Zone connected
|
|
||||||
|
|
||||||
- name: status.api.zones.demo.endpoints
|
|
||||||
type: text
|
|
||||||
description: >
|
|
||||||
Endpoint names
|
|
||||||
|
|
||||||
- name: status.api.zones.demo.parent_zone
|
|
||||||
type: keyword
|
|
||||||
description: >
|
|
||||||
Parent zone
|
|
||||||
|
|
||||||
- name: status.avg_execution_time
|
- name: status.avg_execution_time
|
||||||
type: integer
|
type: integer
|
||||||
description: >
|
description: >
|
||||||
|
Loading…
x
Reference in New Issue
Block a user