replaced by GENERIC_ZFSPOOL_USAGE_CHECK.sh

This commit is contained in:
Martin Berghaus
2025-03-26 16:15:26 +01:00
parent 8f3c21e486
commit c15723b499

View File

@@ -1,13 +0,0 @@
#!/bin/bash
SERVER="${1:?"FQDN of server missing"}"
FILE="pool-size.txt"
# --connect-timeout SECONDS Maximum time allowed for connection
# -k Allow connections to SSL sites without certs (H)
# -L Follow redirects (H)
# --max-time SECONDS Maximum time allowed for the transfer
# -s Silent mode. Don't output anything
# -f Fail fast with no output on HTTP errors (otherwise no exit-code > 0 on 404)
RESULT="$(curl --connect-timeout 10 --max-time 10 -k -s -f https://$SERVER/monitoring/$FILE || echo WARN#404 on $FILE check HTTPS)"
echo $RESULT