I am trying to use the "Execute Custom Scripts" feature of event log analyzer when a particular alert is generated. I am having a multitude of problems.
First, I created a very simple shell script that echos the arguments provided to the script into a simple text file. The script is below.
- #! /bin/sh
- echo $@ >>/tmp/test.log
The script gets created as expected, but the output is as follows.
- null, null, null
So this got me looking at the setup of the alert itself.
The arguments are the defaults -- $source, $hostname, $criticality
I tried adding or removing an argument to see if it changes anything, and thats where my second problem happened. Every attempt I make to change the arguments, such as un-checking 'hostname' and clicking save does not actually save the change. When I go back into the alert, the arguments are back to the defaults "$source, $hostname, $criticality".
Here's the version info for my EventLogAnalyzer ..
Build Version :
10.0
Build Number :
10001
Service Pack :
-
Database :
POSTGRES
Build Date :
Feb_02
Build Type :
64bit
Language of Installation :
English
Thanks
Ron