[ SEA-GHOST MINI SHELL]

Path : /proc/2/root/var/lib/zabbix/
FILE UPLOADER :
Current File : //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

SEA-GHOST - SHELL CODING BY SEA-GHOST