Skip to content

Running on Ubuntu Server and Ubuntu for Raspberry Pi - Check UPS Nut Server and decide what to do about it... this is a work in progress.

Notifications You must be signed in to change notification settings

davethepear/UPS-Check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

UPS-Check

Check UPS Nut Server and decide what to do about it...

this is a work in progress!

feel free to ree, or contribute...

Usage

if the command: upsc [email protected]:3493 ups.status works, we're good. yeah, your ip address and user name may be different... does it really need to be said?

find product and vendor id by typing sudo usbreset, it will look the same as the example.

./ups.sh -v

I poorly scripted the -v so I could check the status without cron emailing me

Automation

this needs to be in root's crontab if you want the auto reset if the stale data bs shows up

sudo crontab -e
*/2 * * * * /home/user/scripts/ups.sh

your user name and directory could be different!

if you don't want to see when it restarts the driver or other stuff:

*/2 * * * * /home/user/scripts/ups.sh >/dev/null 2>&1

Requirements

  • nut
  • nut-server
  • nut-client
  • postfix for email, maybe not a necessity

About

Running on Ubuntu Server and Ubuntu for Raspberry Pi - Check UPS Nut Server and decide what to do about it... this is a work in progress.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages