David White
2019-Jul-20 00:37 UTC
[Nut-upsuser] Another New User Question - Notify Script Not Running
Roger, Thanks for the idea to add additional items to the notifyflag. That proved the monitor was indeed working as expected and led me to find that my script had myriad issues when run under the nut user. All remedied now. As I progress, I may well end up migrating to the upssched. As a newbie I was simply following the documented "simple" way described here <https://networkupstools.org/docs/user-manual.chunked/ar01s07.html>. Thanks to all! On 7/18/2019 3:38 PM, Roger Price wrote:> On Thu, 18 Jul 2019, David White wrote: > >> NOTIFYCMD? /home/android/nutShutdown.sh >> NOTIFYMSG? ONBATT? "USP %s on battery" >> NOTIFYFLAG? ONBATT? EXEC > > Perhaps before plunging into upsmon debugging, and debugging your own > custom NOTIFYCMD script, you could get the basic notifications of upsmon > working using more complete NOTIFYFLAG and NOTIFYMSG declarations > covering all situations. You will then have a clearer view in the log of > what is happening. Why don't you have the SYSLOG option on the > NOTIFYFLAG ONBATT declaration? > > Can you call the nutShutdown.sh script from the command line as the user > running upsmon? > > If you need a custom Shutdown Plan, then why not use upssched? > > I would also suggest increasing the log output of your script to > identify and present more clearly what is happening in the script, for > example by including the UPS status and charge. This will help you debug > the script. > > Roger > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
Larry Fahnoe
2019-Jul-20 11:17 UTC
[Nut-upsuser] Another New User Question - Notify Script Not Running
On Fri, Jul 19, 2019 at 7:37 PM David White <whitedavidp at yahoo.com> wrote:> As a newbie > I was simply following the documented "simple" way described here > <https://networkupstools.org/docs/user-manual.chunked/ar01s07.html>In addition to the NUT documentation above, you may also profit from the excellent work Roger Price has put into documenting many NUT configuration examples: http://rogerprice.org/NUT/ --Larry -- Larry Fahnoe, Fahnoe Technology Consulting, fahnoe at FahnoeTech.com Minneapolis, Minnesota www.FahnoeTech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20190720/d8d3cbcb/attachment.html>
David White
2019-Jul-21 22:42 UTC
[Nut-upsuser] Another New User Question - Notify Script Not Running
You are correct. Roger's work is amazingly good. Wow! Thanks On 7/20/2019 4:17 AM, Larry Fahnoe wrote:> On Fri, Jul 19, 2019 at 7:37 PM David White <whitedavidp at yahoo.com > <mailto:whitedavidp at yahoo.com>> wrote: > > As a newbie > I was simply following the documented "simple" way described here > <https://networkupstools.org/docs/user-manual.chunked/ar01s07.html> > > > In addition to the NUT documentation above, you may also profit from the > excellent work Roger Price has put into documenting many NUT > configuration examples: http://rogerprice.org/NUT/ > > --Larry > > -- > Larry Fahnoe, Fahnoe Technology Consulting, fahnoe at FahnoeTech.com > Minneapolis, Minnesota www.FahnoeTech.com > <http://www.FahnoeTech.com>
Possibly Parallel Threads
- Another New User Question - Notify Script Not Running
- [POSSIBLE FRAUD] Re: [EXTERNAL] Re: Help with Tripp Lite Internet600U
- Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
- Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
- Compaq R3000h support