[icinga-checkins] icinga.org: icinga-core/master: add opt-in log_external_commands_user in icinga.cfg, user will be logged by the core if enabled and sent through icinga.cmd

git at icinga.org git at icinga.org
Tue Jul 27 16:31:30 CEST 2010


Module: icinga-core
Branch: master
Commit: d7bca940783a6d67746faf1c63dcc2afc89a4feb
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=d7bca940783a6d67746faf1c63dcc2afc89a4feb

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Mon Jul 26 16:13:41 2010 +0200

add opt-in log_external_commands_user in icinga.cfg, user will be logged by the core if enabled and sent through icinga.cmd

if an external command is sent with username before
commandargs, and if enabled in icinga.cfg, the given
username will be processed and logged.

the cgis read that config option and proceed sending
the correct syntax for that.

CMD;username;cmdargs instead of CMD;cmdargs

since this will break compatibility on existing log
(parsers), this is by default disabled, but might be useful
in the future.

the NEB API has not yet been update in order to support
the username being sent to command history.

refs #329

---

 Changelog                   |    1 +
 base/commands.c             |   56 +++++++++++++++++----
 base/config.c               |   12 +++++
 base/icinga.c               |    1 +
 base/utils.c                |    2 +
 cgi/cgiauth.c               |    1 -
 cgi/cgiutils.c              |   28 +++++++----
 cgi/cmd.c                   |  110 +++++++++++++++++++++++--------------------
 include/icinga.h            |    1 +
 sample-config/cgi.cfg.in    |    1 -
 sample-config/icinga.cfg.in |   17 ++++++-
 11 files changed, 153 insertions(+), 77 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=d7bca940783a6d67746faf1c63dcc2afc89a4feb




More information about the icinga-checkins mailing list