]> granicus.if.org Git - icinga2/log
icinga2
9 years agoLivestatus: Fix missing host downtimes/comments
Michael Friedrich [Fri, 5 Dec 2014 15:31:42 +0000 (16:31 +0100)]
Livestatus: Fix missing host downtimes/comments

fixes #7064

9 years agoRename static timer variables
Michael Friedrich [Fri, 5 Dec 2014 14:55:20 +0000 (15:55 +0100)]
Rename static timer variables

9 years agoScriptUtils: Make sure arguments aren't null
Gunnar Beutner [Fri, 5 Dec 2014 13:59:12 +0000 (14:59 +0100)]
ScriptUtils: Make sure arguments aren't null

fixes #8003

9 years agoUse the boost packages from packages.icinga.org
Gunnar Beutner [Fri, 5 Dec 2014 13:05:08 +0000 (14:05 +0100)]
Use the boost packages from packages.icinga.org

9 years agoImplement validator for the check_interval attribute
Gunnar Beutner [Fri, 5 Dec 2014 11:59:57 +0000 (12:59 +0100)]
Implement validator for the check_interval attribute

fixes #7591

9 years agoExecute checks locally if command_endpoint == local endpoint
Michael Friedrich [Fri, 5 Dec 2014 10:35:00 +0000 (11:35 +0100)]
Execute checks locally if command_endpoint == local endpoint

fixes #7863

9 years agoFix warnings when using CMake 3.1.0
Gunnar Beutner [Thu, 4 Dec 2014 21:02:44 +0000 (22:02 +0100)]
Fix warnings when using CMake 3.1.0

fixes #7894

9 years agoFix crash in the unit tests
Gunnar Beutner [Thu, 4 Dec 2014 20:45:15 +0000 (21:45 +0100)]
Fix crash in the unit tests

fixes #7769

9 years agoFix unity builds on Windows
Gunnar Beutner [Thu, 4 Dec 2014 06:17:33 +0000 (07:17 +0100)]
Fix unity builds on Windows

fixes #7644

9 years agocli: Fix node update-config errors
Michael Friedrich [Thu, 4 Dec 2014 16:22:09 +0000 (17:22 +0100)]
cli: Fix node update-config errors

* fix hosts not created if config and inventory.index are missing.
* fix segfault if host already exists in inventory
* fix that newly listed node hosts are not added to the config repo
* fix repository removal of remove host/services on remote nodes
* fix missing/wrong locks for dictionaries
* fix missing directory create/chown

fixes #7518
fixes #7878
fixes #7917
fixes #7891

Conflicts:
lib/cli/objectlistcommand.cpp

9 years agoUse Icinga 1.x Apache conf
Tim Hardeck [Tue, 2 Dec 2014 17:26:29 +0000 (18:26 +0100)]
Use Icinga 1.x Apache conf

This Apache conf is from Icinga 1.x and should work with Apache 2.2 and
2.4.

fixes #7929

9 years agoAdd missing validator for the socket_path attribute
Gunnar Beutner [Tue, 2 Dec 2014 12:43:36 +0000 (13:43 +0100)]
Add missing validator for the socket_path attribute

refs #7901

9 years agoRemove bashisms from some of the shell scripts
Lars Engels [Fri, 14 Nov 2014 17:28:48 +0000 (18:28 +0100)]
Remove bashisms from some of the shell scripts

fixes #7685

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
9 years agoImplement socket_path attribute for the IdoMysqlConnection class
Gunnar Beutner [Tue, 2 Dec 2014 07:42:21 +0000 (08:42 +0100)]
Implement socket_path attribute for the IdoMysqlConnection class

fixes #7901

9 years agoMove set_permission statement from common to bin
Tim Hardeck [Mon, 1 Dec 2014 19:13:05 +0000 (20:13 +0100)]
Move set_permission statement from common to bin

/var/run/icinga2/cmd was moved from common to bin in Icinga 2.2.0 but
the set_permission statement wasn't moved to bin.

fixes #7914

9 years agoMerge remote-tracking branch 'origin/fix/usr-lib-icinga2_is_not_owned_by_a_package...
Gunnar Beutner [Tue, 2 Dec 2014 07:32:21 +0000 (08:32 +0100)]
Merge remote-tracking branch 'origin/fix/usr-lib-icinga2_is_not_owned_by_a_package-7913'

fixes #7913

9 years agoAdd missing /usr/lib/icinga2 directory to rpm spec
Tim Hardeck [Mon, 1 Dec 2014 18:52:34 +0000 (19:52 +0100)]
Add missing /usr/lib/icinga2 directory to rpm spec

Make sure that the _libexec directory is part of the rpm package
"common".

refs #7913

9 years agoUse _libexecdir instead of static path
Tim Hardeck [Mon, 1 Dec 2014 18:51:11 +0000 (19:51 +0100)]
Use _libexecdir instead of static path

Instead of the static file path /usr/lib/icinga2/ the macro _libexecdir
is used, which is defined at the beginning.

refs #7913

9 years agoFix problem with macro arguments which are not separated by whitespace
Gunnar Beutner [Mon, 1 Dec 2014 14:53:23 +0000 (15:53 +0100)]
Fix problem with macro arguments which are not separated by whitespace

fixes #7314

9 years agoUpdate documentation
Michael Friedrich [Mon, 1 Dec 2014 12:29:42 +0000 (13:29 +0100)]
Update documentation

refs #7903

9 years agoUpdate documentation for 2.2.1
Gunnar Beutner [Mon, 1 Dec 2014 11:09:32 +0000 (12:09 +0100)]
Update documentation for 2.2.1

fixes #7903

9 years agoDon't execute built-in commands on the master in remote command execution mode
Michael Friedrich [Mon, 1 Dec 2014 12:19:07 +0000 (13:19 +0100)]
Don't execute built-in commands on the master in remote command execution mode

fixes #7708

9 years agoFix missing lock in ConfigUpdateHandler()
Michael Friedrich [Mon, 1 Dec 2014 12:18:46 +0000 (13:18 +0100)]
Fix missing lock in ConfigUpdateHandler()

9 years agoFix a memory leak in the ReadLineContext class
Gunnar Beutner [Mon, 1 Dec 2014 09:36:38 +0000 (10:36 +0100)]
Fix a memory leak in the ReadLineContext class

fixes #7602

9 years agoAdd support for Apache 2.4 in the Classic UI config file
Gunnar Beutner [Mon, 1 Dec 2014 09:00:05 +0000 (10:00 +0100)]
Add support for Apache 2.4 in the Classic UI config file

fixes #7739

9 years agoUpdate AUTHORS
Gunnar Beutner [Sat, 29 Nov 2014 19:17:06 +0000 (20:17 +0100)]
Update AUTHORS

9 years agoFix group permission in prepare-dirs
Malte Rabenseifner [Fri, 28 Nov 2014 18:27:31 +0000 (19:27 +0100)]
Fix group permission in prepare-dirs

fixes #7890

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
9 years agoProperly reset the ThreadPool status in Stop
Gunnar Beutner [Fri, 28 Nov 2014 10:32:37 +0000 (11:32 +0100)]
Properly reset the ThreadPool status in Stop

refs #7822

9 years agoFix the Expression unit tests
Gunnar Beutner [Fri, 28 Nov 2014 06:31:37 +0000 (07:31 +0100)]
Fix the Expression unit tests

refs #7822

9 years agoMake the config lexer return an error for unterminated string literals
Gunnar Beutner [Fri, 28 Nov 2014 05:47:52 +0000 (06:47 +0100)]
Make the config lexer return an error for unterminated string literals

fixes #7808

9 years agoMake the config parser thread-safe
Gunnar Beutner [Thu, 27 Nov 2014 07:04:07 +0000 (08:04 +0100)]
Make the config parser thread-safe

fixes #7822

9 years agoShow source line information for the "repl" command
Gunnar Beutner [Fri, 28 Nov 2014 05:28:07 +0000 (06:28 +0100)]
Show source line information for the "repl" command

refs #7805

9 years agoDocs: Fix wrong command reference
Michael Friedrich [Thu, 27 Nov 2014 17:19:38 +0000 (18:19 +0100)]
Docs: Fix wrong command reference

refs #7867

9 years agoCli: Ensure that repository path is created on 'node add' command
Michael Friedrich [Thu, 27 Nov 2014 17:15:14 +0000 (18:15 +0100)]
Cli: Ensure that repository path is created on 'node add' command

fixes #7743

9 years agoUpdate man page for icinga2
Michael Friedrich [Thu, 27 Nov 2014 16:28:49 +0000 (17:28 +0100)]
Update man page for icinga2

$ help2man 'icinga2 daemon' > doc/icinga2.8

fixes #7735

9 years agoDocumentation: Explain macro array support, repeat_key, add icmp example
Michael Friedrich [Thu, 27 Nov 2014 15:57:58 +0000 (16:57 +0100)]
Documentation: Explain macro array support, repeat_key, add icmp example

fixes #7868
fixes #7867

9 years agoRun systemd macros in the correct rpm scripts
Tim Hardeck [Thu, 20 Nov 2014 15:29:17 +0000 (16:29 +0100)]
Run systemd macros in the correct rpm scripts

The systemd Icinga service was moved from the package bin to common in
2.2.0 but most rpm scripts like postun, preun and so on weren't adapted
accordingly.

fixes #7738

9 years agoMove the icinga2-prepare-dirs script to /usr/lib
Gunnar Beutner [Thu, 27 Nov 2014 13:33:26 +0000 (14:33 +0100)]
Move the icinga2-prepare-dirs script to /usr/lib

fixes #7786

9 years agoImplement support for arrays in command arguments
Gunnar Beutner [Wed, 26 Nov 2014 19:43:42 +0000 (20:43 +0100)]
Implement support for arrays in command arguments

fixes #6709

9 years agoDocumentation: Fix wrong wizard information for clients
Christian Jonak [Tue, 25 Nov 2014 17:54:05 +0000 (18:54 +0100)]
Documentation: Fix wrong wizard information for clients

Remote client should not be configured as master, so we need to answer the first question with 'Y'

fixes #7847

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
9 years agoRemove the BuildRequires for yajl-devel (on RHEL 6) because their package is broken
Gunnar Beutner [Thu, 27 Nov 2014 08:53:37 +0000 (09:53 +0100)]
Remove the BuildRequires for yajl-devel (on RHEL 6) because their package is broken

refs #7463

9 years agoFix incorrect operators in GelfWriter::NotificationToUserHandler
Gunnar Beutner [Thu, 27 Nov 2014 08:40:27 +0000 (09:40 +0100)]
Fix incorrect operators in GelfWriter::NotificationToUserHandler

fixes #7866

9 years agoFix crash in CreateCert
Gunnar Beutner [Thu, 27 Nov 2014 08:35:24 +0000 (09:35 +0100)]
Fix crash in CreateCert

fixes #7862

9 years agoRemove the __parent field in the DynamicObject class
Gunnar Beutner [Thu, 27 Nov 2014 05:31:43 +0000 (06:31 +0100)]
Remove the __parent field in the DynamicObject class

refs #7748

9 years agoAdd label option to snmp ckecks
Carlos Cesario [Wed, 26 Nov 2014 18:45:40 +0000 (16:45 -0200)]
Add label option to snmp ckecks

Add label option to snmpv3 and snmp snmp-interface commands. Based on attached files to ticket #7545.

fixes #7545

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
9 years agoAdd more options to snmp-interface command
Carlos Cesario [Wed, 26 Nov 2014 17:16:55 +0000 (15:16 -0200)]
Add more options to snmp-interface command

Add more options to snmp-interface command based on conf file attached on ticket #7136.

fixes #7136

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
9 years agoUpdate AUTHORS
Gunnar Beutner [Wed, 26 Nov 2014 16:40:24 +0000 (17:40 +0100)]
Update AUTHORS

9 years agoAdding missing command
Yohan Jarosz [Wed, 26 Nov 2014 10:16:32 +0000 (11:16 +0100)]
Adding missing command

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
9 years agoAdd build dependency for yajl in the spec file
Gunnar Beutner [Wed, 26 Nov 2014 15:35:29 +0000 (16:35 +0100)]
Add build dependency for yajl in the spec file

fixes #7463

9 years agoFix the init script
Gunnar Beutner [Wed, 26 Nov 2014 05:40:24 +0000 (06:40 +0100)]
Fix the init script

refs #7613

9 years agoDocumentation: Add a note on unique template/object names
Michael Friedrich [Tue, 25 Nov 2014 17:51:53 +0000 (18:51 +0100)]
Documentation: Add a note on unique template/object names

fixes #7671

9 years agoMake sure that user/group exists when starting Icinga 2
Michael Friedrich [Tue, 25 Nov 2014 17:42:13 +0000 (18:42 +0100)]
Make sure that user/group exists when starting Icinga 2

fixes #7173
fixes #7613

9 years agoImplement the %, ^, %=, ^=, &= and |= operators
Gunnar Beutner [Tue, 25 Nov 2014 16:04:20 +0000 (17:04 +0100)]
Implement the %, ^, %=, ^=, &= and |= operators

fixes #7813

9 years agoBuild fix for GCC
Gunnar Beutner [Tue, 25 Nov 2014 11:36:04 +0000 (12:36 +0100)]
Build fix for GCC

refs #7822

9 years agoImplicitly convert Number argument to string for operator +
Gunnar Beutner [Tue, 25 Nov 2014 11:26:49 +0000 (12:26 +0100)]
Implicitly convert Number argument to string for operator +

fixes #7823

9 years agoMove the parser's global variables to the ConfigCompiler class
Gunnar Beutner [Tue, 25 Nov 2014 08:40:32 +0000 (09:40 +0100)]
Move the parser's global variables to the ConfigCompiler class

refs #7822

9 years agoFix parser problem with missing new-lines
Gunnar Beutner [Tue, 25 Nov 2014 07:59:55 +0000 (08:59 +0100)]
Fix parser problem with missing new-lines

refs #7822

9 years agoUse MakeLiteral instead of 'new LiteralExpression'
Gunnar Beutner [Tue, 25 Nov 2014 07:44:47 +0000 (08:44 +0100)]
Use MakeLiteral instead of 'new LiteralExpression'

refs #7822

9 years agoRemove the global m_Expressions variable
Gunnar Beutner [Tue, 25 Nov 2014 07:42:27 +0000 (08:42 +0100)]
Remove the global m_Expressions variable

refs #7822

9 years agoMake SetExpression check whether the LHS is null
Gunnar Beutner [Mon, 24 Nov 2014 16:02:22 +0000 (17:02 +0100)]
Make SetExpression check whether the LHS is null

fixes #7814

9 years agoFix some compiler warnings
Gunnar Beutner [Mon, 24 Nov 2014 17:24:47 +0000 (18:24 +0100)]
Fix some compiler warnings

fixes #7826

9 years agoDisallow - in identifiers
Gunnar Beutner [Mon, 24 Nov 2014 15:54:06 +0000 (16:54 +0100)]
Disallow - in identifiers

fixes #7830

9 years agoImplement the __if and __else keywords
Gunnar Beutner [Mon, 24 Nov 2014 08:53:45 +0000 (09:53 +0100)]
Implement the __if and __else keywords

fixes #7824

9 years agoChange parameter type for include and include_recursive to T_STRING
Gunnar Beutner [Mon, 24 Nov 2014 06:18:37 +0000 (07:18 +0100)]
Change parameter type for include and include_recursive to T_STRING

fixes #7802

9 years agoMove the cast functions into libbase
Gunnar Beutner [Mon, 24 Nov 2014 06:09:51 +0000 (07:09 +0100)]
Move the cast functions into libbase

fixes #7807

9 years agoAdd some more missing unit tests
Gunnar Beutner [Mon, 24 Nov 2014 00:17:54 +0000 (01:17 +0100)]
Add some more missing unit tests

refs #7805

9 years agoAdd missing unit tests to the project file
Gunnar Beutner [Mon, 24 Nov 2014 00:07:00 +0000 (01:07 +0100)]
Add missing unit tests to the project file

refs #7805

9 years agoRemove unused parameter
Gunnar Beutner [Mon, 24 Nov 2014 00:05:19 +0000 (01:05 +0100)]
Remove unused parameter

refs #7805

9 years agoRemove unused code in the ThinMutex class
Gunnar Beutner [Mon, 24 Nov 2014 00:01:39 +0000 (01:01 +0100)]
Remove unused code in the ThinMutex class

refs #7805

9 years agoFix the __return keyword
Gunnar Beutner [Sun, 23 Nov 2014 23:04:26 +0000 (00:04 +0100)]
Fix the __return keyword

fixes #7811

9 years agoFix unary minus operator
Gunnar Beutner [Sun, 23 Nov 2014 22:19:46 +0000 (23:19 +0100)]
Fix unary minus operator

fixes #7815

9 years agoFix scoping for __for
Gunnar Beutner [Sun, 23 Nov 2014 19:43:50 +0000 (20:43 +0100)]
Fix scoping for __for

fixes #7809

9 years agoFix a crash in the "repl" command
Gunnar Beutner [Sun, 23 Nov 2014 18:13:42 +0000 (19:13 +0100)]
Fix a crash in the "repl" command

refs #7805

9 years agoFix the reduce/reduce conflicts
Gunnar Beutner [Sun, 23 Nov 2014 14:20:51 +0000 (15:20 +0100)]
Fix the reduce/reduce conflicts

refs #7800

9 years agoAdd missing return value for ReplCommand::Run
Gunnar Beutner [Sun, 23 Nov 2014 12:41:45 +0000 (13:41 +0100)]
Add missing return value for ReplCommand::Run

refs #7805

9 years agoAdd color tags to the repl command
Gunnar Beutner [Sun, 23 Nov 2014 11:38:16 +0000 (12:38 +0100)]
Add color tags to the repl command

refs #7805

9 years agoImplement more unit tests
Gunnar Beutner [Sun, 23 Nov 2014 11:35:13 +0000 (12:35 +0100)]
Implement more unit tests

refs #7805

9 years agoRemove debug code
Gunnar Beutner [Sun, 23 Nov 2014 11:08:29 +0000 (12:08 +0100)]
Remove debug code

refs #7800

9 years agoFix some more shift/reduce conflicts
Gunnar Beutner [Sun, 23 Nov 2014 11:06:47 +0000 (12:06 +0100)]
Fix some more shift/reduce conflicts

refs #7800

9 years agoImprove test coverage for the Convert class
Gunnar Beutner [Sun, 23 Nov 2014 08:58:33 +0000 (09:58 +0100)]
Improve test coverage for the Convert class

refs #7805

9 years agoImplement unit tests for the config parser
Gunnar Beutner [Sun, 23 Nov 2014 08:53:28 +0000 (09:53 +0100)]
Implement unit tests for the config parser

refs #7805

9 years agoFix incorrect result for the !in operator
Gunnar Beutner [Sun, 23 Nov 2014 08:52:17 +0000 (09:52 +0100)]
Fix incorrect result for the !in operator

fixes #7806

9 years agoImprove test coverage for the array class
Gunnar Beutner [Sun, 23 Nov 2014 08:50:11 +0000 (09:50 +0100)]
Improve test coverage for the array class

9 years agoFix the shift/reduce conflicts in the parser
Gunnar Beutner [Sat, 22 Nov 2014 22:02:12 +0000 (23:02 +0100)]
Fix the shift/reduce conflicts in the parser

fixes #7800

9 years agoRemove the C++ code generator
Gunnar Beutner [Sat, 22 Nov 2014 18:23:42 +0000 (19:23 +0100)]
Remove the C++ code generator

refs #7699

9 years agoRefactor the stack frame handling for scripts
Gunnar Beutner [Sat, 22 Nov 2014 11:21:28 +0000 (12:21 +0100)]
Refactor the stack frame handling for scripts

fixes #7748

9 years agoFix initialization bug for the Notification class
Gunnar Beutner [Sat, 22 Nov 2014 15:42:57 +0000 (16:42 +0100)]
Fix initialization bug for the Notification class

refs #7780

9 years agoFix initialization for the ApiListener class
Gunnar Beutner [Fri, 21 Nov 2014 22:23:31 +0000 (23:23 +0100)]
Fix initialization for the ApiListener class

fixes #7780

9 years agoIncrease default timeout for NRPE checks
Gunnar Beutner [Fri, 21 Nov 2014 21:05:03 +0000 (22:05 +0100)]
Increase default timeout for NRPE checks

fixes #7747

9 years agoFix initialization bug for the Endpoint class
Gunnar Beutner [Fri, 21 Nov 2014 20:01:44 +0000 (21:01 +0100)]
Fix initialization bug for the Endpoint class

refs #7780

9 years agoMake sure source information is always available for error messages
Gunnar Beutner [Fri, 21 Nov 2014 17:35:59 +0000 (18:35 +0100)]
Make sure source information is always available for error messages

refs #7699

9 years agoSplit DynamicObject::OnConfigLoaded into two separate events
Gunnar Beutner [Fri, 21 Nov 2014 17:31:37 +0000 (18:31 +0100)]
Split DynamicObject::OnConfigLoaded into two separate events

refs #7780

9 years agoAdd notification custom vars to the satellite-{host,service} templates
Gunnar Beutner [Fri, 21 Nov 2014 13:02:51 +0000 (14:02 +0100)]
Add notification custom vars to the satellite-{host,service} templates

fixes #7770

9 years agoImprove error messages for the config parser
Gunnar Beutner [Fri, 21 Nov 2014 08:07:08 +0000 (09:07 +0100)]
Improve error messages for the config parser

refs #7699

9 years agoFix some incorrectly generated code
Gunnar Beutner [Fri, 21 Nov 2014 06:37:20 +0000 (07:37 +0100)]
Fix some incorrectly generated code

refs #7699

9 years agoBuild fix
Gunnar Beutner [Thu, 20 Nov 2014 21:53:59 +0000 (22:53 +0100)]
Build fix

refs #7699

9 years agoImplement a C++ code generator for libconfig
Gunnar Beutner [Sat, 15 Nov 2014 07:20:22 +0000 (08:20 +0100)]
Implement a C++ code generator for libconfig

fixes #7699
fixes #7704
fixes #7706

9 years agoRefactor apply/object rules
Gunnar Beutner [Sun, 16 Nov 2014 15:20:39 +0000 (16:20 +0100)]
Refactor apply/object rules

fixes #7700

9 years agoRemove icinga-prepare-dirs from icinga-bin package
Tim Hardeck [Thu, 20 Nov 2014 14:56:48 +0000 (15:56 +0100)]
Remove icinga-prepare-dirs from icinga-bin package

`icinga-prepare-dirs` was part of the package common and bin. Since it
was added with 2.2.0 to common with a man page I would expect this to be
the right place so I removed it from bin.

fixes #7740

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
9 years agoFix incorrect return type for ScriptSignal::Invoke
Gunnar Beutner [Thu, 20 Nov 2014 18:43:50 +0000 (19:43 +0100)]
Fix incorrect return type for ScriptSignal::Invoke

refs #7744