23 Commits

Author SHA1 Message Date
Michael Friedrich
7ca8c3ec2f Impersonate as Icinga user, not root
This requires write permissions for

- etc/features-*
- etc/*.conf
- var/{lib,cache}/icinga2/*

Typically permissions are handled by prepare-dirs,
or the respective CLI commands are run as root either way.

fixes #4947
2019-04-02 17:05:48 +02:00
Michael Friedrich
d14a88235d Replace Copyright header with a short version, part I
CLion -> replace in path
2019-02-25 14:48:22 +01:00
Michael Friedrich
dab53448bc icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
Gunnar Beutner
ac155d1dda Apply clang-tidy fix 'modernize-redundant-void-arg' 2018-01-04 12:24:57 +01:00
Michael Insel
158ae2188e Change copyright header for 2018 2018-01-02 12:08:55 +01:00
Michael Friedrich
b7caf0820d Ensure that *.icinga.com is used everywhere
fixes #13897
fixes #13277
2017-01-10 17:19:12 +01:00
Gunnar Beutner
599929b0f6 Update copyright headers for 2016 2016-01-12 08:29:59 +01:00
Michael Friedrich
78bfd0204c Update copyright year 2015-01-22 12:00:23 +01:00
Gunnar Beutner
80a3298b5e Implement support for running specific CLI commands as root
fixes #7380
2014-10-24 15:29:46 +02:00
Gunnar Beutner
3979bd87b3 Validate number of arguments
fixes #7442
2014-10-24 13:19:00 +02:00
Michael Friedrich
69bf146469 Cli: Refactor feature {enable,disable,list} code
Required for agent setup.

refs #7423
2014-10-21 18:53:14 +02:00
Gunnar Beutner
7d2f60a00e Implement "feature disable" for Windows
fixes #7418
2014-10-20 20:19:01 +02:00
Gunnar Beutner
26b9c5a81b Move clicommand.{cpp,hpp} to lib/cli
refs #7246
2014-10-20 14:06:21 +02:00
Gunnar Beutner
2d5e9514a5 Refactor logging code 2014-10-19 17:52:17 +02:00
Gunnar Beutner
b18f57a745 Remove logger_fwd.hpp 2014-10-19 14:50:39 +02:00
Michael Friedrich
b0d7d8dabc Build fix for RHEL 2014-10-19 00:15:42 +02:00
Michael Friedrich
e98d719e5b CLI: Add feature enable/disable auto-completion
Refactor feature list code.
Add disabled features to list output.
Add more console colors.
Change output to stdout for general logging.

fixes #7381
fixes #7415
refs #7376
2014-10-18 20:13:09 +02:00
Gunnar Beutner
3c68f1b2e0 Remove some unnecessary #includes 2014-10-17 20:44:46 +02:00
Gunnar Beutner
7db8588980 Implement auto-completion for positional arguments
refs #7255
2014-10-17 15:54:46 +02:00
Gunnar Beutner
ce6f7ace89 Replace spaces with tabs
refs #7250
2014-10-15 08:48:01 +02:00
Michael Friedrich
9df1b6bc1c CLI: Make sure that en/disable errors are marked as such
fixes #7379
2014-10-14 19:41:32 +02:00
Gunnar Beutner
2a60ce8625 Improve auto-completion for arguments
fixes #7375
2014-10-14 16:45:00 +02:00
Michael Friedrich
92454ca520 CLI: Add feature command (list, enable, disable)
fixes #7250
2014-10-14 13:27:30 +02:00