Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #2289] add new runtime flag, i.e. --debug in order not to drop privilegues for profiling #854

Closed
icinga-migration opened this issue Jan 27, 2012 · 2 comments

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/2289

Created by mfriedrich on 2012-01-27 18:21:25 +00:00

Assignee: (none)
Status: Rejected (closed on 2012-03-04 12:36:13 +00:00)
Target Version: (none)
Last Update: 2012-03-04 12:36:13 +00:00 (in Redmine)


profiling the core remains difficult even when run in foreground. while profiling a cgi is mostly the same as debugging, the core forks, and more importantly, it drops root privilegues after startup.

profiling is somewhat different to debugging, because it uses a cache/out file which is created as root, but then tried to be written as icinga user.

this fails heavily, and in order not to have remove the drop_privilegues function when doing some profiling, it would be nice to have a switch on runtime, -debug or similar, where specialities like dropping privilegues does not happen because we know what we are doing and not running it in production.

Changesets

2012-01-27 18:55:50 +00:00 by mfriedrich 8f6b043

adapt -pg example in base/Makefile.in for profiling

refs #2289

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2012-01-27 18:22:00 +00:00

https://wiki.icinga.org/display/Dev/Profiling

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2012-03-04 12:36:13 +00:00

  • Status changed from Assigned to Rejected
  • Assigned to deleted mfriedrich
  • Target Version deleted 1.7

wrong thinking, can be done setting the icinga_user|group to root while profiling, keeping a different icinga.cfg for profiling.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant