change telegraf plugin dir
This commit is contained in:
parent
36ca196f3a
commit
9de1444668
8 changed files with 11 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
||||||
files = {
|
files = {
|
||||||
'/usr/local/share/icinga/plugins/cpu_frequency': {
|
'/usr/local/share/telegraf/cpu_frequency': {
|
||||||
'mode': '0755',
|
'mode': '0755',
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:telegraf:restart',
|
'svc_systemd:telegraf:restart',
|
||||||
|
|
|
@ -9,7 +9,7 @@ defaults = {
|
||||||
},
|
},
|
||||||
'sudoers': {
|
'sudoers': {
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
'/usr/local/share/icinga/plugins/cpu_frequency',
|
'/usr/local/share/telegraf/cpu_frequency',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'telegraf': {
|
'telegraf': {
|
||||||
|
@ -20,7 +20,7 @@ defaults = {
|
||||||
})},
|
})},
|
||||||
'exec': {
|
'exec': {
|
||||||
repo.libs.hashable.hashable({
|
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",
|
'name_override': "cpu_frequency",
|
||||||
'data_format': "influx",
|
'data_format': "influx",
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
files = {
|
files = {
|
||||||
'/usr/local/share/icinga/plugins/smartctl': {
|
'/usr/local/share/telegraf/smartctl': {
|
||||||
'source': 'telegraf_plugin',
|
'source': 'telegraf_plugin',
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'mode': '0755',
|
'mode': '0755',
|
||||||
|
|
|
@ -15,7 +15,7 @@ defaults = {
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'exec': {h({
|
'exec': {h({
|
||||||
'commands': [
|
'commands': [
|
||||||
f'sudo /usr/local/share/icinga/plugins/smartctl',
|
f'sudo /usr/local/share/telegraf/smartctl',
|
||||||
],
|
],
|
||||||
'data_format': 'influx',
|
'data_format': 'influx',
|
||||||
'interval': '20s',
|
'interval': '20s',
|
||||||
|
@ -24,6 +24,6 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'sudoers': {
|
'sudoers': {
|
||||||
'telegraf': {'/usr/local/share/icinga/plugins/smartctl'},
|
'telegraf': {'/usr/local/share/telegraf/smartctl'},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ files = {
|
||||||
'max': node.metadata.get('tasmota-charge/plug/max'),
|
'max': node.metadata.get('tasmota-charge/plug/max'),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/usr/local/share/icinga/plugins/tasmota_charge': {
|
'/usr/local/share/telegraf/tasmota_charge': {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'source': 'telegraf-plugin',
|
'source': 'telegraf-plugin',
|
||||||
'mode': '0755',
|
'mode': '0755',
|
||||||
|
|
|
@ -23,7 +23,7 @@ def telegraf(metadata):
|
||||||
'inputs': {
|
'inputs': {
|
||||||
'exec': {
|
'exec': {
|
||||||
repo.libs.hashable.hashable({
|
repo.libs.hashable.hashable({
|
||||||
'commands': ["/usr/local/share/icinga/plugins/tasmota_charge"],
|
'commands': ["/usr/local/share/telegraf/tasmota_charge"],
|
||||||
'name_override': "tasmota_charge",
|
'name_override': "tasmota_charge",
|
||||||
'data_format': "influx",
|
'data_format': "influx",
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -15,7 +15,7 @@ files = {
|
||||||
'svc_systemd:telegraf:restart',
|
'svc_systemd:telegraf:restart',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'/usr/local/share/icinga/plugins/procio': {
|
'/usr/local/share/telegraf/procio': {
|
||||||
'content_type': 'download',
|
'content_type': 'download',
|
||||||
'source': f"https://dl.sublimity.de/telegraf-procio/telegraf-procio-{node.metadata.get('system/architecture')}-latest",
|
'source': f"https://dl.sublimity.de/telegraf-procio/telegraf-procio-{node.metadata.get('system/architecture')}-latest",
|
||||||
'mode': '0755',
|
'mode': '0755',
|
||||||
|
|
|
@ -57,7 +57,7 @@ defaults = {
|
||||||
'net': {h({})},
|
'net': {h({})},
|
||||||
'exec': {h({
|
'exec': {h({
|
||||||
'commands': [
|
'commands': [
|
||||||
f'sudo /usr/local/share/icinga/plugins/procio',
|
f'sudo /usr/local/share/telegraf/procio',
|
||||||
],
|
],
|
||||||
'data_format': 'influx',
|
'data_format': 'influx',
|
||||||
'interval': '20s',
|
'interval': '20s',
|
||||||
|
@ -76,7 +76,7 @@ defaults = {
|
||||||
'proc_io',
|
'proc_io',
|
||||||
},
|
},
|
||||||
'sudoers': {
|
'sudoers': {
|
||||||
'telegraf': {'/usr/local/share/icinga/plugins/procio'},
|
'telegraf': {'/usr/local/share/telegraf/procio'},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue