Update nodemgmt-scripts.sh
This commit is contained in:
@@ -2421,11 +2421,13 @@ if [ ${action-x} ]; then
|
|||||||
backup) BACKUP;;
|
backup) BACKUP;;
|
||||||
downlist)
|
downlist)
|
||||||
if [ "${2}" = "report" ]; then
|
if [ "${2}" = "report" ]; then
|
||||||
rm -f ${FOLDER}/status-downlist.lastrun
|
if [ -f /opt/idssys/nodemgmt/*.down ]; then
|
||||||
DOWNLIST report >> ${FOLDER}/status-downlist.lastrun
|
rm -f ${FOLDER}/status-downlist.lastrun
|
||||||
STATUSLOG="$(cat ${FOLDER}/status-$downlist.lastrun)"
|
DOWNLIST report >> ${FOLDER}/status-downlist.lastrun
|
||||||
echo -e "Downlist Report\n${STATUSLOG}" | mail -s "Downlist Report" david@schroedercity.com
|
STATUSLOG="$(cat ${FOLDER}/status-$downlist.lastrun)"
|
||||||
echo -e "Downlist Report\n${STATUSLOG}" | mail -s "Downlist Report" 9208839613@mms.att.net
|
echo -e "Downlist Report\n${STATUSLOG}" | mail -s "Downlist Report" david@schroedercity.com
|
||||||
|
echo -e "Downlist Report\n${STATUSLOG}" | mail -s "Downlist Report" 9208839613@mms.att.net
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
DOWNLIST ${2}
|
DOWNLIST ${2}
|
||||||
fi;;
|
fi;;
|
||||||
|
|||||||
Reference in New Issue
Block a user