Gunnar Beutner
7890e20da7
Implement reload functionality for Windows
...
fixes #7880
2015-08-10 15:28:31 +02:00
Gunnar Beutner
8f3396ae0d
Implement support for attaching GDB to the Icinga process on crash
...
fixes #9866
2015-08-08 09:41:39 +02:00
Gunnar Beutner
01729087e9
Make sure that --scm-install doesn't fail when the service already exists
...
fixes #9255
2015-05-12 14:41:47 +02:00
Gunnar Beutner
3e08f2e0b5
Make order for deferred initializers deterministic
...
refs #8791
2015-03-18 13:24:31 +01:00
Gunnar Beutner
cfbda617c8
Fix incorrect type for the --app argument
...
refs #8791
2015-03-18 12:30:07 +01:00
Gunnar Beutner
50b1e1cf6b
Fix livestatus unit tests
...
refs #8791
2015-03-18 12:11:42 +01:00
Gunnar Beutner
6c96d5bc98
Clean up the start-up process a bit
...
fixes #8791
2015-03-18 11:14:51 +01:00
Gunnar Beutner
d0ac1bdebf
Fix libreadline detection for Debian
...
refs #8776
2015-03-17 18:03:31 +01:00
Gunnar Beutner
37736caa5c
Implement support for libedit
...
fixes #8776
2015-03-17 15:05:47 +01:00
Gunnar Beutner
bcf4c46079
Fix missing program name in 'icinga2 --version'
...
fixes #8657
2015-03-09 15:02:53 +01:00
Gunnar Beutner
b4143c2724
Fix memory leak when evaluating init.conf
...
refs #8593
2015-03-04 08:22:14 +01:00
Gunnar Beutner
f515d5415c
Fix crash when Utility::BaseName fails
...
Coverity Bug ID: 1167735
2015-03-03 09:24:21 +01:00
Gunnar Beutner
ba6b92a929
Fix crash when specifying invalid argument for --autocomplete
...
Coverity Bug ID: 1167734
2015-03-03 09:24:10 +01:00
Jean-Marcel Flach
9ed21563ff
Use RequestShutdown with exitcode instead of Application::Exit
...
fixes #8436
2015-02-27 14:43:30 +01:00
Gunnar Beutner
d1d488a30d
Fix app initialization
...
refs #6257
2015-02-20 20:45:41 +01:00
Gunnar Beutner
37e075c38a
Move some of the initialization code into icinga-app
...
refs #6257
2015-02-20 19:57:26 +01:00
Gunnar Beutner
0f2598b43b
Fix exception handler for --library on OS X
...
refs #8227
2015-02-13 09:19:01 +01:00
Gunnar Beutner
9dd0fba02f
Improve error message for setgroups/initgroups/setuid
...
fixes #8294
2015-02-09 14:58:20 +01:00
Michael Friedrich
78bfd0204c
Update copyright year
2015-01-22 12:00:23 +01:00
Jean Flach
5df5c1bf70
Rephrase 2 lines so they conform with the style
2015-01-21 16:36:30 +01:00
Jean Flach
b0483490c8
Fix an Icinga crash, improve a log message
...
fixes #8227
2015-01-21 16:16:47 +01:00
Jean Flach
bb25e5bd8a
Make Icinga exit on invalid log-severity argument
...
fixes #8226
2015-01-15 11:45:12 +01:00
Tobias von der Krone
1fd2f09bae
Use https://www.icinga.org as Icinga website url
...
For consistency use https://www.icinga.org for Icinga website url (beside
Copyright information) in all files
fixes 8222
2015-01-15 09:24:36 +01:00
Gunnar Beutner
c433284d27
Improve error reporting
...
fixes #8136
refs #6070
2014-12-20 15:29:04 +01:00
Gunnar Beutner
97168378e8
Rename _DEBUG to I2_DEBUG
...
fixes #7767
2014-12-19 12:19:28 +01:00
Gunnar Beutner
873e294158
Refactor the WorkQueue class to make error reporting easier
...
refs #7709
2014-12-18 15:11:57 +01:00
Gunnar Beutner
af8aaf5bad
Remove usage info from --version
...
fixes #8102
2014-12-18 05:28:51 +01:00
Gunnar Beutner
1cb0231c05
Refactor how variable scopes work
...
refs #8074
2014-12-14 11:33:45 +01:00
Gunnar Beutner
9386a58bf2
Implement an experimental variable to limit the number of threads
2014-11-16 13:14:42 +01:00
Gunnar Beutner
dfd24e6359
Fix _DEBUG define on *NIX
2014-11-12 11:34:59 +01:00
Gunnar Beutner
02c559eff9
Fix crash in the unit tests
...
fixes #7648
2014-11-12 09:33:13 +01:00
Michael Friedrich
bc83c9a698
CLI Commands: Remove timestamp prefix when logging output
...
fixes #7376
2014-10-31 22:01:36 +01:00
Gunnar Beutner
1c79503918
Improve formatting for --help
...
refs #7246
2014-10-29 07:51:35 +01:00
Michael Friedrich
4cf46de5ab
Cli: Fix autocompletion on Debian
...
refs #7246
2014-10-27 14:13:55 +01:00
Gunnar Beutner
61b89bc7e6
Fix output formatting for --version
...
refs #7245
2014-10-24 15:54:32 +02: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
Gunnar Beutner
9c7d97b8bc
Update the Windows agent wizard
...
refs #7241
2014-10-21 16:07:39 +02:00
Gunnar Beutner
2972c6bfe8
Implement the "variable" CLI command
...
fixes #7370
2014-10-20 21:14:56 +02:00
Gunnar Beutner
11426125e8
Add alias for --help
...
fixes #7421
2014-10-20 14:31:39 +02:00
Gunnar Beutner
5ddf5b3293
Improve --help formatting
...
refs #7246
2014-10-20 14:13:57 +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
8cc6368954
Implement generic color support for terminals
...
fixes #7396
2014-10-17 20:44:17 +02:00
Gunnar Beutner
7db8588980
Implement auto-completion for positional arguments
...
refs #7255
2014-10-17 15:54:46 +02:00
Gunnar Beutner
96eb2544c3
Call setuid()/setgid() after parsing arguments
...
refs #7375
2014-10-14 17:03:14 +02:00
Gunnar Beutner
2a60ce8625
Improve auto-completion for arguments
...
fixes #7375
2014-10-14 16:45:00 +02:00
Michael Friedrich
d9f5409e8b
CLI framework: Change unrecognized into positional options
...
refs #7371
2014-10-14 14:27:37 +02:00
Michael Friedrich
3513d1f2f9
CLI framework: Add support for unrecognized parameters
...
Required for feature enable command for example.
fixes #7371
2014-10-13 18:07:52 +02:00
Gunnar Beutner
15bd96aa9a
Remove --user and --group
...
refs #7246
2014-10-13 16:07:04 +02:00
Gunnar Beutner
43bb5127ac
Fix incorrect log message
2014-10-13 14:00:28 +02:00
Gunnar Beutner
a01fb6d6e6
Make sure we're using the right user/group for CLI commands
...
refs #7246
2014-10-13 13:44:45 +02:00
Gunnar Beutner
50a1b243ed
Hide some of the internal command-line arguments
...
refs #7246
2014-10-10 11:08:24 +02:00
Gunnar Beutner
4c8d0b9283
Fix auto-completion for arguments
...
refs #7246
2014-10-10 10:07:56 +02:00
Gunnar Beutner
a4081f1445
Implement support for CLI commands
...
fixes #7246
2014-10-08 15:33:10 +02:00
Gunnar Beutner
25ed7dcdb2
Fall back to using SysconfDir + "/icinga2/icinga2.conf" if --config is not specified
...
fixes #6874
2014-08-17 13:48:55 +02:00
Gunnar Beutner
0443c85bf5
Implement support for writing the icinga2.debug file
...
refs #6702
2014-08-15 21:00:26 +02:00
Michael Friedrich
fd233ae901
Use Application::Exit() for main app termination
...
refs #6682
2014-08-04 17:23:41 +02:00
Gunnar Beutner
b574f4cb1e
Use _exit instead of exit
...
fixes #6820
2014-07-30 15:14:47 +02:00
Gerd von Egidy
dfd3091c6a
Call initgroups before setuid to inherit additional group rights
...
fixes #6809
Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-07-30 10:16:17 +02:00
Gunnar Beutner
ec0ae9f5b4
Don't call setgroups() during reload
...
fixes #6790
2014-07-29 11:31:55 +02:00
Gunnar Beutner
4724869e1c
Print application paths for --version
...
fixes #6783
2014-07-23 09:30:56 +02:00
Gunnar Beutner
a49a598eef
Make location of the /run directory configurable
...
fixes #6627
2014-07-22 13:26:37 +02:00
Gunnar Beutner
4cc51f990f
Call setgroups() before setgid/setuid
...
fixes #6659
2014-07-11 14:26:21 +02:00
Gunnar Beutner
ec903058ef
Disable console log after activating all config items
...
fixes #6316
2014-06-24 13:04:07 +02:00
Michael Friedrich
f0b0420256
Error messages: Replace exceptions with log/exit in main application.
...
Refs #6070
2014-06-05 17:20:15 +02:00
Michael Friedrich
17668af2c2
Error messages: Fix Logger exceptions.
...
Refs #6070
2014-06-05 15:35:30 +02:00
Gunnar Beutner
632026cd9f
Rename C++ header files.
...
Fixes #6291
2014-05-25 16:27:14 +02:00
Gunnar Beutner
16a2d36bdc
Rename --debug to --log-level.
...
Refs #6276
2014-05-23 18:11:21 +02:00
Michael Friedrich
09f3040bae
Fix required argument for --debug|-x.
...
Refs #6276
2014-05-23 14:12:55 +02:00
Michael Friedrich
5ec300f68e
Add debug log severity for console logger.
...
Fixes #6276
2014-05-23 11:57:08 +02:00
Gerd von Egidy
e0d4b9fb80
Unlink the pidfile when we really shutdown (not reload).
...
Refs #6118
2014-05-18 18:44:54 +02:00
Gerd von Egidy
e93a22b440
Proof of concept how a real reload-handling with systemd could work.
...
Refs #6118
2014-05-18 18:39:35 +02:00
Gunnar Beutner
4e35c39df0
Fix crash when zones.d directory doesn't exist.
...
Fixes #6224
2014-05-17 12:52:31 +02:00
Gunnar Beutner
d587c962ce
Implement the config::Update message.
...
Refs #6191
2014-05-13 15:57:02 +02:00
Gunnar Beutner
3a1ce23aeb
Implicitly set zone attribute for files includes from zones.d.
...
Refs #6191
2014-05-13 14:40:12 +02:00
Gunnar Beutner
0d36cc8d5f
Implement support for the zones.d config directory.
...
Refs #6191
2014-05-13 13:19:43 +02:00
Gunnar Beutner
12c8814bd8
Fix some more compiler warnings.
...
Refs #5823
2014-05-11 06:43:01 +02:00
Michael Friedrich
d06d4f2540
Include monitoring plugin commands seperately.
...
Fixes #6130
2014-05-10 19:02:51 +02:00
Gunnar Beutner
45270f1bb8
Refactor the agent and cluster components.
...
Refs #6107
2014-05-08 09:13:04 +02:00
Gunnar Beutner
630a1a28e2
Make Application::ReadPidFile work on Windows.
...
Refs #5788
2014-05-01 20:09:38 +02:00
Gerd von Egidy
49d2932d30
Fix how the stdin/stdout fds are set to null during Daemonize().
...
Fixes #5951
Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-04-29 23:44:04 +02:00
Gerd von Egidy
1e321f0959
Fix possible race when the reload-process determines it's parent pid and the true parent has ended
...
Now transfers the true parent pid as parameter to --reload-internal.
Refs #5788
2014-04-29 10:34:02 +02:00
Gerd von Egidy
3ece2ba643
Fix logging during shutdown procedure.
...
Refs #5788
2014-04-29 10:34:02 +02:00
Gerd von Egidy
3a294bbd5d
Fork new process from previous daemon on reload.
...
The previously planned logic of forking a new daemon from the reload-process didn't work with
systemd: systemd does not allow long-running processes started from within the reload command.
Replaces parameter --reload with --reload-internal which is used when starting the new daemon.
Refs #5788
2014-04-29 10:34:01 +02:00
Gerd von Egidy
33bd909b71
Add --reload command-line parameter.
...
Refs #5788
2014-04-29 10:34:01 +02:00
Gerd von Egidy
19afcd894a
Split ConfigItem::ActivateItems() into ConfigItem::ValidateItems() and ConfigItem::ActivateItems().
...
Also removes the -Z commandline parameter: won't be needed when this feature is done.
Refs #5788
2014-04-29 10:34:01 +02:00
Gunnar Beutner
0c60799b6a
Set Icinga service to start automatically.
...
Fixes #6050
2014-04-26 23:22:12 +02:00
Gunnar Beutner
951c61ed16
Use fewer threads by default.
...
Refs #6053
2014-04-22 20:53:46 +02:00
Gunnar Beutner
466cac1f52
Wait until the service has stopped in the uninstaller.
...
Refs #4865
2014-04-20 15:47:57 +02:00
Gunnar Beutner
ad894c367a
Stop the Icinga service before uninstalling the files.
...
Refs #4865
2014-04-20 15:35:51 +02:00
Gunnar Beutner
bddbe241ac
Fix incorrect #endif in icinga-app.cpp.
...
Refs #4865
2014-04-20 07:22:04 +02:00
Gunnar Beutner
562eed49b8
Fix pkg data dir for Windows.
...
Refs #4865
2014-04-18 16:21:31 +02:00
Gunnar Beutner
df518e4d0f
Use the right path prefix for Windows.
...
Refs #4865
2014-04-18 16:15:34 +02:00
Gunnar Beutner
0fb55f3404
Fix NSIS installer and Windows service.
...
Refs #4865
2014-04-18 12:15:01 +02:00
Gunnar Beutner
50e8c5f8da
Run the Windows Service as NT AUTHORITY\NetworkService.
...
Refs #4865
2014-04-17 13:46:33 +02:00
Gunnar Beutner
1373a543b2
Add icon and version info resource for the Icinga binary.
...
Refs #4865
2014-04-16 19:05:11 +02:00
Gunnar Beutner
7805b23330
Build fix.
...
Refs #4865
2014-04-16 15:05:50 +02:00
Gunnar Beutner
979ec735a0
Allow running Icinga 2 as a Windows service.
...
Refs #4865
2014-04-16 15:01:15 +02:00
Gunnar Beutner
25b598300f
Fix infinite loop when user/group for -u/-g are invalid.
...
Fixes #6008
2014-04-13 23:35:42 +02:00
Michael Friedrich
9ab4b3dd16
Remove the 'Icinga' prefix for global constants.
...
Fixes #5960
2014-04-07 21:42:23 +02:00
Gunnar Beutner
aba2a09245
Build fix for FreeBSD/OS X.
2014-03-31 00:08:43 +02:00
Gunnar Beutner
64aa5d1b09
Dump AST execution state in debug mode.
...
Refs #5878
2014-03-29 13:48:04 +01:00
Gunnar Beutner
c0b10a8245
Make config error messages friendler.
...
Refs #5825
2014-03-21 15:58:13 +01:00
Gunnar Beutner
dde483d7a8
Make config error messages more awesome.
...
Refs #5825
2014-03-21 15:39:52 +01:00
Michael Friedrich
1d32c5b2d3
Add --no-validate option and skip duplicate validation on (re)start.
...
Fixes #5800
2014-03-19 20:59:18 +01:00
Michael Friedrich
ce737ff2f3
Change copyright header (again).
...
Fixes #5424
2014-03-19 11:42:47 +01:00
Gunnar Beutner
25dc86881a
Make script variables constant.
...
Fixes #5446
2014-02-12 11:51:50 +01:00
Gunnar Beutner
9116c58b24
Fix: IcingaUseVfork warning when spawning child processes.
...
Fixes #5607
2014-02-05 14:32:56 +01:00
Michael Friedrich
555d72150a
Update copyright header.
...
Fixes #5424
2014-01-09 00:32:11 +01:00
Gunnar Beutner
38aa231a2d
Discard unused config items as early as possibly.
...
Refs #5400
2013-12-20 13:31:13 +01:00
Gunnar Beutner
162cee5c40
Remove the ConsoleLogger class and keep the default console log enabled until we daemonize.
...
Refs #5342
2013-12-16 17:23:23 +01:00
Gunnar Beutner
6714796ecd
Set rlimits in the Application class (rather than in the init script).
...
Fixes #5260
2013-12-05 11:11:03 +01:00
Gunnar Beutner
e540685e13
Implement support for constants in the config parser.
...
Refs #4946
2013-12-04 11:32:45 +01:00
Gunnar Beutner
9d8edd286f
Implement IcingaSysconfDir variable.
...
Refs #5224
2013-11-27 09:46:31 +01:00
Gunnar Beutner
92dd32eb68
Implement support for high-level stack traces.
...
Refs #5085
2013-11-21 09:42:27 +01:00
Gunnar Beutner
6acc017707
Remove namespace qualifiers for boost::make_shared and boost::enable_shared_from_this.
...
Fixes #5012
2013-11-07 08:28:33 +01:00
Gunnar Beutner
3088b9d39d
Implement --no-config option.
...
Fixes #4998
2013-11-05 09:13:43 +01:00
Gunnar Beutner
e32f97c07a
Don't compile SigHupHandler on Windows.
...
Refs #4995
2013-11-05 08:34:34 +01:00
Gunnar Beutner
a6b0233b75
Make sure the name of the initial library (libicinga) is not hard-coded.
...
Refs #4959
2013-11-04 15:33:29 +01:00
Gunnar Beutner
871f6febc7
Move methods to a separate library.
...
Refs #4959
2013-11-04 15:29:18 +01:00
Gunnar Beutner
f2307c4242
Add cmake build files.
...
Refs #4962
2013-11-03 13:45:26 +01:00
Gunnar Beutner
2c143fbdf8
Remove unused files.
...
Refs #4962
2013-11-03 11:12:47 +01:00
Gunnar Beutner
9f1c4539dc
Remove libltdl dependency.
...
Refs #4964
2013-10-30 12:00:55 +01:00
Gunnar Beutner
db4b3b78d6
Implement class compiler.
...
Refs #4963
2013-10-28 14:27:36 +01:00
Michael Friedrich
60766659e5
Move icinga2 binary into sbin.
...
fixes #4936
2013-10-21 11:26:09 +02:00
Gunnar Beutner
fa845775a2
Fix crashes when restarting Icinga.
2013-10-17 10:56:42 +02:00
Michael Friedrich
4135578903
Add GraphiteWriter.
...
fixes #3986
2013-10-15 14:56:02 +02:00
Gunnar Beutner
07e2a38c4d
Make getpwnam/getgrnam error messages more user-friendly.
2013-10-10 11:28:07 +02:00
Michael Friedrich
29a9365a48
Fix getgrname error message.
2013-10-09 23:49:44 +02:00
Gunnar Beutner
039dbc7029
Build fix.
2013-10-09 15:09:17 +02:00
Gunnar Beutner
fe5c925a63
Windows build fix.
2013-10-09 15:03:24 +02:00
Gunnar Beutner
3f922e5eac
Implement Application::GetVersion().
...
Fixes #4801
2013-10-09 08:46:31 +02:00
Gunnar Beutner
d1016dc02e
Fix build error when MySQL is not installed.
2013-09-26 09:04:50 +02:00
Gunnar Beutner
7f97895965
Build fix.
2013-09-25 10:43:07 +02:00
Gunnar Beutner
d9a283fc89
Rename command-line parameter: -v -> -C
2013-09-25 09:48:45 +02:00
Gunnar Beutner
bf1a800e39
Update copyright information.
2013-09-25 07:45:56 +02:00
Gunnar Beutner
d1c194632b
config: Count errors and warnings.
2013-09-24 13:30:23 +02:00
Gunnar Beutner
a7e25beb06
Improve config validation.
...
Fixes #4391
2013-09-24 13:13:14 +02:00
Gunnar Beutner
aba260e695
Set group before user.
2013-09-15 10:32:55 +02:00
Gunnar Beutner
12ebf48b0e
Implement setgid/setuid support.
...
Fixes #3841
2013-09-15 10:28:54 +02:00
Gunnar Beutner
687f95b305
Another init fix.
2013-09-10 16:59:00 +02:00
Gunnar Beutner
183135dbce
Fix object initialization order.
2013-09-10 16:55:41 +02:00
Gunnar Beutner
15fae2bf2a
Refactor how Application objects work.
2013-09-10 16:03:36 +02:00
Gunnar Beutner
e05f270459
base: Don't set thread name for the first thread.
2013-09-03 15:44:31 +02:00
Gunnar Beutner
e8c61a578f
Implement restarting Icinga.
2013-08-30 14:27:24 +02:00
Gunnar Beutner
519ce78727
Implement script variables IcingaPrefixDir, IcingaLocalStateDir, IcingaPkgLibDir, IcingaPkgDataDir and IcingaStatePath.
2013-08-30 12:04:24 +02:00
Gunnar Beutner
911f64c411
Fix state file functionality.
2013-08-29 10:40:43 +02:00
Gunnar Beutner
f134ed61bc
Fix: ::Start must be called after restoring the state file.
...
Fixes #4654
2013-08-29 10:17:12 +02:00
Gunnar Beutner
3198444fa6
Fix a grammar mistake in --help.
2013-08-28 17:19:34 +02:00