aboutsummaryrefslogtreecommitdiff
path: root/modules/private/monitoring/plugins
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-03-03 17:02:47 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-03-03 17:02:47 +0100
commitd5b16fe0827745409206fc5df0fe06d8fa293ff7 (patch)
treefbdec297937798c3e0e62f821395315017a6e146 /modules/private/monitoring/plugins
parent10dad16b8bff75321112ff7145bd958d5a6c5546 (diff)
downloadNix-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-xmodules/private/monitoring/plugins/check_maison_bbc6
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 @@
6alert=$(date +"%F %H:%M:%S" -d "3 hours ago") 6alert=$(date +"%F %H:%M:%S" -d "3 hours ago")
7res=$(curl https://maison.bbc.bouya.org/stats.php) 7res=$(curl https://maison.bbc.bouya.org/stats.php)
8 8
9ignored_text="th_hr Exterieure th_hr Soufflage" 9ignored_text="Exterieure Soufflage Mezzanine"
10 10
11ignored_bat="^$" 11ignored_bat="^(Temp_Nord|Exterieure|Soufflage|Mezzanine)$"
12ignored="^(th_hr Exterieure|th_hr Soufflage)$" 12ignored="^(th_hr Exterieure|th_hr Soufflage|th_hr Mezzanine)$"
13 13
14missing() { 14missing() {
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(\" ; \")"