Path : /proc/2/root/proc/2/root/var/lib/zabbix/ |
Current File : //proc/2/root/proc/2/root/var/lib/zabbix/fstab_mount.sh |
#!/bin/bash serviceName="fstab_mounts" fstabHomes=$(awk '$2 ~ /\/home|mysql/ && $1 !~ /^#/ {print $2}' /etc/fstab | sort) if [ ! -z "$fstabHomes" ]; then while read -r mntPoint; do if ! mountpoint -q $mntPoint; then list+="$mntPoint " fi done <<< "$fstabHomes" fi if [ ! -z "$list" ]; then echo "ERROR: $list not mounted" else echo "OK: $fstabHomes mounted" |tr '\n' ' ' fi