Hi Cline,
We have enclosed a sample script and its output in the attached zip. This script is with reference to our environment. When using the same, change the directory path and file names accordingly. Also, please note that this is a very simple script that just forces a key value pair into a output file.
Sample execution of the script in the linux goes like this,
sh sampleTest.sh This is the sample script
While configuring this in the Applications Manager, please do the following.
1. Display Name -> Some Name to be displayed
2. Script to Monitor -> /home/harikrishnan/supportlogs/sampleTest.sh
3. Directory from which the script should be executed -> /home/harikrishnan/supportlogs/
If some output file is present, please check the "Output Settings"
4. Output File -> /home/harikrishnan/supportlogs/sampleout.txt
5. String Attributes -> name (Check the output file.If there are more than one, give them in seperated by line)
6. Numeric Attributes -> agrumnetsPassed (same, as mentioned for the String Attributes above)
7. Delimiter in the output file -> = (If space " " is the delimiter. leave this field empty)
8. Arguments -> This is the sample script
9. Polling Interval -> 5 minutes
10. Timeout -> 10 seconds (Maximum time Applications Manager should wait for the script to terminate)
11. Enter the Mode -> sh (How we are calling the script , here "sh" )
Believe this clarifies your doubts.
Thanks and Regards,
Hari.