change telegraf plugin dir

This commit is contained in:
mwiegand 2022-01-08 23:26:21 +01:00
parent 36ca196f3a
commit 9de1444668
8 changed files with 11 additions and 11 deletions

View file

@ -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',

View file

@ -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",
}),

View file

@ -1,5 +1,5 @@
files = {
'/usr/local/share/icinga/plugins/smartctl': {
'/usr/local/share/telegraf/smartctl': {
'source': 'telegraf_plugin',
'content_type': 'mako',
'mode': '0755',

View file

@ -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'},
},
}

View file

@ -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',

View file

@ -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",
}),

View file

@ -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',

View file

@ -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'},
},
}