Troubleshooting
Problem
Take Action command didn't executed successfully due to the below syntax error caused by the attribute variable substitution in the take action definition.
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo System: server1 Message -- Thread
Symptom
You will notice the below error on the TEMS operation log since the Take action is executed at TEMS
The situation action definition:
echo System: &{Log_Analysis.Server_Name} Message: &{Log_Analysis. Message_Text} | mail -s "Tivoli Monitoring Alert" -c "email1@xxx.com, email2@xxx.com" email3@xxx.com
From the TEMS operations log:
Wed Mar 30 15:39:10 2011 KO41041 Enterprise situation EIMWASError:
AppSrv01$server1:D2COSAE001:KYNS<Thread "WebContainer : 4" (00000029)
has been active for 616187 milliseconds and... is true.
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `echo System: server1 Message -- Thread
"WebContainer : 4" (00000029) has been active for 616187 milliseconds
and may be hung. There is/are 1 thread(s) in total in the server that may be hung. | mail -s
"Tivoli Monitoring Alert" -c "email1@xxx.com,email1@xxx.com" email3@xxx.com
Log InLog in to view more of this document
Was this topic helpful?
Document Information
More support for:
Tivoli Monitoring
Software version:
All Versions
Operating system(s):
AIX, Linux, Windows
Document number:
729925
Modified date:
10 July 2024
UID
ibm10729925