Monitoring Mendix Runtime

0
Hi All, So I was going through this document https://docs.mendix.com/refguide/monitoring-mendix-runtime and having difficulty in understanding how and where to pass the sample request and what does the below line infer. "If you are running the application from the Desktop Modeler, the M2EE password is set automatically by Mendix, and you can retrieve it from the enviornment variables of your application process." Any help is appreciated.  Thanks, AD
asked
3 answers
2

HI,
You can use a tool such as Postman to send the request to the server. 

The request needs to be sent to the admin port as configured in the modeler.

When configuring the request you need to authenticate with a password and the line you posted explains where to get the password if you are running locally.
-Andrej

EDIT: I have used the process explorer to see the system variables of a running process - https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer

answered
2

Havent tested this on the cloud

All vars:
java.lang.System.getenv();

The one you want:
java.lang.System.getenv('M2EE_ADMIN_PASS');

answered
0

The authentication failed can have several reasons, Two of them I ran into:

=> each time you do a new deploy "run locally" a new password is generated.

=> you have to encode the password you retrieve from the process explorer e.g. using https://www.base64encode.org/

 

answered