create a script for polling APC UPS info via apcupsd

create a script for polling APC UPS info via apcupsd

Hi,

I need to poll information from a server running apcupsd which monitors serveral APC UPSes.
It's a linux server and on the local CLI (apcupsd is running on) I get the information by 
apcaccess -p BCHARGE
the CLI output is e.g.: "100.0 Percent"

remotely from another computer I use:
apcaccess -h 192.168.1.231 -p BCHARGE

How do I convert this command into a OpManager script monitor?

And shall I execute this script from the local server or monitored machine?

Best
                New to ADManager Plus?

                  New to ADSelfService Plus?