]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/monitoring/plugins/check_ftp_database
Add status engine website
[perso/Immae/Config/Nix.git] / modules / private / monitoring / plugins / check_ftp_database
index 9a414246b3fbaa48ad9ff532e7c106aff538ee3e..f9cf5793225e20ba4b30183ac1d2cb03a6a0e4aa 100755 (executable)
@@ -3,9 +3,9 @@
 OUT=$(echo "ls" | lftp -u test_ftp,test_ftp eldiron.immae.eu | grep it_works | wc -l)
 
 if [ "$OUT" -eq 1 ]; then
-  echo "ftp connection OK - access to ftp is working"
+  echo "ftp connection OK - access to ftp is working | ftp=1;;;;"
   exit 0
 else
-  echo "ftp connection CRITICAL - no access to ftp"
+  echo "ftp connection CRITICAL - no access to ftp | ftp=0;;;;"
   exit 2
 fi