Quantcast
Viewing all articles
Browse latest Browse all 293210

How to adjust metric values through plugin?

Hello everyone.

 

I have written an smnp-plugin, which works fine.

But some values need to be adjusted.

For example in OID table is a value which need to be divided by 10 or there is percentage number saved as "100", but Hyperic shows it as 10000.0%, because it multiplyies by 100, so I need to divide it by 100 for Hyperic.

 

This example metric looks like this in the plugin.xml:

<metric name="Battery: Capacity"
             alias="mib-2.33.1.2.4.0"
             category="AVAILABILITY"
             units="percentage"
             defaultOn="true"
             collectionType="static"/>

 

I have read the documentation and tryed to search, but could find how to use arithmetic operations on the OID values (for the Hyperic Manager, not change the OID table values).

I think this should be simple to do, maybe with template or script, but I could not find the exact syntax how to do that.

Would be thankfull if someone could help Image may be NSFW.
Clik here to view.


Viewing all articles
Browse latest Browse all 293210

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>