NAS: Pre-processing - Lua: Appending the Hub name to an alarm message

book

Article ID: 34945

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

Introduction:

How to append the name of the hub that is closest to the robot that generates an alarm?

 

Background:    

This information allows easy identification of which hub/client an alarm has been generated from.

 

Instructions: 

In the NAS probe, open the configuration and select the preprocessing tab.

Within this section select the scripts tab.

Right click and create a new script. Add the following to to a new script:

event.message = event.hub..": "..event.message

return event

 

This will append the name of the nearest hub to the robot to the front of the alarm message.

Then create a preprocessing rule that selects all alarms as they enter the NAS.

This could simply be all alarms or a more complex filter selecting specific probes, robots or a combination.

Environment

Release: CNMSPP99000-7.6-Unified Infrastructure Mgmt-Server Pack-- On Prem
Component: