• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Richard M. · Jul 29, 2014 at 07:49 PM ·

Dynatrace Agents being run by separate OS Users

Hi there,

 

We have a scenario on Linux where the libdtagent.so file is being referenced by two separate Java Applications running on this one host however the two JVM's are started as two separate OS Users and this causes both user accounts trying to write to the tmp/dynaTrace/log however the user that creates this logfile first denies access to the second user to also write to this logfile. 

 

Does anyone know of a workaround to this to maybe get a separate logifle created per os user account used?

 

Kind Regards

Richard

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

4 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Andreas G. · Jul 29, 2014 at 07:55 PM

Shouldnt each agent create its own log file by appending the PID to the filename to make the filename unique? Or are you overwriting the logfile name and therefore run into this problem?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Richard M. · Jul 29, 2014 at 08:14 PM

Hi Andreas,

 

Thanks for the response my apologies its not trying to write to the same logfile the users are contending for rights to write to the same temp directory.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Kevin J. · Jul 29, 2014 at 11:46 PM

Richard-

This sounds like a permissions issue.  If so, here are two options to deal with your scenario...One, you can change the permissions of the dynaTrace folder structure to allow the other OS user to access the agent file and write to the log directories (i.e. read, write permissions for "everyone").

Two, if opening up the permissions is not feasible/allowed in your environment, you can copy the dynaTrace agent files to a separate folder, creating two instances of the agent library.  This way, one folder can be owned by user A and the other folder by user B.  You would just need to modify the JVM argument appropriately to point to each separate agent file.

HTH,

Kevin

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Wolfgang G. · Jul 29, 2014 at 11:56 PM 0
Share

If you don't want to make the folder writable for everyone, you could also put the users in one group and give permissions to that group. Something like (without having tried it (smile))

# create the group
sudo groupadd dtagentusergrp
 
# add the users to the group
sudo usermod -a -G dtagentusergrp dyntrace_user_1
sudo usermod -a -G dtagentusergrp dynatrace_user_2
 
# change permissions to the directory
sudo chgrp -R dtagentusergrp /path/to/the/directory
sudo chmod -R 660 /path/to/the/directory
avatar image

Answer by Richard M. · Jul 30, 2014 at 12:31 AM

Thanks for the great feedback here I will look into using one of these options to resolve this issue

 

Kind Regards

Richard

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A