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