2021-04-24 07:12:25 +00:00
|
|
|
nodes['htz-cloud.influxdb'] = {
|
|
|
|
'hostname': '116.203.84.44',
|
|
|
|
'bundles': {
|
2021-05-02 08:44:50 +00:00
|
|
|
'grafana',
|
2021-04-24 08:35:41 +00:00
|
|
|
'influxdb2',
|
2024-01-23 08:30:13 +00:00
|
|
|
'telegraf_airgradient',
|
2023-04-01 05:01:03 +00:00
|
|
|
'telegraf-monitors-mikrotik',
|
2021-04-24 07:12:25 +00:00
|
|
|
'zfs',
|
|
|
|
},
|
|
|
|
'groups': {
|
2023-05-20 09:25:43 +00:00
|
|
|
'debian-bullseye',
|
2021-04-24 08:35:41 +00:00
|
|
|
'webserver',
|
2021-04-24 07:12:25 +00:00
|
|
|
},
|
|
|
|
'metadata': {
|
2022-12-11 16:42:59 +00:00
|
|
|
'apt': {
|
|
|
|
'packages': {
|
|
|
|
# for telegraf
|
|
|
|
'snmp': {},
|
|
|
|
'snmp-mibs-downloader': {},
|
|
|
|
},
|
|
|
|
},
|
2021-04-24 07:12:25 +00:00
|
|
|
'interfaces': {
|
|
|
|
'eth0': {
|
|
|
|
'ips': {
|
|
|
|
'116.203.84.44',
|
|
|
|
'2a01:4f8:c0c:8d56::1/64',
|
|
|
|
},
|
|
|
|
'gateway4': '172.31.1.1',
|
|
|
|
'gateway6': 'fe80::1',
|
|
|
|
},
|
|
|
|
'ens10': {
|
|
|
|
'ips': {
|
|
|
|
'172.19.137.6/32',
|
|
|
|
},
|
|
|
|
'routes': {
|
|
|
|
# VPN
|
2024-02-25 18:14:13 +00:00
|
|
|
'172.19.128.0/20': {
|
2021-04-24 07:12:25 +00:00
|
|
|
'via': '172.19.137.1',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-05-02 08:44:50 +00:00
|
|
|
'grafana': {
|
|
|
|
'domain': 'grafana.kunsmann.eu',
|
2021-05-14 10:27:58 +00:00
|
|
|
'login_max_duration': '30d',
|
2021-05-02 08:44:50 +00:00
|
|
|
},
|
2021-05-02 08:52:03 +00:00
|
|
|
'icinga_options': {
|
2023-05-21 04:59:34 +00:00
|
|
|
# no public access
|
|
|
|
'show_on_statuspage': False,
|
2021-05-02 08:52:03 +00:00
|
|
|
},
|
2021-04-24 08:35:41 +00:00
|
|
|
'nginx': {
|
|
|
|
'vhosts': {
|
|
|
|
'influxdb': {
|
|
|
|
'domain': 'influxdb.kunsmann.eu',
|
2021-07-04 17:27:12 +00:00
|
|
|
'locations': {
|
2021-04-24 08:35:41 +00:00
|
|
|
'/': {
|
|
|
|
'target': 'http://localhost:8086',
|
|
|
|
'websockets': True,
|
|
|
|
},
|
2022-08-19 05:26:01 +00:00
|
|
|
'/debug': {
|
|
|
|
'return': 403,
|
|
|
|
},
|
2022-10-02 09:05:16 +00:00
|
|
|
'/metrics': {
|
|
|
|
'return': 403,
|
|
|
|
},
|
2021-04-24 08:35:41 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-01-23 08:30:13 +00:00
|
|
|
'telegraf_airgradient': {
|
|
|
|
'Home': vault.decrypt('encrypt$gAAAAABlr3KvHLSHLFwVr5hvJ1j676Flm5fVLumqpBcffjYWXjPjSovDXCyEcVqhxfsX-GNut2dXsenFQoFShaAugLV_zVQYaLnNQipbZqI0cXfsMht1iZPyOxlSzy3YoZ3voSaeiLll'),
|
|
|
|
},
|
2022-12-11 16:42:59 +00:00
|
|
|
'telegraf': {
|
|
|
|
'input_plugins': {
|
|
|
|
'builtin': {
|
|
|
|
'snmp': [
|
|
|
|
{
|
|
|
|
'agents': ['udp://172.19.138.3'],
|
|
|
|
'agent_host_tag': 'host',
|
|
|
|
'field': [
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.2.3.0', 'name': 'battery_runtime_to_empty'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.2.4.0', 'name': 'battery_capacity'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.2.5.0', 'name': 'battery_voltage', 'conversion': 'float(1)'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.2.6.0', 'name': 'battery_current', 'conversion': 'float(1)'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.3.3.1.2.1', 'name': 'input_frequency', 'conversion': 'float(1)'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.3.3.1.3.1', 'name': 'input_voltage'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.2.0', 'name': 'output_frequency', 'conversion': 'float(1)'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.4.1.2.1', 'name': 'output_voltage'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.4.1.3.1', 'name': 'output_frequency', 'conversion': 'float(1)'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.4.1.4.1', 'name': 'output_watts'},
|
|
|
|
{'oid': 'SNMPv2-SMI::mib-2.33.1.4.4.1.5.1', 'name': 'output_percent'},
|
|
|
|
],
|
|
|
|
'interval': '10s',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'agents': ['udp://172.19.138.41'],
|
|
|
|
'agent_host_tag': 'host',
|
|
|
|
'table': [{'oid': 'IF-MIB::ifTable'}],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-12-14 13:03:13 +00:00
|
|
|
#'openssh': {
|
|
|
|
# 'restrict-to': {
|
|
|
|
# 'versatel',
|
|
|
|
# },
|
|
|
|
#},
|
2021-04-24 07:12:25 +00:00
|
|
|
'vm': {
|
|
|
|
'cpu': 1,
|
|
|
|
'ram': 2,
|
|
|
|
},
|
|
|
|
'zfs': {
|
|
|
|
'pools': {
|
2021-08-17 16:09:51 +00:00
|
|
|
'tank': {
|
|
|
|
'when_creating': {
|
|
|
|
'config': [{
|
|
|
|
'devices': {'/dev/sdb'},
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
2021-04-24 07:12:25 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|