add_borne_and_correcting_monitoring #15
3 changed files with 31 additions and 12 deletions
1
hosts
1
hosts
|
@ -267,6 +267,7 @@ ep-1-3.borne.auro.re
|
||||||
ep-1-2.borne.auro.re
|
ep-1-2.borne.auro.re
|
||||||
ep-0-1.borne.auro.re
|
ep-0-1.borne.auro.re
|
||||||
eo-2-1.borne.auro.re
|
eo-2-1.borne.auro.re
|
||||||
|
ee-2-1.borne.auro.re
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# George Sand
|
# George Sand
|
||||||
|
|
|
@ -22,7 +22,7 @@ groups:
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
summary: "Mémoire libre de {{ $labels.instance }} à {{ $value | printf "%.2f" }}%."
|
summary: "Mémoire libre de {{ $labels.instance }} à {{ humanize $value }}%."
|
||||||
|
|
||||||
# Alert for out of disk space
|
# Alert for out of disk space
|
||||||
- alert: OutOfDiskSpace
|
- alert: OutOfDiskSpace
|
||||||
|
@ -31,7 +31,7 @@ groups:
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
summary: "Espace libre de {{ $labels.mountpoint }} sur {{ $labels.instance }} à {{ $value | printf "%.2f" }}%."
|
summary: "Espace libre de {{ $labels.mountpoint }} sur {{ $labels.instance }} à {{ humanize $value }}%."
|
||||||
|
|
||||||
# Alert for out of inode space on disk
|
# Alert for out of inode space on disk
|
||||||
- alert: OutOfInodes
|
- alert: OutOfInodes
|
||||||
|
@ -49,7 +49,7 @@ groups:
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
summary: "CPU sur {{ $labels.instance }} à {{ $value | printf "%.2f" }}%."
|
summary: "CPU sur {{ $labels.instance }} à {{ humanize $value }}%."
|
||||||
|
|
||||||
# Check systemd unit (> buster)
|
# Check systemd unit (> buster)
|
||||||
- alert: SystemdServiceFailed
|
- alert: SystemdServiceFailed
|
||||||
|
@ -63,7 +63,7 @@ groups:
|
||||||
# Check UPS
|
# Check UPS
|
||||||
- alert: UpsOutputSourceChanged
|
- alert: UpsOutputSourceChanged
|
||||||
expr: upsOutputSource != 3
|
expr: upsOutputSource != 3
|
||||||
for: 5m
|
for: 1m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -71,7 +71,7 @@ groups:
|
||||||
|
|
||||||
- alert: UpsBatteryStatusWarning
|
- alert: UpsBatteryStatusWarning
|
||||||
expr: upsBatteryStatus == 3
|
expr: upsBatteryStatus == 3
|
||||||
for: 5m
|
for: 2m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -79,7 +79,7 @@ groups:
|
||||||
|
|
||||||
- alert: UpsBatteryStatusCritical
|
- alert: UpsBatteryStatusCritical
|
||||||
expr: upsBatteryStatus == 4
|
expr: upsBatteryStatus == 4
|
||||||
for: 5m
|
for: 10m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -95,7 +95,7 @@ groups:
|
||||||
|
|
||||||
- alert: UpsWrongInputVoltage
|
- alert: UpsWrongInputVoltage
|
||||||
expr: (upsInputVoltage < 210) or (upsInputVoltage > 250)
|
expr: (upsInputVoltage < 210) or (upsInputVoltage > 250)
|
||||||
for: 5m
|
for: 10m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -103,7 +103,7 @@ groups:
|
||||||
|
|
||||||
- alert: UpsWrongOutputVoltage
|
- alert: UpsWrongOutputVoltage
|
||||||
expr: (upsOutputVoltage < 220) or (upsOutputVoltage > 240)
|
expr: (upsOutputVoltage < 220) or (upsOutputVoltage > 240)
|
||||||
for: 5m
|
for: 10m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -111,7 +111,7 @@ groups:
|
||||||
|
|
||||||
- alert: UpsTimeRemainingWarning
|
- alert: UpsTimeRemainingWarning
|
||||||
expr: upsEstimatedMinutesRemaining < 15
|
expr: upsEstimatedMinutesRemaining < 15
|
||||||
for: 5m
|
for: 1m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -119,7 +119,7 @@ groups:
|
||||||
|
|
||||||
- alert: UpsTimeRemainingCritical
|
- alert: UpsTimeRemainingCritical
|
||||||
expr: upsEstimatedMinutesRemaining < 5
|
expr: upsEstimatedMinutesRemaining < 5
|
||||||
for: 5m
|
for: 1m
|
||||||
labels:
|
labels:
|
||||||
severity: critical
|
severity: critical
|
||||||
annotations:
|
annotations:
|
||||||
|
|
|
@ -162,13 +162,31 @@ ubiquiti_unifi:
|
||||||
indexes:
|
indexes:
|
||||||
- labelname: unifiVapIndex
|
- labelname: unifiVapIndex
|
||||||
type: gauge
|
type: gauge
|
||||||
- name: unifiVapNumStations
|
- name: unifi_vap_num_stations
|
||||||
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.8
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.8
|
||||||
type: gauge
|
type: gauge
|
||||||
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.8'
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.8'
|
||||||
indexes:
|
indexes:
|
||||||
- labelname: unifiVapIndex
|
- labelname: unifi_vap_index
|
||||||
type: gauge
|
type: gauge
|
||||||
|
lookups:
|
||||||
|
- labels: [unifi_vap_index]
|
||||||
|
labelname: unifi_vap_essid
|
||||||
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.6
|
||||||
|
type: DisplayString
|
||||||
|
- labels: [unifi_vap_index]
|
||||||
|
labelname: unifi_vap_radio
|
||||||
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.9
|
||||||
|
type: DisplayString
|
||||||
|
- labels: []
|
||||||
|
labelname: unifi_vap_index
|
||||||
|
# - name: unifiVapNumStations
|
||||||
|
# oid: 1.3.6.1.4.1.41112.1.6.1.2.1.8
|
||||||
|
# type: gauge
|
||||||
|
# help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.8'
|
||||||
|
# indexes:
|
||||||
|
# - labelname: unifiVapIndex
|
||||||
|
# type: gauge
|
||||||
- name: unifiVapRadio
|
- name: unifiVapRadio
|
||||||
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.9
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.9
|
||||||
type: DisplayString
|
type: DisplayString
|
||||||
|
|
Loading…
Reference in a new issue