I have a ups connected to a Linux server with a usb cable, i installed apcupsd demon and i was wondering how to instruct it to run a shell script i created when a special condition occurs?
i.e. the battery is 25% percent or the time left is 10 minutes so this condition can run the script?