Quantcast
Viewing all articles
Browse latest Browse all 21093

Re: How do you monitor file shares without the out of the box templates?

If interested, the same thing aLTeReGo did for Windows–based systems would look like this for Unix–like systems (I chose ksh over bash 'cause it's usually on most UNIX and Linux systems).

#!/bin/ksh
share=/mnt/nfs/billing/feb
if [ -d $share ]; then  echo "Statistic.0: 0"  echo "Message.0: Share $share exists"  exit 0
fi
echo "Statistic.1: 1"
echo "Message.1: Share $share does not exist"
exit 0

Viewing all articles
Browse latest Browse all 21093

Trending Articles