Hello,

not sure if it is a scripting problem or an owner/group problem but when I try to send an email following en event using upssched-cmd, the script exits on the line where I send the email with this message in syslog :

Mar 19 20:49:51 chaudron-nautique upssched[1377]: exec_cmd(/path/upssched-cmd onbatt1) returned 78

The log messages prior to the email (logger -t upssched-cmd message) can be found in syslog thus I'm sure that upssched-cmd is called when the event occurs and if I run ~#./upssched-cmd onbatt1as root, the mail is sent properly.

I tried a few things regarding privileges on nut/mail/msmtp but could not make it work.

If someone knows what I need to do, I'd be happy !

Cdly,

Mathieu


OS : debian buster (10.3)

Package to send the email : msmtp 1.8.3-1 amd64

Nut : nut/stable 2.7.4-8

Installed under root, via apt install nut

Ups : APC BE700G-FR (ES serie)



--
_______________________________________________
Nut-upsuser mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to