From 9de1444668141bb598775ff6a230c6e909a4df0f Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 8 Jan 2022 23:26:21 +0100 Subject: [PATCH] change telegraf plugin dir --- bundles/hardware/items.py | 2 +- bundles/hardware/metadata.py | 4 ++-- bundles/smartctl/items.py | 2 +- bundles/smartctl/metadata.py | 4 ++-- bundles/tasmota-charge/items.py | 2 +- bundles/tasmota-charge/metadata.py | 2 +- bundles/telegraf/items.py | 2 +- bundles/telegraf/metadata.py | 4 ++-- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bundles/hardware/items.py b/bundles/hardware/items.py index 1f8351c..a49c30d 100644 --- a/bundles/hardware/items.py +++ b/bundles/hardware/items.py @@ -1,5 +1,5 @@ files = { - '/usr/local/share/icinga/plugins/cpu_frequency': { + '/usr/local/share/telegraf/cpu_frequency': { 'mode': '0755', 'triggers': { 'svc_systemd:telegraf:restart', diff --git a/bundles/hardware/metadata.py b/bundles/hardware/metadata.py index 63d6436..87190d7 100644 --- a/bundles/hardware/metadata.py +++ b/bundles/hardware/metadata.py @@ -9,7 +9,7 @@ defaults = { }, 'sudoers': { 'telegraf': { - '/usr/local/share/icinga/plugins/cpu_frequency', + '/usr/local/share/telegraf/cpu_frequency', }, }, 'telegraf': { @@ -20,7 +20,7 @@ defaults = { })}, 'exec': { repo.libs.hashable.hashable({ - 'commands': ["sudo /usr/local/share/icinga/plugins/cpu_frequency"], + 'commands': ["sudo /usr/local/share/telegraf/cpu_frequency"], 'name_override': "cpu_frequency", 'data_format': "influx", }), diff --git a/bundles/smartctl/items.py b/bundles/smartctl/items.py index 5c070d9..3e73575 100644 --- a/bundles/smartctl/items.py +++ b/bundles/smartctl/items.py @@ -1,5 +1,5 @@ files = { - '/usr/local/share/icinga/plugins/smartctl': { + '/usr/local/share/telegraf/smartctl': { 'source': 'telegraf_plugin', 'content_type': 'mako', 'mode': '0755', diff --git a/bundles/smartctl/metadata.py b/bundles/smartctl/metadata.py index 8da7ad9..f221b95 100644 --- a/bundles/smartctl/metadata.py +++ b/bundles/smartctl/metadata.py @@ -15,7 +15,7 @@ defaults = { 'inputs': { 'exec': {h({ 'commands': [ - f'sudo /usr/local/share/icinga/plugins/smartctl', + f'sudo /usr/local/share/telegraf/smartctl', ], 'data_format': 'influx', 'interval': '20s', @@ -24,6 +24,6 @@ defaults = { }, }, 'sudoers': { - 'telegraf': {'/usr/local/share/icinga/plugins/smartctl'}, + 'telegraf': {'/usr/local/share/telegraf/smartctl'}, }, } diff --git a/bundles/tasmota-charge/items.py b/bundles/tasmota-charge/items.py index 818d957..28e80a5 100644 --- a/bundles/tasmota-charge/items.py +++ b/bundles/tasmota-charge/items.py @@ -11,7 +11,7 @@ files = { 'max': node.metadata.get('tasmota-charge/plug/max'), } }, - '/usr/local/share/icinga/plugins/tasmota_charge': { + '/usr/local/share/telegraf/tasmota_charge': { 'content_type': 'mako', 'source': 'telegraf-plugin', 'mode': '0755', diff --git a/bundles/tasmota-charge/metadata.py b/bundles/tasmota-charge/metadata.py index 4317ecf..330befc 100644 --- a/bundles/tasmota-charge/metadata.py +++ b/bundles/tasmota-charge/metadata.py @@ -23,7 +23,7 @@ def telegraf(metadata): 'inputs': { 'exec': { repo.libs.hashable.hashable({ - 'commands': ["/usr/local/share/icinga/plugins/tasmota_charge"], + 'commands': ["/usr/local/share/telegraf/tasmota_charge"], 'name_override': "tasmota_charge", 'data_format': "influx", }), diff --git a/bundles/telegraf/items.py b/bundles/telegraf/items.py index 3088ff6..8db05aa 100644 --- a/bundles/telegraf/items.py +++ b/bundles/telegraf/items.py @@ -15,7 +15,7 @@ files = { 'svc_systemd:telegraf:restart', ], }, - '/usr/local/share/icinga/plugins/procio': { + '/usr/local/share/telegraf/procio': { 'content_type': 'download', 'source': f"https://dl.sublimity.de/telegraf-procio/telegraf-procio-{node.metadata.get('system/architecture')}-latest", 'mode': '0755', diff --git a/bundles/telegraf/metadata.py b/bundles/telegraf/metadata.py index d4f447a..5503ba2 100644 --- a/bundles/telegraf/metadata.py +++ b/bundles/telegraf/metadata.py @@ -57,7 +57,7 @@ defaults = { 'net': {h({})}, 'exec': {h({ 'commands': [ - f'sudo /usr/local/share/icinga/plugins/procio', + f'sudo /usr/local/share/telegraf/procio', ], 'data_format': 'influx', 'interval': '20s', @@ -76,7 +76,7 @@ defaults = { 'proc_io', }, 'sudoers': { - 'telegraf': {'/usr/local/share/icinga/plugins/procio'}, + 'telegraf': {'/usr/local/share/telegraf/procio'}, }, }