Skip to content

Conversation

@GSVarsha
Copy link
Contributor

@GSVarsha GSVarsha commented Oct 9, 2025

Error in Agent logs:

2025-10-07T00:44:34.743-05:00 | DEBUG | instana-executor-thread-4-12 | aultAnnounceUtil | com.instana.agent-process-handling - 1.0.29 | Announcement request root namespace PID match discarded due to name/argument mismatch: PythonProcess [pid=570881, name=python, arguments=[], fd=-1, inode=] is not SigarProcessImpl [pid=570881, parentPid=570282, startTime=0, name=python, directory=, executable=, arguments=[simple_flask_app.py], userName=, groupName=, procCred=null, environmentVariables={}, stable=false].

Inference:

DefaultAnnounceUtil says the PythonProcess with pid 570881 does not share the same arguments (arguments=[]) as the SigarProcessImpl which has arguments=[simple_flask_app.py] and therefore they are marked as NOT the same.

What's happening?

When the sensor announces itself, it's sending incomplete information - specifically, it's sending empty command line arguments (arguments=[]).

Meanwhile, the Instana agent already knows about this process through its system monitoring (Sigar) and has the correct command line arguments (arguments=[simple_flask_app.py]).

The agent is trying to match these two pieces of information (the announcement from the Python sensor and what it knows from system monitoring), but because the arguments don't match, it rejects the announcement.

Root cause:

Looks like in legacy systems like IBM i, ps -p <PID> -o command doesn't provide the full command with arguments, the other command should work for all kinds of OS

$ps -p 572882 -o command
COMMAND
python

$ps -p 572882 -o args
COMMAND
python simple_flask_app.py

@GSVarsha GSVarsha added this to the H2-2025 milestone Oct 9, 2025
@GSVarsha GSVarsha self-assigned this Oct 9, 2025
@GSVarsha GSVarsha marked this pull request as ready for review October 9, 2025 07:01
@GSVarsha GSVarsha requested a review from a team as a code owner October 9, 2025 07:01
Copy link
Member

@pvital pvital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

- adapt to legacy systems like ibm i

Signed-off-by: Varsha GS <varsha.gs@ibm.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 9, 2025

@pvital pvital merged commit 548a72b into main Oct 9, 2025
19 checks passed
@pvital pvital deleted the ibmi-support branch October 9, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants