-
-
Notifications
You must be signed in to change notification settings - Fork 417
Description
Not sure what I'm missing here but the NOTIFYMSG environment variable doesn't appear to be getting populated on windows. I have uncommented NOTIFYMSG, a bunch including NOCOMM which is what I'm using to test. I'm using upssched with a timer which is working, and I'm writing to a file. The file is being populated with %UPSNAME% and %Notifytype% and %1 all get populated, but for some reason %NOTIFYMSG% is not. The documentation unless I'm missing something says it should have :"UPS %s is unavailable". I've copied part of my upsmon.conf showing what's uncommented.
here is the logging entry : echo Start Message %UPSNAME% - %NOTIFYTYPE% - %NOTIFYMSG% - Error : %1 >> "C:\mingw64\logging\info.txt"
output : Start Message <UPSNAME@IP removed for security :D > - NOCOMM - - Error : commbad
NOTIFYMSG ONLINE "UPS %s on line power"
NOTIFYMSG ONBATT "UPS %s on battery"
NOTIFYMSG LOWBATT "UPS %s battery is low"
NOTIFYMSG FSD "UPS %s: forced shutdown in progress"
NOTIFYMSG COMMOK "Communications with UPS %s established"
NOTIFYMSG COMMBAD "Communications with UPS %s lost"
NOTIFYMSG SHUTDOWN "Auto logout and shutdown proceeding"
NOTIFYMSG SHUTDOWN_HOSTSYNC "Shutdown initiated; primary system is waiting for secondaries to log out or time out"
NOTIFYMSG REPLBATT "UPS %s battery needs to be replaced"
NOTIFYMSG NOCOMM "UPS %s is unavailable"