IBM Support

Situation Syntax Error near unexpected token `(' on Take Action command

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 

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSTFXA","label":"Tivoli Monitoring"},"Component":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"All Editions","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

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

Manage My Notification Subscriptions