cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 12

How to apply a conversion\formula to an alert ?

Jump to solution

I have created an interface alert that inform me of the following for a specific Interface:

Xmit bps    is greater than or equal to     8388608

(traffic OUT of the interface greater than 8.0 Mbps)

In the response action I have it configured to e-mail me the following:

OUT Bps: ${Outbps}

I get the following results in e-mail:

 

OUT Bps: 3.626455E+07

That works out to be 34.5 Mbps when converted

bps to Mbps Converter, Chart -- EndMemo

is there a way to do the conversion in the e-mail so I can get something like:

OUT Bps: 34.5 Mbps

maybe apply a conversion or formula?

Custom pollers not used in this case as all the information required can be provided by NPM alert variables

NPM v11.0.1

Labels (1)
1 Solution

I used to use "Change Parser" Bandwidth ("Insert Variable") in versions before 11.5.

View solution in original post

7 Replies
Level 12

‌Thnak You alex.lakustov‌, you suggestion worked

I adjusted the variable as you suggested to:

IN bps: ${Inbps as Bandwidth}

OUT bps: ${Outbps as Bandwidth}

the results:

IN bps: 2.65 M

 

OUT Bps: 1.79 M

 

 

Level 11

Just a side note from me regarding this topic in NPM 11.5

I recognized there is the possibility to do what you want with NPM 11.5 and Web Based Alert Manager,

but it seems not to be available for all alert variables...

E.g. it is possible to transform the variable "Total bps (in+out)"

but not for the related "Received bps" or "Transmit bps" variables as you can see in the screenshot.

I opened a Ticket on this....

screenshot-area-2015-04-21-190120.png

Any response on the ticket?

0 Kudos

I know you have probably solved this by now, but since I ran across this thread while searching for the same answer, I'll post it here. In 11.5 you can use the following to format for bandwidth, even when that format option doesn't appear.

*HERE IS THE ORIGINAL OUTPUT AFTER SELECTING MY VARIABLES*

Current Receive traffic in bps: ${N=SwisEntity;M=Inbps}

Maximum Received Traffic: ${N=SwisEntity;M=MaxInBpsToday}

Time of Maximum: ${N=SwisEntity;M=MaxInBpsTime}

You can add the "F=Bandwidth" statement into the variable to format for bandwidth:

Current Receive traffic in bps: ${N=SwisEntity;M=Inbps;F=Bandwidth}

Maximum Received Traffic: ${N=SwisEntity;M=MaxInBpsToday;F=Bandwidth}

Time of Maximum: ${N=SwisEntity;M=MaxInBpsTime}

Here is a snip of what the above entries would look like in the email:

pastedImage_3.png

This is awesome! Thank you.

0 Kudos

Thanks for this info, It's sad that i'm using NPM 12.1 & the option to format the result isn't available. Especially since this has been available for years in previous versions.

I used to use "Change Parser" Bandwidth ("Insert Variable") in versions before 11.5.

View solution in original post