Skip to content

NOTIFYMSG not getting populated #3226

@aarnold-sd68

Description

@aarnold-sd68

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Windowsimpacts-release-2.8.4Issues reported against NUT release 2.8.4 (maybe vanilla or with minor packaging tweaks)upsmonupsschedQuestions and issues about upssched (timer helper for upsmon)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions