Troubleshooting
Problem
Service pack 7 (6.3.0.7-TIV-ITM-SP0007) introduced some changes that have an effect on how the ITM agents operate in a Linux systemd environment, used by SLES 12+ and RHEL 7+. SP0007 introduced the use of the systemd component to stop and start agents. Before SP0007, agents could be stopped and started by using either the itmcmd command or by using the systemctl commands.
But this new feature also has an impact on the environment variables that are set in the systemd environment, and can influence how the ITM agents behave.
Symptom
Recently, we have seen an issue where the ITM agent was reporting these errors during start-up:
# ./itmcmd agent start lz
Processing. Please wait...
systemctl start ITMAgents1.lz.service RC: 0
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Processing. Please wait...
Starting Monitoring Agent for Linux OS ...
Monitoring Agent for Linux OS started
# ./itmcmd agent start lz
Processing. Please wait...
systemctl start ITMAgents1.lz.service RC: 0
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Processing. Please wait...
Starting Monitoring Agent for Linux OS ...
Monitoring Agent for Linux OS started
We discovered some inconsistencies in the OS environment variables and the agent environment variables.
While the OS environment had this set:
LANG=POSIX
LC_CTYPE=en_US.UTF-8
, we could see this in the agent environment:
LANG=customenv
LC_MESSAGES=customenv
LC_CTYPE=customenv
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSTFXA","label":"Tivoli Monitoring"},"ARM Category":[{"code":"a8m500000008bguAAA","label":"Agents - Generic Category-\u003EAgent - General"}],"ARM Case Number":"TS006558948","Platform":[{"code":"PF016","label":"Linux"}],"Version":"All Versions"}]
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.
Was this topic helpful?
Document Information
Modified date:
10 July 2024
UID
ibm16485495