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

Writing data in NPM Event log


Please, I´m looking for any way to write a data in the NPM Event log using an alert.

I have an alert that execute an external VBScript:


these execution returns a ticket number:


Is there any way to record these data in the NPM event log using an advanced alert ?


0 Kudos
4 Replies

So the way I would do this is to add a section to my script that adds a note to the alert via the SW API. Then just have an escalation that waits a minute or two and then writes the ${note} to the event log,  but depending on your goal you might not even need to event since the data you want is already in the system as an alert note

- Marc Netterfield, Github
0 Kudos

Can you tell me how invoke SWIS using a VBscript ?

0 Kudos

vbscript is before my time, I only reliably know how to use powershell

They have samples of code for several languages here

OrionSDK/Samples at master · solarwinds/OrionSDK · GitHub

- Marc Netterfield, Github
0 Kudos

Specifically this wiki article talks about the verbs relating to Alert Actions, you would be looking to invoke the appendnote verb

Alerts · solarwinds/OrionSDK Wiki · GitHub

- Marc Netterfield, Github
0 Kudos