diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 35aa1982..093f7e8f 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -29,6 +29,12 @@ CHECKPOWER(){ -m|-mainsite) STYPE=mainsite;; -e|-esxi) PTYPE=esxi;; -p|-power) PTYPE=power;; + -r|-report) + unset idsCL idsBG idsST + idsCL=('') + idsBG=('') + idsST=('') + ;; esac shift 1 done @@ -563,8 +569,7 @@ Shutting down main servers" 1 } POWERLOGGER_SERVICE(){ - SENDNOTICE "TEST 2" "TESTING TESTING" & - SENDNOTICE "POWER LOGGING Service Startup" "`${PW_SCRIPT} check power -p`" & + SENDPOWER "POWER LOGGING Service Startup" & while true; do LogDataTime=`date +'%Y-%m-%d %H:%M:%S'` source ${PW_FOLDER}/defaults.inc @@ -860,7 +865,10 @@ PDUCONTROL(){ } SENDPOWER(){ - SENDNOTICE "${1}" "`${PW_SCRIPT} check power -p`" & + SENDNOTICE "TEST 2" "TESTING TESTING" & + echo -en "sending ... " + SENDNOTICE "${1}" "`${PW_SCRIPT} check power -p`" + echo done }