diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-03-03 17:02:47 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-03-03 17:02:47 +0100 |
commit | d5b16fe0827745409206fc5df0fe06d8fa293ff7 (patch) | |
tree | fbdec297937798c3e0e62f821395315017a6e146 /modules/private/monitoring/plugins | |
parent | 10dad16b8bff75321112ff7145bd958d5a6c5546 (diff) | |
download | Nix-d5b16fe0827745409206fc5df0fe06d8fa293ff7.tar.gz Nix-d5b16fe0827745409206fc5df0fe06d8fa293ff7.tar.zst Nix-d5b16fe0827745409206fc5df0fe06d8fa293ff7.zip |
Fix maison bbc website and monitoring
Diffstat (limited to 'modules/private/monitoring/plugins')
-rwxr-xr-x | modules/private/monitoring/plugins/check_maison_bbc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/private/monitoring/plugins/check_maison_bbc b/modules/private/monitoring/plugins/check_maison_bbc index 43a5817..4a2f799 100755 --- a/modules/private/monitoring/plugins/check_maison_bbc +++ b/modules/private/monitoring/plugins/check_maison_bbc | |||
@@ -6,10 +6,10 @@ | |||
6 | alert=$(date +"%F %H:%M:%S" -d "3 hours ago") | 6 | alert=$(date +"%F %H:%M:%S" -d "3 hours ago") |
7 | res=$(curl https://maison.bbc.bouya.org/stats.php) | 7 | res=$(curl https://maison.bbc.bouya.org/stats.php) |
8 | 8 | ||
9 | ignored_text="th_hr Exterieure th_hr Soufflage" | 9 | ignored_text="Exterieure Soufflage Mezzanine" |
10 | 10 | ||
11 | ignored_bat="^$" | 11 | ignored_bat="^(Temp_Nord|Exterieure|Soufflage|Mezzanine)$" |
12 | ignored="^(th_hr Exterieure|th_hr Soufflage)$" | 12 | ignored="^(th_hr Exterieure|th_hr Soufflage|th_hr Mezzanine)$" |
13 | 13 | ||
14 | missing() { | 14 | missing() { |
15 | echo "to_entries|[.[]|select(.value < \"$alert\" and .key != \"bat\" $1)|.key + \": \" + .value]|join(\" ; \")" | 15 | echo "to_entries|[.[]|select(.value < \"$alert\" and .key != \"bat\" $1)|.key + \": \" + .value]|join(\" ; \")" |