Announcement Banner

xinsong

updated

12 years ago

X

xinsong

2 Posts

0

976

February 10th, 2015 21:00

Customize notify from dynamic model

Hi Guys,

We have customized polling new OIDs with dynamic model.

Now, we get the notifies in SAM.

Our new request is customizing notify with threshold value and real attribute value. The team want to check the value directly from log console.

For instance,

instrument SNMP {

        iveCpuUtil = "1.3.6.1.4.1.12532.10"

};

        readonly instrumented attribute int iveCpuUtil;

        event HighiveCpuUtil

        "Indicates that the percentage of iveCpuUtil exceeds OverrunCpuUtilThreshold"

  = if iveCpuUtil > 0

  check (iveCpuUtil > OverrunCpuUtilThreshold);

        export HighiveCpuUtil;

I want to customize the event text from "Indicates that the percentage of iveCpuUtil exceeds OverrunCpuUtilThreshold" to "Indicates that the percentage of " + iveCpuUtil + " exceeds + " + OverrunCpuUtilThreshold

Unfortunately, the syntax is wrong.

Is there any way to make it?

Thank you.

BR

Xin