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
Gunnar Beutner
0d24b941f5
Implement some cluster events.
2013-08-28 11:12:20 +02:00
Gunnar Beutner
e9e55cd8c0
Remove the replication feature and clean up the code.
2013-08-26 14:56:38 +02:00
Michael Friedrich
8613beb539
Fix Icinga 2 Binary is in the wrong directory.
...
fixes #4539
2013-08-16 14:50:01 +02:00
Gunnar Beutner
4637bc1ca6
Fix validation warnings for components.
2013-07-02 09:58:26 +02:00
Gunnar Beutner
d2b31f6a06
Implement notification conditions.
...
Fixes #2841
2013-06-26 09:08:50 +02:00
Gunnar Beutner
8f5c5b68da
Implement -d (daemonize) and -e (errorlog).
2013-05-03 13:39:31 +02:00
Gunnar Beutner
ada9f634dd
Don't link items after we've encountered a compiler error.
...
Fixes #3930
2013-04-08 10:09:27 +02:00
Gunnar Beutner
fd3e92ea0c
Refactor AsyncTasks.
2013-03-25 17:36:15 +00:00
Gunnar Beutner
6df051fad3
Fix: The order in which config items are defined should not matter
...
Fixes #3733
2013-03-19 07:09:06 +01:00
Gunnar Beutner
734f76af96
Windows build fix.
2013-03-18 22:40:40 +01:00
Gunnar Beutner
c3975af6ec
Refactor #includes (Part 4).
2013-03-18 11:02:18 +01:00
Gunnar Beutner
9d076c3c03
Refactor #includes (Part 3).
2013-03-17 20:19:29 +01:00
Gunnar Beutner
0bb0711d72
Refactor #includes (Part 2).
2013-03-16 21:18:53 +01:00
Gunnar Beutner
3073200b53
Cleaned up #includes (Part 1).
2013-03-15 18:21:29 +01:00
Gunnar Beutner
ee46731f41
Fix --disable-shared
...
Fixes #3852
2013-03-15 11:21:16 +01:00
Gunnar Beutner
beeddb6840
Don't validate config items if we've already encountered an error.
2013-03-15 11:18:02 +01:00
Gunnar Beutner
98ab009b91
Cleaned up VS project files.
2013-03-12 19:49:24 +01:00
Gunnar Beutner
3c363499bb
Eliminate the Component class.
...
Fixes #3832
Fixes #3840
2013-03-12 13:45:54 +01:00
Gunnar Beutner
4b2d828b99
Refactor the init script and remove the -d option.
...
Fixes #3666
2013-03-12 11:48:45 +01:00
Gunnar Beutner
e2416b5b54
Check return values of SymGetLineFromAddr64 and SymFromAddr.
2013-03-07 16:00:10 +01:00
Gunnar Beutner
365b7a7ba3
Remove compatido documentation.
2013-02-28 14:24:19 +01:00
Gunnar Beutner
2ef255b9f6
Fine-grained locks (WIP, Part 9).
2013-02-24 01:10:34 +01:00
Gunnar Beutner
997ca3a77a
Fine-grained locks (WIP, Part 6).
2013-02-19 23:02:08 +01:00
Gunnar Beutner
a4c7052a6e
Fine-grained locks (WIP, Part 2).
2013-02-18 14:40:24 +01:00
Gunnar Beutner
c63c28dd9c
Fine-grained locks (WIP, Part 1).
2013-02-17 19:14:34 +01:00
Gunnar Beutner
76dcb2dc33
Build fix: --disable-python didn't work.
2013-02-16 14:26:45 +01:00
Gunnar Beutner
d3928a7e69
Pass argc and argv to the Python interpreter.
2013-02-14 16:18:58 +01:00
Gunnar Beutner
74b122d430
Implemented the 'Script' type.
2013-02-14 14:58:26 +01:00
Gunnar Beutner
2304256b41
Remove the icinga2_DEPENDENCIES variable in icinga-app/Makefile.am.
...
Fixes #3653
2013-02-11 14:07:52 +01:00
Gunnar Beutner
1017f78b0b
Added dummy project files for the notification component.
2013-02-07 21:19:19 +01:00
Gunnar Beutner
41e10c83be
Documentation: add man pages
...
Fixes #2844
2013-02-06 17:49:11 +01:00
Gunnar Beutner
b887f14d96
Use BOOST_THROW_EXCEPTION instead of boost::throw_exception()
...
Fixes #3636
2013-02-06 12:51:12 +01:00
Gunnar Beutner
25e34fa5d2
Made command-line arguments more Unix-compliant.
2013-02-06 09:45:44 +01:00
Gunnar Beutner
d463bed478
Config: Implement detection of missing required attributes
...
Fixes #3627
2013-02-06 00:32:05 +01:00
Gunnar Beutner
a5a51a6123
Implement validateOnly flag for LoadConfigFiles().
2013-02-05 16:16:34 +01:00
Gunnar Beutner
7a150d2c29
Validate config objects before trying to activate them.
...
Fixes #3619
2013-02-05 13:06:42 +01:00
Gunnar Beutner
c4293cfa25
Added init script.
...
Fixes #3114
2013-02-04 12:52:39 +01:00
Gunnar Beutner
789fd23d77
Windows build fix.
2013-02-04 09:58:45 +01:00
Gunnar Beutner
2834edfd71
Bugfix: Deadlock in SigHupHandler due to Event::Post not being signal-safe
...
Fixes #3622
2013-02-03 16:00:53 +01:00
Gunnar Beutner
ba49fd38e1
Delete removed config objects after SIGHUP
...
Fixes #3620
2013-02-03 12:26:22 +01:00
Gunnar Beutner
975915bb6f
Implemented reloading the config using SIGHUP.
2013-02-03 11:46:17 +01:00
Gunnar Beutner
5774792a23
Implemented --version and made --help output prettier.
2013-02-03 01:21:11 +01:00
Gunnar Beutner
d853bcb286
Bugfix: Used incorrect variable for CompileFile() call.
2013-02-03 00:02:08 +01:00
Gunnar Beutner
c3a73dde1e
Gracefully deal with unknown command-line options.
2013-02-02 23:29:02 +01:00
Gunnar Beutner
dbf762e771
Use boost::program_options to parse arguments.
...
Fixes #3536
Fixes #3184
2013-02-02 23:22:27 +01:00
Gunnar Beutner
33aba14197
Implement type keyword in the config compiler
...
Fixes #3616
2013-02-02 14:28:11 +01:00
Gunnar Beutner
1804caf3b8
Fixed log facility for messages from icinga-app.
2013-02-01 22:52:26 +01:00
Gunnar Beutner
00b827d5cf
Implement search dirs for #include.
...
Fixes #3599
2013-02-01 22:44:58 +01:00
Gunnar Beutner
ff0e6d91d2
Move exception_handler into libbase. Add handler for SIGABRT.
...
Fixes #3590
2013-01-30 11:51:15 +01:00
Gunnar Beutner
70c66fa542
Implemented the #library directive and fixed loading icinga.dll on Windows.
2013-01-17 15:05:34 +01:00
Gunnar Beutner
ebe4a21dd5
Fixed example config.
2012-10-15 17:55:54 +02:00
Michael Friedrich
2468fa8f4d
Config: remove log_path config option from IcingaApplication (refs #3277 )
2012-10-15 14:39:49 +02:00
Gunnar Beutner
a0e608ce97
Example config: Renamed host "localhost-i2" to "localhost".
2012-10-12 13:14:44 +02:00
Michael Friedrich
44db66d79c
Config: only use one sample localhost
2012-10-12 12:44:12 +02:00
Michael Friedrich
a2f099e0d0
Config: add Logger to win32 config too, for debug console
2012-10-12 00:43:39 +02:00
Michael Friedrich
abcf7672c4
update .gitignore for docs and binaries
2012-10-11 16:20:37 +02:00
Gunnar Beutner
a63ef86869
Remove path spec from the console logger.
2012-10-11 10:27:58 +02:00
Michael Friedrich
9b9d4903ee
Config: add a demo service example (since #3250 is now fixed)
2012-10-09 00:27:35 +02:00
Michael Friedrich
0f19f24843
Config: add Logger with debug severity by default
2012-10-09 00:24:58 +02:00
Michael Friedrich
836bc067cd
Config: add more example config for an icinga2 localhost ( fixes #3256 )
2012-10-08 00:21:56 +02:00
Michael Friedrich
19faa2a755
Compat IDO: update documentation for reconnect_interval (refs #3207 )
2012-10-07 22:24:54 +02:00
Michael Friedrich
b9342442e7
Configuration: add windows based sample config file #3233
...
the first sample, with files in the same dir where icinga-app.exe will
be started. furthermore, this requires winping.exe to be put into
C:\Plugins (from https://www.itefix.no/i2/check_winping )
fixes #3233
2012-10-04 16:00:36 +02:00
Michael Friedrich
c2bad406ef
Configuration: use underscore in attributes, document all using new locations
...
... from #3228
fixes #3222
2012-10-02 14:44:57 +02:00
Gunnar Beutner
115489a531
Fixed loading components when using a custom --libdir.
2012-10-02 09:26:17 +02:00
Gunnar Beutner
e6254baea3
Fixed linking against compatido when using --disable-shared.
2012-09-28 15:30:42 +02:00
Michael Friedrich
edb9a47c97
compat: add config options: {status,objects}path
...
requires automake target for localstatedir as default, if not set.
refs #2796
2012-09-28 14:26:01 +02:00
Gunnar Beutner
47fa56a805
Added methods for retrieving the installation prefix and local state dir.
2012-09-28 13:16:08 +02:00
Gunnar Beutner
23cd92803b
Removed obsolete config files.
2012-09-28 12:37:18 +02:00
Michael Friedrich
550a7959d7
compatido: add config options: socket_{address, port}, instance_name
...
fixes #3158
2012-09-28 12:13:50 +02:00
Michael Friedrich
ea9309096c
Merge branch 'master' into mfriedrich/compatido
2012-09-27 15:10:04 +02:00
Gunnar Beutner
bd37c357d1
Build fix for Windows.
2012-09-27 10:14:45 +02:00
Gunnar Beutner
0cb232f494
Handle some exceptions that previously caused crashes.
2012-09-27 09:58:16 +02:00
Gunnar Beutner
c5479057f7
Make exception messages more verbose.
2012-09-27 09:38:28 +02:00
Gunnar Beutner
5157853af9
Add right lib dir to the search path.
2012-09-26 12:08:07 +02:00
Gunnar Beutner
d6874052c6
Removed example certificates.
...
Fixes #3180
2012-09-26 10:49:40 +02:00
Gunnar Beutner
ca5593eb66
Install icinga2 binary in $PREFIX/sbin rather than $PREFIX/bin.
2012-09-26 09:56:28 +02:00
Michael Friedrich
d0ed2a4840
Merge branch 'master' into mfriedrich/compatido
2012-09-25 15:27:14 +02:00
Gunnar Beutner
0d77919057
Removed references to Nagios from the example config.
2012-09-25 15:26:06 +02:00
Michael Friedrich
a96a77c87c
compatidio: add a comment sample component to icinga2.conf.dist
2012-09-25 15:21:33 +02:00
Michael Friedrich
c726adb550
Merge branch 'master' into mfriedrich/compatido
2012-09-25 15:18:15 +02:00
Gunnar Beutner
8c491cb545
Added documentation for the example config file.
2012-09-25 13:46:28 +02:00
Gunnar Beutner
a4fa8950c4
Implemented lexer rules for time durations.
...
Fixes #3073
2012-09-25 11:17:04 +02:00
Michael Friedrich
8886155fb0
Merge branch 'master' into mfriedrich/compatido
2012-09-25 11:07:17 +02:00
Gunnar Beutner
f53f8e64fd
Renamed NagiosCheckTask to PluginCheckTask.
...
Fixes #3146
2012-09-25 09:08:50 +02:00
Michael Friedrich
f5d2924452
Merge branch 'master' into mfriedrich/compatido
...
Conflicts:
components/Makefile.am
configure.ac
icinga2.sln
2012-09-24 17:48:46 +02:00
Michael Friedrich
81c3f07f13
compatido: add commented component example to icinga-standalone.conf
2012-09-22 18:17:37 +02:00
Gunnar Beutner
b9b009b6da
Build fix for Windows.
2012-09-21 16:28:14 +02:00
Gunnar Beutner
bb8935fe9b
Added Win64 build support.
2012-09-21 16:15:36 +02:00
Gunnar Beutner
de29105e43
Fixed module path for 64-bit RHEL.
...
Fixes #3150
2012-09-21 15:14:26 +02:00
Gunnar Beutner
5921337b46
Merged convenience component into libicinga.
2012-09-21 13:49:14 +02:00
Gunnar Beutner
d272f0d19d
Fix: missing files in the dist tarball
2012-09-18 13:19:27 +02:00
Gunnar Beutner
86c0aff719
Build fix for Windows.
2012-09-17 11:13:35 +02:00
Gunnar Beutner
093931a1d3
Renamed icinga binary to icinga2 to avoid conflicts with Icinga 1.x
2012-09-17 09:48:34 +02:00
Gunnar Beutner
636acd1a2c
Add missing Makefile.am.
2012-09-17 09:36:51 +02:00
Gunnar Beutner
a6828f57d3
Fixed a typo in the example config.
2012-09-14 15:41:14 +02:00
Gunnar Beutner
5c5db5b3a5
Added example config files and updated the build script so they get installed.
2012-09-14 11:35:30 +02:00
Gunnar Beutner
7e0fa1ce13
Renamed component: cibsync -> replication
2012-09-14 10:52:57 +02:00
Gunnar Beutner
b996635a91
Report version number at startup.
2012-09-10 14:44:54 +02:00
Gunnar Beutner
8e4bdf3872
Build fixes for Windows.
2012-09-10 14:35:01 +02:00
Gunnar Beutner
037e3d913b
Refactored the libraries.
2012-09-10 14:07:32 +02:00
Gunnar Beutner
c7b29c6b46
Build fix for Windows.
2012-09-07 11:46:38 +02:00
Gunnar Beutner
9bc93ce4a9
Renamed 'doc' to 'docs'.
...
Moved Doxygen files to docs/.
Removed cJSON directory.
Moved libraries into lib/.
Renamed 'config' to 'm4'.
Renamed 'dyn' library to 'config'.
2012-09-07 10:27:31 +02:00
Gunnar Beutner
dc6246642f
Implemented replication for Endpoint objects.
2012-09-03 10:29:02 +02:00