I have inherited an old code for Check_mk v1.2.8
and am having issues figuring out where arguments to an agent is defined.
In the file agents.tar -> special\agent_private
the first lines after imports are the following:
sys.stdout.write('<<<check_mk>>>\n')
sys.stdout.write('Version: %s\n' % VERSION)
sys.stdout.write('AgentOS: linux\n')
ip, usr, passwd = sys.argv[1:4]
The agent and whole plugin is running well, I just need to find out where the arguments come from, so that I can adjust them as the values need to be changed.
Additionally I see authentification information coming from a line in a web plugin:
settings = watolib.load_configuration_settings()
I do not think this is the same information as the agent gets through the arguments, but I might have misunderstood that. I am also here, unable to determine from where values for these are defined, as I need to also adjust these values.
Many thanks in advance for any help!