Network Management
How to round up percentage to whole numbers in a volume alert message in NPM
By default, the variable returning volume percent used returns five decimal places. To round the percent usage of a volume, use the variable in the newer format and add the % character.
First published date
Last published date
Overview
Product section
Resolution
- On the Orion Web Console, click Alerts&Activity > Alerts, and then click Manage Alerts in the upper right corner of the screen.
- Select the alert, click Edit Alert, and go to the Trigger Actions tab. See Define what happens when an alert is triggered in the Orion Platform.
-
Click Edit the alert action and expand the Message section.
-
Replace the variable for volume percent used ${VolumePercentUsed} with its newer format: ${N=SwisEntity;M=VolumePercentUsed;F=Bytes} %