Commit Graph

2892 Commits

Author SHA1 Message Date
Markus Frosch 16e1da530f Debian: Added checkconfig helper to initscript.
And simplified check handling over all functions.

Refs #5305
2013-12-11 15:33:47 +01:00
Markus Frosch 4c8f1f3d9d Debian: Added DAEMON_(USER|GROUP) to init/default for config checking.
Config should be checked with the actual uid/gid Icinga 2 will run under.

Also moved "-d" to the actual start-stop-daemon call.

Fixes #5299
2013-12-11 15:31:54 +01:00
Gunnar Beutner c410ca0b54 Fix incorrect permissions for key files.
Fixes #5300
2013-12-11 15:14:24 +01:00
Gunnar Beutner 3c1fc98f5c Fix incorrect attribute names in the documentation.
Fixes #5303
2013-12-11 15:12:20 +01:00
Markus Frosch 2ca8be6ecd Debian: only update icinga-version.h.fallback when in a GIT repo.
This avoids the version coming out as GIT-UNKNOWN after chroot builds.

Fixes #5294
2013-12-11 13:23:29 +01:00
Johannes Meyer 66845d05f8 Fix crash when a command is executed that affects check services
fixes #5297
2013-12-11 12:43:18 +01:00
Michael Friedrich 83e20ba02e Livestatus: Fix check_command_expanded column.
Fixes #5296
2013-12-11 10:18:23 +01:00
Paul Richards 32ca25c7ef NSCA-ng Vagrant Support: add nsca user to icingacmd group, move nsca-ng
config files and set appropriate file permissions.

Fixes #5222

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2013-12-09 22:11:37 +01:00
Gunnar Beutner af6df9f268 Improve compatibility with Windows.
Fixes #5287
2013-12-09 13:46:53 +01:00
Michael Friedrich 085fca90ad Fix missing comment_data column in downtime tables.
Fixes #5282
2013-12-09 13:30:13 +01:00
Gunnar Beutner 3d7c103035 Fix deadlock in ServiceDbConnect::Add{Comments,Downtimes}.
Fixes #5286
2013-12-09 13:22:50 +01:00
Gunnar Beutner 03a0815357 Fix syntax error in mail-notification.sh.
Fixes #5285
2013-12-09 13:03:08 +01:00
Gunnar Beutner ab2e1e99e2 ScriptVariableRegistry::GetInstance should not be defined inline.
Fixes #5284
2013-12-09 12:26:25 +01:00
Gunnar Beutner 5e9ce84c17 Fix duplicate IDs in queries for comments/downtimes.
Fixes #5283
2013-12-09 12:22:54 +01:00
Gunnar Beutner 0b41af7639 Just write objects.cache file once.
Fixes #5270
2013-12-09 10:27:45 +01:00
Gunnar Beutner 203cf73bf7 Improve error messages for the check result reader.
Fixes #5275
2013-12-09 09:52:09 +01:00
Gunnar Beutner 3b99dc1e84 Fix incorrect value for the triggered_by_id column.
Fixes #5279
2013-12-09 09:22:04 +01:00
Markus Frosch 9bee1aaef6 Debian: Make sure to enable default features due when updating.
The last fix for that missed handling upgrading between versions, so we now
enable features when upgrading from before 0.0.5+icingasnap201312070000.

This enabling will include any release package previously installed.

Fixes #5102
2013-12-06 20:04:07 +01:00
Gunnar Beutner 41ded2858c Implement scheduled downtimes.
Fixes #3584
2013-12-06 13:45:18 +01:00
Michael Friedrich 99f2b0673e RPM: Don't re-enable disabled features on update, proper remove on uninstall.
Fixes #5267
2013-12-05 13:15:44 +01:00
Gunnar Beutner 5e95dd71be Merge branch 'feature/timeperiod-fixes-5268' into next
Fixes #5268
2013-12-05 12:32:06 +01:00
Gunnar Beutner bb652ff335 Rename one of the example timeperiods.
Refs #5268
2013-12-05 12:30:39 +01:00
Gunnar Beutner e2941dbca8 Make sure that TimePeriod segments are being merged properly.
Refs #5268
2013-12-05 12:30:02 +01:00
Michael Friedrich fa14b39719 DB IDO: Fix reconnect config/status inserts.
Fixes #5266
2013-12-05 12:12:57 +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 02e0933e7c Make status.dat/objects.cache interval configurable.
Fixes #5262
2013-12-05 10:04:49 +01:00
Gunnar Beutner aa4c2b9542 Add unit test for Stream::ReadLine.
Fixes #5077
2013-12-05 09:57:12 +01:00
Gunnar Beutner f67343967c Make ICINGA2_{USER,GROUP,COMMAND_USER,COMMAND_GROUP} variables overwritable.
Fixes #5257
2013-12-05 09:42:42 +01:00
Markus Frosch 751f3ad19b Debian: Made creation of icinga-version.h.fallback safer.
We now use a custom CMakeLists.txt to just create this file without checking
dependencies or doing other stuff.

Idea is to avoid breaking on systems that only create source packages for
chroot builds.

Refs #5261
2013-12-04 20:40:10 +01:00
Markus Frosch 2b7e8ed7ab Debian: Fixed config check and changed DAEMON_ARGS in init script.
Check now actually works, command was incorrect and not properly blocking the
actual action on fail.

Also the config file is now in DAEMON_CONFIG variable.

Fixes #5086
2013-12-04 19:50:10 +01:00
Markus Frosch 1399ac6047 Debian: Made handling of features-enabled respecting disabled features.
The default features now only get enabled on fresh installs. This has been
changed for icinga2-common and icinga2-classicui.

Fixes #5102
2013-12-04 19:06:43 +01:00
Gunnar Beutner 2553287818 Merge branch 'feature/constants-4946' into next
Fixes #4946
2013-12-04 12:14:16 +01:00
Gunnar Beutner 7482548966 Fix: display_name property doesn't work for hosts.
Fixes #5258
2013-12-04 12:07:57 +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 25cece444d Remove Windows example config.
Refs #4946
2013-12-04 11:04:17 +01:00
Gunnar Beutner 30c989074b Implement support for making script variables constant.
Refs #4946
2013-12-04 10:41:26 +01:00
Gunnar Beutner c92625770c Fix leak in the config parser.
Refs #4946
2013-12-04 10:39:46 +01:00
Gunnar Beutner 6625346922 Speed up config compiler.
Fixes #5255
2013-12-03 09:59:21 +01:00
Michael Friedrich 08dc3398a9 Merge branch 'feature/release-0-0-5-5254' into next
Fixes #5254
2013-12-03 09:55:20 +01:00
Michael Friedrich 65481617d2 Clean up configs.
Refs #5254
2013-12-03 09:54:14 +01:00
Michael Friedrich 8a5fd83cd3 Update version to 0.0.5.
Refs #5254
2013-12-03 09:50:18 +01:00
Michael Friedrich d18a00e1e8 Update ChangeLog.
Refs #5254
2013-12-03 09:47:07 +01:00
Gunnar Beutner 77595f9b5a Add context information to PerfdataWriter::CheckResultHandler.
Fixes #4743
2013-12-02 13:34:23 +01:00
Gunnar Beutner 52d2066995 Avoid temporary String objects in PerfdataValue::Format.
Fixes #5248
2013-12-02 12:55:35 +01:00
Gunnar Beutner 2a761fb285 Merge branch 'feature/ido-performance-5246' into next
Fixes #5246
2013-12-02 11:44:21 +01:00
Gunnar Beutner 4648b82b33 Fix compiler warning for Utility::GlobRecursive.
Refs #5246
2013-12-02 11:18:16 +01:00
Gunnar Beutner 29f9117e58 Avoid using dynamic_pointer_cast when possible.
Refs #5246
2013-12-02 11:18:16 +01:00
Gunnar Beutner 954d2d53a2 Further decrease WQ lock contention.
Refs #5246
2013-12-02 11:18:16 +01:00
Gunnar Beutner 553bd3246b Improve compatibility with -fvisibility=hidden.
Refs #5246
2013-12-02 11:07:41 +01:00
Gunnar Beutner f05858d3ad Avoid unnecessary copies when iterating over dictionaries.
Refs #5246
2013-12-02 11:07:38 +01:00