Differences

This shows you the differences between two versions of the page.

inbox:software.nut [2013/05/11 16:19]
inbox:software.nut [2013/12/07 14:35] (current)
Line 5: Line 5:
NUT can be installed from trunk, as of writing this page, the Attitude Adjustment (12.09) does not contain nut packages. NUT can be installed from trunk, as of writing this page, the Attitude Adjustment (12.09) does not contain nut packages.
-There's problem with some USB UPSes (e.g. EATON) that are not recognized by usbhid-ups. This is apparently a bug in libusb-compat, since libusb (0.1.4), since libusb (0.1.12) can recognize them.+There's problem with some USB UPSes (e.g. EATON) that are not recognized by usbhid-ups. This is apparently a bug in libusb-compat, since libusb (0.1.4) can recognize them.
You can work around this by installing Attitude Adjustment, manually installing packages __libusb-compat__ and **nut-driver-usbhid-ups**, then manualy remove __libusb-compat__ and install **libusb** istead (packages in trunk may break on having manually installed libusb) You can work around this by installing Attitude Adjustment, manually installing packages __libusb-compat__ and **nut-driver-usbhid-ups**, then manualy remove __libusb-compat__ and install **libusb** istead (packages in trunk may break on having manually installed libusb)
Line 32: Line 32:
You may want to change options according to the type of UPS you have and options you want to use. You may want to change options according to the type of UPS you have and options you want to use.
-{{tag>wip}}+ 
 +==== Configuring upsmon ==== 
 +After you installed and configured NUT, you may want to setup your router for monitoring UPS. 
 +You need to install __nut-monitor__ package and add your config to **/etc/config/upsmon** 
 + 
 +Sample upsmon config 
 +<code>config upsmon 
 +        option 'notifycmd' '/etc/nut/notify.sh' 
 +        option 'onlinemsg' 'UPS %s on line power' 
 +        option 'onbattmsg' 'UPS %s on battery' 
 +        option 'lowbattmsg' 'UPS %s battery is low' 
 +        option 'fsdmsg' 'UPS %s: forced shutdown in progress' 
 +        option 'commokmsg' 'Communications with UPS %s established' 
 +        option 'commbadmsg' 'Communications with UPS %s lost' 
 +        option 'shutdownmsg' 'Auto logout and shutdown proceeding' 
 +        option 'replbattmsg' 'UPS %s battery needs to be replaced' 
 +        option 'nocommmsg' 'UPS %s is unavailable' 
 +        option 'noparentmsg' 'upsmon parent process died - shutdown impossible' 
 +        option 'onlinenotify' 'EXEC+SYSLOG' 
 +        option 'onbattnotify' 'EXEC+SYSLOG' 
 +        option 'lowbattnotify' 'EXEC+SYSLOG' 
 +        option 'fsdnotify' 'EXEC+SYSLOG' 
 +        option 'commoknotify' 'EXEC+SYSLOG' 
 +        option 'commbadnotify' 'EXEC+SYSLOG' 
 +        option 'shutdownnotify' 'EXEC+SYSLOG' 
 +        option 'replbattnotify' 'EXEC+SYSLOG' 
 +        option 'nocommnotify' 'EXEC+SYSLOG' 
 +        option 'noparentnotify' 'EXEC+SYSLOG' 
 +config master 
 +        option 'upsname' 'UPS' 
 +        option 'user' 'guest' 
 +        option 'password' 'guest' 
 +</code> 
 + 
 +Upsmon will send to __notifycmd__ script some environment strings: 
 +<code> 
 +$UPSNAME - will contain the name of UPS specified in /etc/config/ups 
 +$NOTIFYTYPE - will contain the type string of whatever caused this event to happen. 
 +</code> 

Back to top

inbox/software.nut.1368289153.txt.bz2 · Last modified: 2013/05/11 16:19 (external edit)