Skip to content

Conversation

jimklimov
Copy link
Member

@jimklimov jimklimov commented Oct 2, 2025

Closes: #3105
Follows up from: #3097

Allow the ultimately executed command scripts to see the layman-text message and perhaps forward it to mail/SMS/etc.

For conformity with UPSNAME and NOTIFYTYPE, this is also passed via envvars (but is optional).

In make check-NIT-sandbox-devel the test loop now reports e.g.:

Thu Oct  2 16:10:26 UTC 2025: /home/jim/nut/clients/upssched-cmd: THIS IS A SAMPLE SCRIPT, PLEASE TAILOR IT FOR YOUR DEPLOYMENT OF NUT!
Thu Oct  2 16:10:26 UTC 2025: UPSNAME='dummy@localhost:12345'   NOTIFYTYPE='ONBATT'     NOTIFYMSG='UPS dummy@localhost:12345 on battery'        args=BATT-STATUS-1s

Also follows up with earlier changes to upssched/upsmon interaction - some fixes, many docs.

@jimklimov jimklimov added this to the 2.8.5 milestone Oct 2, 2025
@jimklimov jimklimov added enhancement upsmon upssched Questions and issues about upssched (timer helper for upsmon) labels Oct 2, 2025
@jimklimov
Copy link
Member Author

@markuswells : you are welcome to test this PR branch, see https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests about custom-building NUT for this.

@AppVeyorBot
Copy link

…ways issued at latest when shutdown handling just starts (or earlier) [networkupstools#3003, networkupstools#3110]

Signed-off-by: Jim Klimov <[email protected]>
…execution is not async in upssched

Signed-off-by: Jim Klimov <[email protected]>
…own activity on the upsmon primary system [networkupstools#3003]

Signed-off-by: Jim Klimov <[email protected]>
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@jimklimov jimklimov merged commit 70dae7b into networkupstools:master Oct 8, 2025
30 checks passed
@jimklimov jimklimov deleted the issue-3105 branch October 8, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation enhancement upsmon upssched Questions and issues about upssched (timer helper for upsmon)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How do I get the NOTIFYMSG into the upssched-cmd script from the upsmon.conf

2 participants