X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fmonitoring%2Fplugins%2Fcheck_ftp_database;h=f9cf5793225e20ba4b30183ac1d2cb03a6a0e4aa;hp=9a414246b3fbaa48ad9ff532e7c106aff538ee3e;hb=a97118c489a59d723538292214efaa10dfcb96df;hpb=b1b8a5623d22a7ee4301afe4e7b9d368ef7ded8f diff --git a/modules/private/monitoring/plugins/check_ftp_database b/modules/private/monitoring/plugins/check_ftp_database index 9a41424..f9cf579 100755 --- a/modules/private/monitoring/plugins/check_ftp_database +++ b/modules/private/monitoring/plugins/check_ftp_database @@ -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