Monitor iLO using SNMP #89

Merged
erdnaxe merged 8 commits from prometheus_ilo into master 2021-12-31 18:40:20 +01:00
Showing only changes of commit bc4dc03029 - Show all commits

View file

@ -66,21 +66,21 @@
# We don't need to restart Prometheus when updating nodes # We don't need to restart Prometheus when updating nodes
- name: Configure Prometheus nodes - name: Configure Prometheus nodes
copy: copy:
content: "{{ prometheus_targets | to_nice_json }}" content: "{{ prometheus_targets | to_nice_json }}\n"
dest: /etc/prometheus/targets.json dest: /etc/prometheus/targets.json
mode: 0644 mode: 0644
# We don't need to restart Prometheus when updating nodes # We don't need to restart Prometheus when updating nodes
- name: Configure Prometheus Ubiquity Unifi SNMP devices - name: Configure Prometheus Ubiquity Unifi SNMP devices
copy: copy:
content: "{{ prometheus_unifi_snmp_targets | to_nice_json }}" content: "{{ prometheus_unifi_snmp_targets | to_nice_json }}\n"
dest: /etc/prometheus/targets_unifi_snmp.json dest: /etc/prometheus/targets_unifi_snmp.json
mode: 0644 mode: 0644
when: prometheus_unifi_snmp_targets is defined when: prometheus_unifi_snmp_targets is defined
- name: Configure Prometheus Switchs - name: Configure Prometheus Switchs
copy: copy:
content: "{{ prometheus_switch_snmp_targets | to_nice_json }}" content: "{{ prometheus_switch_snmp_targets | to_nice_json }}\n"
dest: /etc/prometheus/targets_switch_snmp.json dest: /etc/prometheus/targets_switch_snmp.json
mode: 0644 mode: 0644
when: prometheus_switch_snmp_targets is defined when: prometheus_switch_snmp_targets is defined