Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
#/bin/bash
STATE=$(mysql -D zm -s -N -e "SELECT Function FROM Monitors WHERE Id=1;")

if [[ $STATE -eq "Modect"  ]] ;
    then
    echo "Monitor 1 is already in state Modect"
    else 
    echo "Monitor 1 is not in Modect state"
fi
  • No labels