:
Use these modules to create modules for each value. Explore output (it depends on each model of UPS) with:
upsc myups@localhost
And rewrite modules as your own criteria.
Module data
module_begin module_name UPS Online module_type generic_proc module_exec upsc myups@localhost | grep "ups.status" | grep "OL" | wc -l module_end
module_begin module_name UPS Load module_type generic_data module_exec upsc myups@localhost | grep "ups.load" | awk '{ print $2 }' module_end
module_begin module_name UPS Input_Voltage module_type generic_data module_exec upsc myups@localhost | grep "input.voltage.nominal" | awk '{ print $2 }' module_end
module_begin module_name UPS Output_Voltage module_type generic_data module_exec upsc myups@localhost | grep "output.voltage" | awk '{ print $2 }' module_end
(Visited 297 times, 1 visits today)