I created a custom poller to get the memory of a device. I have to transform the result. Therefore I want to set the a string (e.g. the unit --> MB) at the end of the formatted result.
How can I add a string?
You will need to edit the Custom Poller as xml.
For example; I added the unit 'Watts' to this CustomPoller that multiplies the busVoltage and busCurrent together to calculate power. You cannot do this from the UnDP interface.
<?xml version="1.0" encoding="utf-8"?><CustomPollers version="9.0"> <CustomPoller UniqueName="busPower" Description="Bus Power (Watts)" OID="1.3.6.1.4.1.39145.10.10.1.3" MIB="" SNMPGetType="GetSubTree" NetObjectPrefix="N" GroupName="ict_distribution_series_mib" PollerType="F" Parser="None" IncludeHistory="True" Unit="Watts" TimeUnitId="0" TimeUnitQuantity="0" DefaultDisplayTimeUnitId="0" Formula="{busVoltage}*{busCurrent}" LabelType="SameTable" LabelDetail="1.3.6.1.4.1.39145.10.10.1.2"> <Enumerations /> </CustomPoller></CustomPollers>
Only the first letter of units shows up in tables. I'm not sure why; but here is what I got in the end.