[Nut-upsuser] Email Alerts for Multiple UPSs with upssched
    Mike 
    the.lists at mgm51.com
       
    Wed Nov  1 16:26:05 UTC 2017
    
    
  
On 11/1/2017 11:34 AM, Garrett Michael Hayes wrote:
> This was the secret sauce!  I first modified my BASH script to stuff the output of the 'set' command into a variable, then passed that variable in to my email command.  Then I triggered an event and saw what variables were there in the body of the message.
> 
> Voila!
> 
> $UPSNAME and $NOTIFYTYPE were there and available.  I modified the script to pump THOSE into the mail command, and the problem is (at least partially) solved.
> 
> The next challenge is going to be sorting out which UPS is being seen on which USB port.
Via upsc, NUT makes available
ups.mfr
ups.model
ups.serial
So just query, using upsc, each of the UPS names you put into ups.conf,
and match up serial numbers (physical attribute) to UPS name (NUT
attribute).
    
    
More information about the Nut-upsuser
mailing list