You
can modify the Task executable to use environment variables instead of command
line arguments or you can use the strip predicate on the string
atom.
_stripped_msg =? strip(_msg,7,'\''),
exec_task( _event,
'CA_Ticket',
'-l "TEC" -p "Endpoints_CA" -a "%ld" -a "%s" -a "%s" -a "%s" -a "%s" -a "%s" -a
"%s"', [ _date_reception, _hostname, _origin, _stripped_msg, _severity, _status,
_sub_origin ], 'NO' )
Hi all,
We have a problem handling variables with events
that come from NetIQ AppManager's TEC Connector. NetIQ sends slots (namely
msg) needing character protection in single quotes instead of double. This is
causing us trouble handling variables exported through the TEC task
below:
reception_action:
(
exec_task( _event,
'CA_Ticket',
'-l "TEC" -p "Endpoints_CA" -a "%ld" -a "%s" -a "%s" -a "%s" -a "%s" -a "%s"
-a "%s"', [ _date_reception, _hostname, _origin, _msg, _severity, _status,
_sub_origin ], 'NO' )
)
This task does nothing more than
call a Perl script where we use the slots above to create help desk tickets.
Tivoli events via NetView, etc. don't have a problem, slots always use double
quotes. Is there anything I can do to handle NetIQ event single quoted slots
while leaving properly formatted events alone? Anything I can take care of in
NetIQ's BAROC file and leave the rule alone? I've talked with NetIQ support,
it will be a long time before they address this issue.
Thanks--Drew
Drew Van
Order
Deloitte Services
LP
Tel: +1 615 882
7836
www.deloitte.com
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you are not the intended recipient, you should delete this message. Any
disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.