question

Srikar M. avatar image
Srikar M. asked ·

generate_offsets.sh availability

When we install the webserver agent the generate_offsets script doesnt seem to be included as a part of the install...is there a reason for not including it part of base webserver agent install? In our case when we instrumented nginx and recycled it for the 1st time it created the script, then we had to run the script with -t to check what dependencies are missing and then to create the self generated offsets.After that we have to recycle nginx again...having the script before hand would have saved us 1 recycle and as a practice we can run the check (-t) as the pre-step to ensure everything (required modules and offsets) is in place

Thanks,

Srikar

6.3NGINX
10 |2000000 characters needed characters left characters exceeded

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

1 Answer

Harald Z. avatar image
Harald Z. answered ·

In a standard environment with a known binary the offset generation script is not required, and Nginx is instrumented during first startup, using existing offsets. In case no offsets are available (self compiled binary) there might be different situations requiring different processing. That's why the offset generation script is created dynamically by the agent. The check step is actually not required, this should be checked and executed properly by the script itself.

1 comment Share
10 |2000000 characters needed characters left characters exceeded

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

Thanks Harald...one follow up question, the script that is dynamically generated by the agent - is that environment/nginx binary specific or is it always the same script?

0 Likes 0 · ·