add agentstatus to telegraf

This commit is contained in:
Mike Reeves
2024-04-03 09:40:14 -04:00
parent 0efdcfcb52
commit 0dfde3c9f2
2 changed files with 4 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ telegraf:
quiet: 'false'
scripts:
eval:
- agentstatus.sh
- checkfiles.sh
- influxdbsize.sh
- lasthighstate.sh
@@ -23,6 +24,7 @@ telegraf:
- zeekcaptureloss.sh
- zeekloss.sh
standalone:
- agentstatus.sh
- checkfiles.sh
- eps.sh
- influxdbsize.sh
@@ -38,6 +40,7 @@ telegraf:
- zeekloss.sh
- features.sh
manager:
- agentstatus.sh
- influxdbsize.sh
- lasthighstate.sh
- os.sh
@@ -46,6 +49,7 @@ telegraf:
- sostatus.sh
- features.sh
managersearch:
- agentstatus.sh
- eps.sh
- influxdbsize.sh
- lasthighstate.sh

View File

@@ -202,16 +202,6 @@
insecure_skip_verify = true
{%- endif %}
# # Get Agent Stats
{%- if grains['role'] in ['so-manager', 'so-eval', 'so-managersearch', 'so-standalone', 'so-import'] %}
[[inputs.exec]]
commands = [
"/scripts/agentstatus.sh"
]
data_format = "influx"
timeout = "15s"
{%- endif %}
# ## Timeout for HTTP requests to the elastic search server(s)
# http_timeout = "5s"
#