1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...
:

Use these modules to create modules for each value. Explore output (it depends on each model of UPS) with:

upsc [email protected]

And rewrite modules as your own criteria.

Module data

module_begin 
module_name UPS Online 
module_type generic_proc 
module_exec upsc [email protected] | grep "ups.status" | grep "OL" | wc -l 
module_end
module_begin 
module_name UPS Load 
module_type generic_data 
module_exec upsc [email protected] | grep "ups.load" | awk '{ print $2 }' 
module_end
module_begin 
module_name UPS Input_Voltage 
module_type generic_data 
module_exec upsc [email protected] | grep "input.voltage.nominal" | awk '{ print $2 }' 
module_end
module_begin 
module_name UPS Output_Voltage 
module_type generic_data 
module_exec upsc [email protected] | grep "output.voltage" | awk '{ print $2 }' 
module_end
(Visited 79 times, 1 visits today)