In the last years, meaningful improvements have been introduced to make data collection for Process attribute group more stable in any condition, no longer dependant
on the amount of monitored processes, the length of the Command Line and other elements that in the past caused some troubles.
Despite of this, it can be anyway useful to have some information to know what to look at when the output of the "All Process" workspace view is not the expected one.
For example, I have recently worked on a case where from time to time, some processes were not showed in the view, and this could have also impacted the reliability of situations leveraging on this attribute group.
Process data collection is performed directly by kuxagent process.
By enabling traces on specific modules, you can see how the agent discovers the processes and the information collected for each process.
The needed traces are:
KBB_RAS1=ERROR (UNIT:kux03agt ALL) (UNIT:get_ps_table ALL) (UNIT:get_process ALL)
You can set these traces dynamically using the command line (tacmd settrace) or you can put it into the ux.ini file and then restart the agent.
When the traces are active, in the agent log you can find rows like the following:
(56F295CC.0EE1-4:get_ps_table.cpp,1099,"display_ras1_output") iteration: 5306 - cmd:/opt/IBM/ITM/aix526/ux/bin/kuxagent , uid:200, pid:2344190, ppid:1
(56F295CC.0EE2-4:get_ps_table.cpp,1102,"display_ras1_output") uxdc_output CMD:.../kuxagent
(56F295CC.0EE3-4:get_ps_table.cpp,1105,"display_ras1_output") uxdc_output COMMAND:/opt/IBM/ITM/aix526/ux/bin/kuxagent
(56F295CC.0EE4-4:get_ps_table.cpp,1108,"display_ras1_output") uxdc_output BASE_COMMAND: kuxagent
(56F295CC.0EE5-4:get_ps_table.cpp,1111,"display_ras1_output") uxdc_output RT ALLP F: 240001A S:A UID:200 pid:23440190 ppid:1
(56F295CC.0EE6-4:get_ps_table.cpp,1119,"display_ras1_output") uxdc_output C:5 PRI:60 NI:20 SZ:52888 VSIZE:45580
(56F295CC.0EE7-4:get_ps_table.cpp,1126,"display_ras1_output") uxdc_output WCHAN:* TTY:- 00017:27.../kuxagent TIME:00017:27.../kuxagent
(56F295CC.0EE8-4:get_ps_table.cpp,1131,"display_ras1_output") uxdc_output GID:806 EUID:0 EGID:806 PGID:2344190
(56F295CC.0EE9-4:get_ps_table.cpp,1137,"display_ras1_output") uxdc_output session_ID:9830618 sche_class:N/A CPU_ID:-1
(56F295CC.0EEA-4:get_ps_table.cpp,1142,"display_ras1_output") uxdc_output start_time:1160321073619000002d05:34:17 elapsed_time:002d05:34:17