]> granicus.if.org Git - icinga2/log
icinga2
11 years agoFinish implementing %validator.
Gunnar Beutner [Wed, 6 Feb 2013 11:09:50 +0000 (12:09 +0100)]
Finish implementing %validator.

Fixes #3634

11 years agoBugfix: Add missing parenthesis in function call.
Gunnar Beutner [Wed, 6 Feb 2013 10:39:32 +0000 (11:39 +0100)]
Bugfix: Add missing parenthesis in function call.

11 years agoFixed incorrect variable name.
Gunnar Beutner [Wed, 6 Feb 2013 10:09:52 +0000 (11:09 +0100)]
Fixed incorrect variable name.

11 years agoImplement AsyncTask::Wait() and make completion callbacks optional.
Gunnar Beutner [Wed, 6 Feb 2013 09:53:28 +0000 (10:53 +0100)]
Implement AsyncTask::Wait() and make completion callbacks optional.

11 years agoMade command-line arguments more Unix-compliant.
Gunnar Beutner [Wed, 6 Feb 2013 08:45:44 +0000 (09:45 +0100)]
Made command-line arguments more Unix-compliant.

11 years agoConfig: Implement detection of missing required attributes
Gunnar Beutner [Tue, 5 Feb 2013 23:32:05 +0000 (00:32 +0100)]
Config: Implement detection of missing required attributes

Fixes #3627

11 years agoFixed grammar mistake.
Gunnar Beutner [Tue, 5 Feb 2013 19:23:47 +0000 (20:23 +0100)]
Fixed grammar mistake.

11 years agoFixed FreeBSD build.
Gunnar Beutner [Tue, 5 Feb 2013 19:01:52 +0000 (20:01 +0100)]
Fixed FreeBSD build.

11 years agoAdded 'clean' rule for docs/.
Gunnar Beutner [Tue, 5 Feb 2013 15:35:22 +0000 (16:35 +0100)]
Added 'clean' rule for docs/.

11 years agoDocumentation: implement make target for asciidoc generation
Gunnar Beutner [Tue, 5 Feb 2013 15:30:34 +0000 (16:30 +0100)]
Documentation: implement make target for asciidoc generation

Fixes #3230

11 years agoImplement validateOnly flag for LoadConfigFiles().
Gunnar Beutner [Tue, 5 Feb 2013 15:16:34 +0000 (16:16 +0100)]
Implement validateOnly flag for LoadConfigFiles().

11 years agoFix warnings on initial startup (i.e. without a state file).
Gunnar Beutner [Tue, 5 Feb 2013 14:43:38 +0000 (15:43 +0100)]
Fix warnings on initial startup (i.e. without a state file).

Fixes #3606

11 years agoFixed default path for the icinga2.state file.
Gunnar Beutner [Tue, 5 Feb 2013 14:39:20 +0000 (15:39 +0100)]
Fixed default path for the icinga2.state file.

11 years agoUpdate documentation: Types, #include <>
Gunnar Beutner [Tue, 5 Feb 2013 14:31:29 +0000 (15:31 +0100)]
Update documentation: Types, #include <>

Fixes #3624

11 years agoWindows build fix.
Gunnar Beutner [Tue, 5 Feb 2013 12:19:01 +0000 (13:19 +0100)]
Windows build fix.

11 years agoValidate config objects before trying to activate them.
Gunnar Beutner [Tue, 5 Feb 2013 12:06:42 +0000 (13:06 +0100)]
Validate config objects before trying to activate them.

Fixes #3619

11 years agoupdate .gitignore
Michael Friedrich [Mon, 4 Feb 2013 17:36:21 +0000 (18:36 +0100)]
update .gitignore

11 years agoDocumentation: implement make target for asciidoc generation
Michael Friedrich [Mon, 4 Feb 2013 17:33:35 +0000 (18:33 +0100)]
Documentation: implement make target for asciidoc generation

similar to 1.x, 'make create-docs'

fixes #3230

11 years agoFixed default host template.
Gunnar Beutner [Mon, 4 Feb 2013 11:58:16 +0000 (12:58 +0100)]
Fixed default host template.

11 years agoAdded init script.
Gunnar Beutner [Mon, 4 Feb 2013 11:43:16 +0000 (12:43 +0100)]
Added init script.

Fixes #3114

11 years agoWindows build fix.
Gunnar Beutner [Mon, 4 Feb 2013 08:58:45 +0000 (09:58 +0100)]
Windows build fix.

11 years agoFixed default paths for icinga2.state and icinga2.pid files.
Gunnar Beutner [Mon, 4 Feb 2013 08:48:37 +0000 (09:48 +0100)]
Fixed default paths for icinga2.state and icinga2.pid files.

11 years agoRemoved stray space in service definition.
Gunnar Beutner [Sun, 3 Feb 2013 16:36:19 +0000 (17:36 +0100)]
Removed stray space in service definition.

11 years agoService::CheckCompletedHandler: Convert exceptions to fake check results.
Gunnar Beutner [Sun, 3 Feb 2013 15:32:31 +0000 (16:32 +0100)]
Service::CheckCompletedHandler: Convert exceptions to fake check results.

11 years agoBugfix: Deadlock in SigHupHandler due to Event::Post not being signal-safe
Gunnar Beutner [Sun, 3 Feb 2013 15:00:53 +0000 (16:00 +0100)]
Bugfix: Deadlock in SigHupHandler due to Event::Post not being signal-safe

Fixes #3622

11 years agoBugfix: Crash while reloading config
Gunnar Beutner [Sun, 3 Feb 2013 14:47:11 +0000 (15:47 +0100)]
Bugfix: Crash while reloading config

Fixes #3621

11 years agoDelete removed config objects after SIGHUP
Gunnar Beutner [Sun, 3 Feb 2013 11:26:22 +0000 (12:26 +0100)]
Delete removed config objects after SIGHUP

Fixes #3620

11 years agoImplemented reloading the config using SIGHUP.
Gunnar Beutner [Sun, 3 Feb 2013 10:46:17 +0000 (11:46 +0100)]
Implemented reloading the config using SIGHUP.

11 years agoTypes: Added service attributes to the host type.
Gunnar Beutner [Sun, 3 Feb 2013 10:45:56 +0000 (11:45 +0100)]
Types: Added service attributes to the host type.

11 years agoPrint DebugInfo for failed #includes
Gunnar Beutner [Sun, 3 Feb 2013 00:41:00 +0000 (01:41 +0100)]
Print DebugInfo for failed #includes

Fixes #3613

11 years agoBugfix: Make sure Utility::Glob return false if no matching files were found.
Gunnar Beutner [Sun, 3 Feb 2013 00:30:19 +0000 (01:30 +0100)]
Bugfix: Make sure Utility::Glob return false if no matching files were found.

11 years agoImplemented --version and made --help output prettier.
Gunnar Beutner [Sun, 3 Feb 2013 00:21:11 +0000 (01:21 +0100)]
Implemented --version and made --help output prettier.

11 years agoBugfix: Used incorrect variable for CompileFile() call.
Gunnar Beutner [Sat, 2 Feb 2013 23:02:08 +0000 (00:02 +0100)]
Bugfix: Used incorrect variable for CompileFile() call.

11 years agoGracefully deal with unknown command-line options.
Gunnar Beutner [Sat, 2 Feb 2013 22:29:02 +0000 (23:29 +0100)]
Gracefully deal with unknown command-line options.

11 years agoUse boost::program_options to parse arguments.
Gunnar Beutner [Sat, 2 Feb 2013 22:22:27 +0000 (23:22 +0100)]
Use boost::program_options to parse arguments.

Fixes #3536
Fixes #3184

11 years agoFixed compiler warnings (-Wextra).
Gunnar Beutner [Sat, 2 Feb 2013 21:13:11 +0000 (22:13 +0100)]
Fixed compiler warnings (-Wextra).

11 years agoThrow exception in Utility::ToDouble/Utility::ToLong
Gunnar Beutner [Sat, 2 Feb 2013 19:19:00 +0000 (20:19 +0100)]
Throw exception in Utility::ToDouble/Utility::ToLong

Fixes #3617

11 years agoFixed types for DynamicObject::__name and DynamicObject::_type.
Gunnar Beutner [Sat, 2 Feb 2013 19:17:33 +0000 (20:17 +0100)]
Fixed types for DynamicObject::__name and DynamicObject::_type.

11 years agoRemoved some debug output.
Gunnar Beutner [Sat, 2 Feb 2013 19:06:56 +0000 (20:06 +0100)]
Removed some debug output.

11 years agoBugfix: Don't copy the enable_checks attribute to child services.
Gunnar Beutner [Sat, 2 Feb 2013 19:05:18 +0000 (20:05 +0100)]
Bugfix: Don't copy the enable_checks attribute to child services.

11 years agoRemoved the old-style validation code.
Gunnar Beutner [Sat, 2 Feb 2013 19:00:02 +0000 (20:00 +0100)]
Removed the old-style validation code.

11 years agoBugfixes for the type validation feature.
Gunnar Beutner [Sat, 2 Feb 2013 18:56:23 +0000 (19:56 +0100)]
Bugfixes for the type validation feature.

11 years agoImplement type keyword in the config compiler
Gunnar Beutner [Sat, 2 Feb 2013 13:28:11 +0000 (14:28 +0100)]
Implement type keyword in the config compiler

Fixes #3616

11 years agoAdded missing const qualifiers.
Gunnar Beutner [Sat, 2 Feb 2013 08:19:49 +0000 (09:19 +0100)]
Added missing const qualifiers.

11 years agoConfig: implement support for wildcard includes
Gunnar Beutner [Fri, 1 Feb 2013 23:28:00 +0000 (00:28 +0100)]
Config: implement support for wildcard includes

Fixes #2771

11 years agoWindows build fix.
Gunnar Beutner [Fri, 1 Feb 2013 22:10:48 +0000 (23:10 +0100)]
Windows build fix.

11 years agoFixed log facility for messages from icinga-app.
Gunnar Beutner [Fri, 1 Feb 2013 21:52:26 +0000 (22:52 +0100)]
Fixed log facility for messages from icinga-app.

11 years agoImplement search dirs for #include.
Gunnar Beutner [Fri, 1 Feb 2013 21:44:58 +0000 (22:44 +0100)]
Implement search dirs for #include.

Fixes #3599

11 years agoBuild fix for Windows.
Gunnar Beutner [Fri, 1 Feb 2013 18:36:47 +0000 (19:36 +0100)]
Build fix for Windows.

11 years agoBugfix: Unhandled exception in Service::CheckTimerHandler.
Gunnar Beutner [Fri, 1 Feb 2013 18:27:36 +0000 (19:27 +0100)]
Bugfix: Unhandled exception in Service::CheckTimerHandler.

Fixes #3607

11 years agoDisplay "debug message" for exceptions (in addition to SIGABRT).
Gunnar Beutner [Fri, 1 Feb 2013 18:11:15 +0000 (19:11 +0100)]
Display "debug message" for exceptions (in addition to SIGABRT).

11 years agoFixed some more compiler warnings (when using -Wall).
Gunnar Beutner [Fri, 1 Feb 2013 18:02:07 +0000 (19:02 +0100)]
Fixed some more compiler warnings (when using -Wall).

11 years agoBug: clearing attributes should only reset their value and tx rather than deleting...
Gunnar Beutner [Fri, 1 Feb 2013 18:01:51 +0000 (19:01 +0100)]
Bug: clearing attributes should only reset their value and tx rather than deleting them entirely

Fixes #3604

11 years agoFixed some compiler warnings.
Gunnar Beutner [Fri, 1 Feb 2013 14:44:03 +0000 (15:44 +0100)]
Fixed some compiler warnings.

11 years agoUpdated messages in the SIGABRT handler.
Gunnar Beutner [Fri, 1 Feb 2013 13:46:06 +0000 (14:46 +0100)]
Updated messages in the SIGABRT handler.

11 years agoRemoved assert()s in ConfigItemBuilder::Compile.
Gunnar Beutner [Fri, 1 Feb 2013 13:45:55 +0000 (14:45 +0100)]
Removed assert()s in ConfigItemBuilder::Compile.

11 years agoMade warning and critical messages bold.
Gunnar Beutner [Fri, 1 Feb 2013 13:21:11 +0000 (14:21 +0100)]
Made warning and critical messages bold.

11 years agoImplemented colored log messages.
Gunnar Beutner [Fri, 1 Feb 2013 13:12:24 +0000 (14:12 +0100)]
Implemented colored log messages.

11 years agoConfig: Warn about unknown attributes.
Gunnar Beutner [Fri, 1 Feb 2013 13:11:22 +0000 (14:11 +0100)]
Config: Warn about unknown attributes.

11 years agoBugfix: Missing parent object causes assert in ReplicationComponent::Stop
Gunnar Beutner [Fri, 1 Feb 2013 10:46:52 +0000 (11:46 +0100)]
Bugfix: Missing parent object causes assert in ReplicationComponent::Stop

Fixes #3601

11 years agoInitial commit of the Icinga Template Library.
Gunnar Beutner [Fri, 1 Feb 2013 10:39:06 +0000 (11:39 +0100)]
Initial commit of the Icinga Template Library.

Fixes #2977

11 years agoBugfix: Use service names instead of aliases.
Gunnar Beutner [Fri, 1 Feb 2013 09:51:45 +0000 (10:51 +0100)]
Bugfix: Use service names instead of aliases.

11 years agoImplement Service::OnCheckResultReceived, rename ServiceStateChangeMessage to CheckRe...
Gunnar Beutner [Thu, 31 Jan 2013 15:49:40 +0000 (16:49 +0100)]
Implement Service::OnCheckResultReceived, rename ServiceStateChangeMessage to CheckResultMessage

Fixes #3597

11 years agoDon't use exceptions in CommentProcessor::Get*.
Gunnar Beutner [Thu, 31 Jan 2013 15:23:02 +0000 (16:23 +0100)]
Don't use exceptions in CommentProcessor::Get*.

Fixes 3595

11 years agoConfig: Changing a template ConfigItem must cause child ConfigObjects to be updated.
Gunnar Beutner [Thu, 31 Jan 2013 14:26:54 +0000 (15:26 +0100)]
Config: Changing a template ConfigItem must cause child ConfigObjects to be updated.

Fixes #2791

11 years agoImplement triggered downtime for services.
Gunnar Beutner [Thu, 31 Jan 2013 12:57:14 +0000 (13:57 +0100)]
Implement triggered downtime for services.

Fixes #3583

11 years agoUse boost::lexical_cast instead of stringstreams.
Gunnar Beutner [Thu, 31 Jan 2013 09:10:51 +0000 (10:10 +0100)]
Use boost::lexical_cast instead of stringstreams.

11 years agoBugfix: Use service name in status.dat (rather than alias).
Gunnar Beutner [Thu, 31 Jan 2013 08:51:37 +0000 (09:51 +0100)]
Bugfix: Use service name in status.dat (rather than alias).

11 years agoFixed building with --disable-shared.
Gunnar Beutner [Wed, 30 Jan 2013 22:52:11 +0000 (23:52 +0100)]
Fixed building with --disable-shared.

11 years agoFixed indentation bug in Expression::DumpValue().
Gunnar Beutner [Wed, 30 Jan 2013 22:15:37 +0000 (23:15 +0100)]
Fixed indentation bug in Expression::DumpValue().

11 years agoConfig: Implement dumping the config in text form
Gunnar Beutner [Wed, 30 Jan 2013 22:02:46 +0000 (23:02 +0100)]
Config: Implement dumping the config in text form

Fixes #2754

11 years agoFixed incorrect parameters for memset().
Gunnar Beutner [Wed, 30 Jan 2013 19:49:25 +0000 (20:49 +0100)]
Fixed incorrect parameters for memset().

11 years agoBugfix: some legacy_id changes didn't cause the cache to get updated.
Gunnar Beutner [Wed, 30 Jan 2013 14:10:51 +0000 (15:10 +0100)]
Bugfix: some legacy_id changes didn't cause the cache to get updated.

11 years agoRemove expired comments and downtimes.
Gunnar Beutner [Wed, 30 Jan 2013 13:28:13 +0000 (14:28 +0100)]
Remove expired comments and downtimes.

11 years agoImplement external commands SCHEDULE_HOSTGROUP_SVC_DOWNTIME and SCHEDULE_SERVICEGROUP...
Gunnar Beutner [Wed, 30 Jan 2013 12:23:00 +0000 (13:23 +0100)]
Implement external commands SCHEDULE_HOSTGROUP_SVC_DOWNTIME and SCHEDULE_SERVICEGROUP_HOST_DOWNTIME

Fixes #3582

11 years agoMake sure comment/downtime legacy IDs are always unique (even in a cluster context).
Gunnar Beutner [Wed, 30 Jan 2013 12:02:20 +0000 (13:02 +0100)]
Make sure comment/downtime legacy IDs are always unique (even in a cluster context).

11 years agoMove exception_handler into libbase. Add handler for SIGABRT.
Gunnar Beutner [Wed, 30 Jan 2013 10:51:15 +0000 (11:51 +0100)]
Move exception_handler into libbase. Add handler for SIGABRT.

Fixes #3590

11 years agoBugfix: look up legacy_id for triggered_by downtimes.
Gunnar Beutner [Wed, 30 Jan 2013 10:10:47 +0000 (11:10 +0100)]
Bugfix: look up legacy_id for triggered_by downtimes.

11 years agoBugfix: Loading state files was broken.
Gunnar Beutner [Wed, 30 Jan 2013 09:52:52 +0000 (10:52 +0100)]
Bugfix: Loading state files was broken.

Fixes #3562

11 years agoUse UUIDs to uniquely identify comments and downtimes.
Gunnar Beutner [Wed, 30 Jan 2013 08:59:22 +0000 (09:59 +0100)]
Use UUIDs to uniquely identify comments and downtimes.

11 years agoRemoved obsolete ltdldir variable.
Gunnar Beutner [Wed, 30 Jan 2013 08:19:58 +0000 (09:19 +0100)]
Removed obsolete ltdldir variable.

11 years agoImplement Utility::NewUUID().
Gunnar Beutner [Wed, 30 Jan 2013 08:08:48 +0000 (09:08 +0100)]
Implement Utility::NewUUID().

Fixes #3589

11 years agoGet rid of the 'rm -r' stuff in autogen.sh
Gunnar Beutner [Wed, 30 Jan 2013 07:42:13 +0000 (08:42 +0100)]
Get rid of the 'rm -r' stuff in autogen.sh

11 years agofix ltdl detection once again refs #3021
Michael Friedrich [Tue, 29 Jan 2013 16:24:26 +0000 (17:24 +0100)]
fix ltdl detection once again refs #3021

11 years agoUpdated VS project files.
Gunnar Beutner [Tue, 29 Jan 2013 15:37:44 +0000 (16:37 +0100)]
Updated VS project files.

11 years agoImplemented comments.
Gunnar Beutner [Tue, 29 Jan 2013 15:29:09 +0000 (16:29 +0100)]
Implemented comments.

Fixes #3558

11 years agoUpdated VS project files.
Gunnar Beutner [Tue, 29 Jan 2013 14:02:53 +0000 (15:02 +0100)]
Updated VS project files.

11 years agoRenamed ExternalCommand to ExternalCommandProcessor.
Gunnar Beutner [Tue, 29 Jan 2013 14:00:39 +0000 (15:00 +0100)]
Renamed ExternalCommand to ExternalCommandProcessor.

Fixes #3579

11 years agoBugfix: DowntimeProcessor::AddDowntime() should return new downtime ID.
Gunnar Beutner [Tue, 29 Jan 2013 14:00:06 +0000 (15:00 +0100)]
Bugfix: DowntimeProcessor::AddDowntime() should return new downtime ID.

11 years agoAdd some more missing files.
Gunnar Beutner [Tue, 29 Jan 2013 13:52:30 +0000 (14:52 +0100)]
Add some more missing files.

11 years agoAdded missing files.
Gunnar Beutner [Tue, 29 Jan 2013 13:50:51 +0000 (14:50 +0100)]
Added missing files.

11 years agoproper return value checking of libtoolize dry-run refs #3021
Michael Friedrich [Tue, 29 Jan 2013 14:34:08 +0000 (15:34 +0100)]
proper return value checking of libtoolize dry-run refs #3021

ran into that with debian squeeze and sh.

11 years agofix ltdl detection failure on CentOS6 fixes #3021
Michael Friedrich [Tue, 29 Jan 2013 13:40:46 +0000 (14:40 +0100)]
fix ltdl detection failure on CentOS6 fixes #3021

libtoolize on the subshell cannot produce exit errors,
so we check as queit dry-run first and put an error to
the user.

tested on centos 6.3 x64, as well as debian wheezy with
temporarly removed /usr/share/libtool/libltdl/COPYING.LIB

11 years agoImplement downtimes.
Gunnar Beutner [Tue, 29 Jan 2013 13:19:54 +0000 (14:19 +0100)]
Implement downtimes.

Fixes #2833

11 years agoAllow T_STRING for dictionary keys.
Gunnar Beutner [Tue, 29 Jan 2013 11:11:05 +0000 (12:11 +0100)]
Allow T_STRING for dictionary keys.

Fixes #3581

11 years agoImplement Convert class, move existing type conversion functionality there
Gunnar Beutner [Tue, 29 Jan 2013 11:05:46 +0000 (12:05 +0100)]
Implement Convert class, move existing type conversion functionality there

Fixes #3580

11 years agoSchedule pending services using the retry interval.
Gunnar Beutner [Mon, 28 Jan 2013 12:38:18 +0000 (13:38 +0100)]
Schedule pending services using the retry interval.

11 years agoUnset force_next_check after each check.
Gunnar Beutner [Mon, 28 Jan 2013 12:24:51 +0000 (13:24 +0100)]
Unset force_next_check after each check.

11 years agoFixed incorrect variable name in ReplicationComponent::ServiceStateChangeRequestHandler.
Gunnar Beutner [Mon, 28 Jan 2013 09:07:48 +0000 (10:07 +0100)]
Fixed incorrect variable name in ReplicationComponent::ServiceStateChangeRequestHandler.

11 years agoDecreased minimum check interval to 5 seconds.
Gunnar Beutner [Mon, 28 Jan 2013 08:48:20 +0000 (09:48 +0100)]
Decreased minimum check interval to 5 seconds.