Update dsmon.sh
This commit is contained in:
1
dsmon.sh
1
dsmon.sh
@@ -112,6 +112,7 @@ CHECK(){
|
|||||||
echo -en "${idsCL[LightCyan]}${MSG}${spc}: "
|
echo -en "${idsCL[LightCyan]}${MSG}${spc}: "
|
||||||
fi
|
fi
|
||||||
if [ -n "${1}" ] && [ "${1}" != "report" ]; then
|
if [ -n "${1}" ] && [ "${1}" != "report" ]; then
|
||||||
|
echo "SELECT id,host,ip,limits FROM servermonitor.hosts WHERE disabled=0 AND (host LIKE '%${1}' OR ip LIKE '%${1}')"
|
||||||
while read hostid hostname hostip hostlimits; do
|
while read hostid hostname hostip hostlimits; do
|
||||||
if [ "$hostid" != "id" ]; then
|
if [ "$hostid" != "id" ]; then
|
||||||
hostip=$(echo $hostip | cut -d ";" -f1)
|
hostip=$(echo $hostip | cut -d ";" -f1)
|
||||||
|
|||||||
Reference in New Issue
Block a user