apcups

Module for apcupsd.

Requires apcaccess in $PATH.

saltext.apcups.modules.apcups.status()[source]

Return apcaccess output

CLI Example:

salt '*' apcups.status
saltext.apcups.modules.apcups.status_load()[source]

Return load

CLI Example:

salt '*' apcups.status_load
saltext.apcups.modules.apcups.status_charge()[source]

Return battery charge

CLI Example:

salt '*' apcups.status_charge
saltext.apcups.modules.apcups.status_battery()[source]

Return true if running on battery power

CLI Example:

salt '*' apcups.status_battery