Community
Command Central
MVP Program
Monthly Mission
Blogs
Groups
Events
Media Vault
Products
Observability
Network Management
Application Management
IT Security
IT Service Management
System Management
Database Management
Content Exchange
SolarWinds Platform
Server & Application Monitor
Database Performance Analyzer
Server Configuration Monitor
Network Performance Monitor
Network Configuration Manager
SQL Sentry
Web Help Desk
Free Tools & Trials
Home
Products
Network Performance Monitor (NPM)
New Alert Engine doesnt allow internal vb script
bripage
I am using the new Orion Alert Engine and trying to create some alerts. What I am trying to do is to have the Alert Action be that Orion runs a vb script that send me and email with a dynamic body.
What I mean by a dynamic body and iformation is that I want to use the macros supported by Orion to input the Node ID and status inforation into the emails subject and body. I can get the VB script to run by telling the alert action to run an EXTERNAL VB script.
The vb script is as follows:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Alert Test
objMessage.From = "TEST1"
objMessage.To = "test@test.com"
objMessage.TextBody = "This is some sample message text."
'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP.
objMessage.Configuration.Fields.Item _
("
">schemas.microsoft.com/.../sendusing")
= 2
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("
">schemas.microsoft.com/.../smtpserver")
= "mail.test.com"
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("
">schemas.microsoft.com/.../smtpserverport")
= 25
objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
objMessage.Send
I have tried inputin the above script into the field for creating a custom INTERNAL vb script within orion. However, when I do this, I cannot click the "OK" button and save the script and what not. Also, If I put the macros that Orion supports in my External script, the information is not inported and then dynamically changed depending on the current device and status (this I expected).
What I want to know is why I cant add my script to the "run internal script" feild and save it. As well as Why couldnt I add my macros to my script once I had successfully made it an Internal VB script? I need this becuase I do not want to have to create 50gazillion scripts for each device and possible state.
Find more posts tagged with
Accepted answers
All comments
There are no accepted answers yet
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Best Of