diff options
Diffstat (limited to 'modules/private/monitoring/plugins/check_ftp_database')
-rwxr-xr-x | modules/private/monitoring/plugins/check_ftp_database | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/modules/private/monitoring/plugins/check_ftp_database b/modules/private/monitoring/plugins/check_ftp_database deleted file mode 100755 index f9cf579..0000000 --- a/modules/private/monitoring/plugins/check_ftp_database +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | OUT=$(echo "ls" | lftp -u test_ftp,test_ftp eldiron.immae.eu | grep it_works | wc -l) | ||
4 | |||
5 | if [ "$OUT" -eq 1 ]; then | ||
6 | echo "ftp connection OK - access to ftp is working | ftp=1;;;;" | ||
7 | exit 0 | ||
8 | else | ||
9 | echo "ftp connection CRITICAL - no access to ftp | ftp=0;;;;" | ||
10 | exit 2 | ||
11 | fi | ||