Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20490

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

$
0
0

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 20490

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>