Server Management - Systems Insight Manager
1834587 Members
3407 Online
110069 Solutions
New Discussion

Notification Parsing

 
Tim McGue
Regular Advisor

Notification Parsing

With the event notification functionality of HP SIM, I found myself wanting a few extra things that was not provided out of the box. That is the intention of this vbscript. This script does the following:
1) Reads the NOTICEPLAINTEXT variable from HP SIM.
2) Breaks down the individual components of that variable.
3) Checks if the event is a "system unreachable" event. If it is it does the following:
a) Pings the machine once every 30 seconds for 6 times in a row (this is configurable).
b) If the machine responds any of those times a flag is set so no specified alert is sent (indicating it was a false alarm notification usually around a reboot).
c) If no response is received then it allows the specified alert to be sent and writes the name of the system to a log file.
4) Checks if the event is a "system is reachable" event. If it is it does the following:
a) Checks the log file for the system name. If it is found it removes it from the log file and allows the specified alert to be sent.
b) If it is not found in the log file then it does not allow the specified alert to be sent (to prevent false alarms).
5) Concatenates the components read from NOTICEPLAINTEXT into a usable small format.
6) Sends specified alert using a local file to send via whatever mechanism (i.e. paging system or e-mail)
7) Allows the ability to send another alert based upon system name to a another user.
8) Reports back to HP SIM success/failure of sending the alert.

Change lines 175, 198, and 202 as needed. Create a custom task with this type of command line:

cscript.exe "C:\DIRECTORY_name_replace\yourfile_replace.Vbs" //nologo

You should have a working knowledge of vbscript before using this.

Sorry, I can't really support this script, but if you post a question I'll see what I can do.

Tim