]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - modules/private/monitoring/plugins/check_ftp_database
Add status engine website
[perso/Immae/Config/Nix.git] / modules / private / monitoring / plugins / check_ftp_database
CommitLineData
e820134d
IB
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
a97118c4 6 echo "ftp connection OK - access to ftp is working | ftp=1;;;;"
e820134d
IB
7 exit 0
8else
a97118c4 9 echo "ftp connection CRITICAL - no access to ftp | ftp=0;;;;"
e820134d
IB
10 exit 2
11fi