check_snmp returned data conversion?
Posted: Tue Dec 17, 2013 3:42 pm
I have been searching for an easier way to converts returned data units (such as seconds to minutes, time ticks to minutes, milliamps to amps, etc.) than rewriting the plugin scripts (I AM NOT a developer). Modifying a script for each instance I need the data formatted seems like a kludge.
Examples:
1. MIB's for our UPS's return 'output in watts' in milliwatts, our current homegrown solution just does $VAL/1000 to show correct units.
2. Some temp probes are returns in Celsius, and we use Fahrenheit, so we currently use $VAL*1.8+32
3. MIB's for our UPS's return time in timeticks, and must be divided by 6000 ($VAL/6000)
I'm not the only one who has had this problem, but I cannot find solutions beyond rewriting the plugin scripts. I'm surprised there is nothing in CCM to make this easier.
Has anyone found a solution for returned data conversion that IS NOT modifying the plugin scripts?
Any assistance would be most appreciated.
Thanks,
tippy
Examples:
1. MIB's for our UPS's return 'output in watts' in milliwatts, our current homegrown solution just does $VAL/1000 to show correct units.
2. Some temp probes are returns in Celsius, and we use Fahrenheit, so we currently use $VAL*1.8+32
3. MIB's for our UPS's return time in timeticks, and must be divided by 6000 ($VAL/6000)
I'm not the only one who has had this problem, but I cannot find solutions beyond rewriting the plugin scripts. I'm surprised there is nothing in CCM to make this easier.
Has anyone found a solution for returned data conversion that IS NOT modifying the plugin scripts?
Any assistance would be most appreciated.
Thanks,
tippy