p.s. if anyone intrested in ups snmp, i can share it.
Can you share your snmp setting for ups?
Hi,
we are using ups from APC. Some of them have ethernet inteface, some are connected to the server via serial port.
I've modified the device_performance() function so it automatically will show the following data below the name of the device:
current load of the ups,charged capacity of batteries, time left if power goes down and ups will "die", internal temperature of ups, and if it has then an external temperature in the rack.
OIDs:
load: 1.3.6.1.4.1.318.1.1.1.4.2.3.0
charge: 1.3.6.1.4.1.318.1.1.1.2.2.1.0
time: 1.3.6.1.4.1.318.1.1.1.2.2.3.0
int. temp.: 1.3.6.1.4.1.318.1.1.1.2.2.2.0
ext temp: 1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1
functions:
ups_info()
concatenate(
if(ups_output_load() > 0, concatenate("load: ", ups_output_load() , "% "), ""),
if(ups_charge()>0, concatenate("capacity: ", ups_charge(), "% "), ""),
if(ups_output_load()>0, concatenate("time: ", ups_minutes(), " "), ""),
if(ups_temperature()>0, concatenate("int-temp: ", ups_temperature(), " °C "), ""),
if(ups_ext_temp()>0, concatenate("ext-temp: ", ups_ext_temp(), " °C"), "")
)
ups_output_load()
array(
oid("1.3.6.1.4.1.318.1.1.1.4.2.3.0")
)
ups_charge()
array(
oid("1.3.6.1.4.1.318.1.1.1.2.2.1.0")
)
ups_minutes()
array(
oid("1.3.6.1.4.1.318.1.1.1.2.2.3.0")
)
ups_temperature()
array(
oid("1.3.6.1.4.1.318.1.1.1.2.2.2.0")
)
ups_ext_temp()
array(
oid("1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1")
)
modified device_performance()
concatenate(
if(
string_size(cpu_mem_disk()) > 0,
concatenate(cpu_mem_disk(), "
"),""),
if(
string_size(sys_health()) > 0,
concatenate(sys_health(), "
"),""),
if(
string_size(ups_info()) > 0,
concatenate(ups_info(), "
"),"")
)
The sys_helath() function you can ignore, it was created for monitoring our Dell servers.
Hope that helps you!
Regards,
Gábor
Prague