]> granicus.if.org Git - icinga2/log
icinga2
11 years agoido: Fix UQ violation in comments with host's hostcheck duplicated service comments
Michael Friedrich [Wed, 7 Aug 2013 17:03:22 +0000 (19:03 +0200)]
ido: Fix UQ violation in comments with host's hostcheck duplicated service comments

refs #4380

11 years agoido: Insert/Delete host's hostcheck service comments too.
Michael Friedrich [Wed, 7 Aug 2013 16:24:16 +0000 (18:24 +0200)]
ido: Insert/Delete host's hostcheck service comments too.

refs #4380

11 years agoido: Refactor comments code.
Michael Friedrich [Wed, 7 Aug 2013 15:36:54 +0000 (17:36 +0200)]
ido: Refactor comments code.

refs #4380

11 years agoido: Fixes for comments.
Michael Friedrich [Wed, 7 Aug 2013 13:57:35 +0000 (15:57 +0200)]
ido: Fixes for comments.

refs #4380

11 years agoido: Experimental support for comments.
Michael Friedrich [Wed, 7 Aug 2013 13:39:09 +0000 (15:39 +0200)]
ido: Experimental support for comments.

refs #4380

11 years agoReplace our execvpe() replacement with something GPL-compatible.
Gunnar Beutner [Wed, 7 Aug 2013 06:47:28 +0000 (08:47 +0200)]
Replace our execvpe() replacement with something GPL-compatible.

11 years agoIDO: Add basic host/service dependency support.
Michael Friedrich [Mon, 5 Aug 2013 15:25:40 +0000 (17:25 +0200)]
IDO: Add basic host/service dependency support.

refs #4378

11 years agoCompat: fix servicedependency (parent service description)
Michael Friedrich [Mon, 5 Aug 2013 15:01:40 +0000 (17:01 +0200)]
Compat: fix servicedependency (parent service description)

11 years agoUpdate tutorial documentation for livestatus/IDO (for now)
Michael Friedrich [Mon, 5 Aug 2013 14:48:34 +0000 (16:48 +0200)]
Update tutorial documentation for livestatus/IDO (for now)

refs #4466
refs #4467

11 years agoFix missing insert IDs for service and contact groups.
Gunnar Beutner [Mon, 5 Aug 2013 14:04:01 +0000 (16:04 +0200)]
Fix missing insert IDs for service and contact groups.

11 years agoFix missing insert IDs for hostgroups.
Gunnar Beutner [Mon, 5 Aug 2013 13:57:40 +0000 (15:57 +0200)]
Fix missing insert IDs for hostgroups.

11 years agoido: Implement timeperiod config attributes.
Gunnar Beutner [Mon, 5 Aug 2013 08:06:19 +0000 (10:06 +0200)]
ido: Implement timeperiod config attributes.

11 years agoido: Implement config attributes for contacts.
Gunnar Beutner [Mon, 5 Aug 2013 07:58:30 +0000 (09:58 +0200)]
ido: Implement config attributes for contacts.

11 years agoBuild fix.
Gunnar Beutner [Mon, 5 Aug 2013 07:58:23 +0000 (09:58 +0200)]
Build fix.

11 years agoido: Implement contactgroup members.
Gunnar Beutner [Mon, 5 Aug 2013 07:49:19 +0000 (09:49 +0200)]
ido: Implement contactgroup members.

11 years agoido: Implement servicegroup members.
Gunnar Beutner [Mon, 5 Aug 2013 07:37:52 +0000 (09:37 +0200)]
ido: Implement servicegroup members.

11 years agoido: Fix hostgroup members.
Gunnar Beutner [Mon, 5 Aug 2013 07:09:57 +0000 (09:09 +0200)]
ido: Fix hostgroup members.

11 years agoido: Implement hostgroup members.
Gunnar Beutner [Mon, 5 Aug 2013 06:56:50 +0000 (08:56 +0200)]
ido: Implement hostgroup members.

11 years agoFix crash in NotificationComponent::NotificationTimerHandler().
Gunnar Beutner [Mon, 5 Aug 2013 06:56:36 +0000 (08:56 +0200)]
Fix crash in NotificationComponent::NotificationTimerHandler().

11 years agoido: replace hardcoded objecttype_id with enum
Michael Friedrich [Fri, 2 Aug 2013 15:12:07 +0000 (17:12 +0200)]
ido: replace hardcoded objecttype_id with enum

11 years agoido: Clear config tables on startup
Michael Friedrich [Fri, 2 Aug 2013 15:11:14 +0000 (17:11 +0200)]
ido: Clear config tables on startup

fixes #4502

11 years agoFix: Separately keep track of whether we've completed config and status updates.
Gunnar Beutner [Fri, 2 Aug 2013 13:45:50 +0000 (15:45 +0200)]
Fix: Separately keep track of whether we've completed config and status updates.

11 years agoido: Add host_parenthosts, use GetInsertID().
Michael Friedrich [Fri, 2 Aug 2013 13:20:28 +0000 (15:20 +0200)]
ido: Add host_parenthosts, use GetInsertID().

11 years agoido: Refactor CompatUtility::GetServiceConfigAttributes()
Michael Friedrich [Fri, 2 Aug 2013 12:20:50 +0000 (14:20 +0200)]
ido: Refactor CompatUtility::GetServiceConfigAttributes()

refs #4500

11 years agoido: Fix hosts without hostcheck service not being dumped to config table.
Michael Friedrich [Fri, 2 Aug 2013 12:12:07 +0000 (14:12 +0200)]
ido: Fix hosts without hostcheck service not being dumped to config table.

still, the status update must be triggered by icinga2 which does not
happen currently.

fixes #4500

11 years agoUse ASSERT() instead of assert().
Gunnar Beutner [Fri, 2 Aug 2013 08:11:48 +0000 (10:11 +0200)]
Use ASSERT() instead of assert().

11 years agoido: Don't update insert IDs for status updates (2nd attempt).
Gunnar Beutner [Fri, 2 Aug 2013 07:58:51 +0000 (09:58 +0200)]
ido: Don't update insert IDs for status updates (2nd attempt).

11 years agoRevert "Don't update insert ID for status updates."
Gunnar Beutner [Fri, 2 Aug 2013 07:57:45 +0000 (09:57 +0200)]
Revert "Don't update insert ID for status updates."

This reverts commit 51a613d0a6e5993963610101d0aeceb48a967fde.

11 years agoDon't update insert ID for status updates.
Gunnar Beutner [Fri, 2 Aug 2013 07:45:52 +0000 (09:45 +0200)]
Don't update insert ID for status updates.

11 years agoido: Keep track of insert IDs.
Gunnar Beutner [Fri, 2 Aug 2013 06:56:36 +0000 (08:56 +0200)]
ido: Keep track of insert IDs.

11 years agoImplement handler for hostgroup changes.
Gunnar Beutner [Fri, 2 Aug 2013 06:23:07 +0000 (08:23 +0200)]
Implement handler for hostgroup changes.

11 years agoido_mysql: Don't put already escaped string into quotes
Michael Friedrich [Thu, 1 Aug 2013 17:43:51 +0000 (19:43 +0200)]
ido_mysql: Don't put already escaped string into quotes

11 years agoido: Add idcolumn to REGISTER_DBTYPE
Michael Friedrich [Thu, 1 Aug 2013 12:08:02 +0000 (14:08 +0200)]
ido: Add idcolumn to REGISTER_DBTYPE

hosts are using host_object_id, commands are using object_id.
That's weird db schema design.

11 years agoido: Implement commanddbobjects.
Michael Friedrich [Thu, 1 Aug 2013 11:20:30 +0000 (13:20 +0200)]
ido: Implement commanddbobjects.

11 years agoFix INITIALIZE_ONCE().
Gunnar Beutner [Thu, 1 Aug 2013 09:14:33 +0000 (11:14 +0200)]
Fix INITIALIZE_ONCE().

11 years agoFix include guards for initialize.h.
Gunnar Beutner [Thu, 1 Aug 2013 09:10:02 +0000 (11:10 +0200)]
Fix include guards for initialize.h.

11 years agoAdd HostGroup::OnMembersCached signal.
Gunnar Beutner [Thu, 1 Aug 2013 09:07:56 +0000 (11:07 +0200)]
Add HostGroup::OnMembersCached signal.

11 years agoImplement INITIALIZE_ONCE().
Gunnar Beutner [Thu, 1 Aug 2013 09:07:26 +0000 (11:07 +0200)]
Implement INITIALIZE_ONCE().

11 years agoido: add notify_on_* to host/service config
Michael Friedrich [Thu, 1 Aug 2013 08:44:15 +0000 (10:44 +0200)]
ido: add notify_on_* to host/service config

refs #4378

11 years agoFix: Table prefix was missing in some queries.
Gunnar Beutner [Thu, 1 Aug 2013 07:47:47 +0000 (09:47 +0200)]
Fix: Table prefix was missing in some queries.

11 years agoido: Make the table prefix configurable.
Gunnar Beutner [Thu, 1 Aug 2013 07:46:48 +0000 (09:46 +0200)]
ido: Make the table prefix configurable.

11 years agoido: Don't send config/status updates if the object doesn't support them.
Gunnar Beutner [Thu, 1 Aug 2013 07:32:14 +0000 (09:32 +0200)]
ido: Don't send config/status updates if the object doesn't support them.

11 years agoido: add missing host/service config/status attributes
Michael Friedrich [Wed, 31 Jul 2013 16:06:54 +0000 (18:06 +0200)]
ido: add missing host/service config/status attributes

refs #4380
refs #4378

11 years agoido: Add stubs for servicegroups.
Gunnar Beutner [Wed, 31 Jul 2013 07:22:25 +0000 (09:22 +0200)]
ido: Add stubs for servicegroups.

11 years agoido: Add stubs for hostgroups.
Gunnar Beutner [Wed, 31 Jul 2013 07:20:06 +0000 (09:20 +0200)]
ido: Add stubs for hostgroups.

11 years agoido: Add stubs for contactgroups.
Gunnar Beutner [Wed, 31 Jul 2013 07:17:54 +0000 (09:17 +0200)]
ido: Add stubs for contactgroups.

11 years agoido: Add stubs for timeperiods.
Gunnar Beutner [Wed, 31 Jul 2013 07:14:58 +0000 (09:14 +0200)]
ido: Add stubs for timeperiods.

11 years agoido: Add stubs for contacts/contactstatus.
Gunnar Beutner [Wed, 31 Jul 2013 07:09:39 +0000 (09:09 +0200)]
ido: Add stubs for contacts/contactstatus.

11 years agoFix: Check results from the delegation component didn't work.
Gunnar Beutner [Wed, 31 Jul 2013 06:35:13 +0000 (08:35 +0200)]
Fix: Check results from the delegation component didn't work.

11 years agoFix compiler warning.
Gunnar Beutner [Wed, 31 Jul 2013 06:29:45 +0000 (08:29 +0200)]
Fix compiler warning.

11 years agobuild fix on debian squeeze
Michael Friedrich [Tue, 30 Jul 2013 20:38:33 +0000 (22:38 +0200)]
build fix on debian squeeze

11 years agoitl: fix http_ip plugin check_http (thx cropalato)
Michael Friedrich [Tue, 30 Jul 2013 18:45:09 +0000 (20:45 +0200)]
itl: fix http_ip plugin check_http (thx cropalato)

11 years agoido: more host/service config fields
Michael Friedrich [Tue, 30 Jul 2013 16:17:58 +0000 (18:17 +0200)]
ido: more host/service config fields

refs #4378

11 years agoCompatUtility: add service config attributes getter
Michael Friedrich [Tue, 30 Jul 2013 16:17:13 +0000 (18:17 +0200)]
CompatUtility: add service config attributes getter

11 years agoido: fix mem leak; don't invalidate dbref on object inactive
Michael Friedrich [Tue, 30 Jul 2013 12:34:54 +0000 (14:34 +0200)]
ido: fix mem leak; don't invalidate dbref on object inactive

11 years agoupdate .gitignore
Michael Friedrich [Tue, 30 Jul 2013 11:14:54 +0000 (13:14 +0200)]
update .gitignore

11 years agocontrib: add flap.sh
Michael Friedrich [Tue, 30 Jul 2013 11:09:26 +0000 (13:09 +0200)]
contrib: add flap.sh

11 years agolivestatus: import test queries and script
Michael Friedrich [Tue, 30 Jul 2013 11:07:13 +0000 (13:07 +0200)]
livestatus: import test queries and script

refs #2762

11 years agolivestatus: add separator support
Michael Friedrich [Mon, 29 Jul 2013 17:37:58 +0000 (19:37 +0200)]
livestatus: add separator support

fixes #4478

11 years agolivestatus: make query exceptions debug only
Michael Friedrich [Mon, 29 Jul 2013 09:22:56 +0000 (11:22 +0200)]
livestatus: make query exceptions debug only

fixes #4405

11 years agolivestatus: rename address to host (same as ido)
Michael Friedrich [Mon, 29 Jul 2013 09:18:41 +0000 (11:18 +0200)]
livestatus: rename address to host (same as ido)

refs #2762

11 years agoadd lib/ido/ido-type.cpp to .gitignore
Michael Friedrich [Sat, 27 Jul 2013 18:14:26 +0000 (20:14 +0200)]
add lib/ido/ido-type.cpp to .gitignore

11 years agocompat: Fix timestamps.
Gunnar Beutner [Thu, 25 Jul 2013 07:45:40 +0000 (09:45 +0200)]
compat: Fix timestamps.

11 years agoido: Properly implement program status updates.
Gunnar Beutner [Thu, 25 Jul 2013 07:00:23 +0000 (09:00 +0200)]
ido: Properly implement program status updates.

11 years agoido: Update hosts when their host check is updated.
Gunnar Beutner [Thu, 25 Jul 2013 06:30:02 +0000 (08:30 +0200)]
ido: Update hosts when their host check is updated.

11 years agoImplement status updates for services.
Gunnar Beutner [Wed, 24 Jul 2013 08:55:04 +0000 (10:55 +0200)]
Implement status updates for services.

11 years agoImplement support for timestamps.
Gunnar Beutner [Tue, 23 Jul 2013 09:02:47 +0000 (11:02 +0200)]
Implement support for timestamps.

11 years agoIDO: Use CompatUtility for hosts and services.
Gunnar Beutner [Tue, 23 Jul 2013 07:50:42 +0000 (09:50 +0200)]
IDO: Use CompatUtility for hosts and services.

11 years agoMove some of the compat functionality to the CompatUtility class.
Gunnar Beutner [Tue, 23 Jul 2013 07:12:38 +0000 (09:12 +0200)]
Move some of the compat functionality to the CompatUtility class.

11 years agoImplement shift operator for the Value class.
Gunnar Beutner [Tue, 23 Jul 2013 06:57:22 +0000 (08:57 +0200)]
Implement shift operator for the Value class.

11 years agoYet another build fix.
Gunnar Beutner [Mon, 22 Jul 2013 12:55:35 +0000 (14:55 +0200)]
Yet another build fix.

11 years agoBuild fix.
Gunnar Beutner [Mon, 22 Jul 2013 12:52:11 +0000 (14:52 +0200)]
Build fix.

11 years agoAnother build fix.
Gunnar Beutner [Mon, 22 Jul 2013 12:51:04 +0000 (14:51 +0200)]
Another build fix.

11 years agoBuild fix.
Gunnar Beutner [Mon, 22 Jul 2013 12:49:20 +0000 (14:49 +0200)]
Build fix.

11 years agolivestatus: add = operator for lists comparison
Michael Friedrich [Mon, 22 Jul 2013 12:26:18 +0000 (14:26 +0200)]
livestatus: add = operator for lists comparison

refs #2743

11 years agoAdd missing lock.
Gunnar Beutner [Mon, 22 Jul 2013 11:54:24 +0000 (13:54 +0200)]
Add missing lock.

11 years agoFix: Don't activate/deactive objects when we don't have a database connection.
Gunnar Beutner [Mon, 22 Jul 2013 11:44:08 +0000 (13:44 +0200)]
Fix: Don't activate/deactive objects when we don't have a database connection.

11 years agoIDO: (Partially) implement status updates.
Gunnar Beutner [Mon, 22 Jul 2013 10:08:49 +0000 (12:08 +0200)]
IDO: (Partially) implement status updates.

11 years agolivestatus: fix HostsTable::ContactGroupsAccessor()
Michael Friedrich [Fri, 19 Jul 2013 14:24:09 +0000 (16:24 +0200)]
livestatus: fix HostsTable::ContactGroupsAccessor()

refs #4372

11 years agolivestatus: add childs attribute to hosts table
Michael Friedrich [Fri, 19 Jul 2013 14:11:35 +0000 (16:11 +0200)]
livestatus: add childs attribute to hosts table

refs #4372

11 years agoadd GetChildHosts() to host object
Michael Friedrich [Fri, 19 Jul 2013 14:11:17 +0000 (16:11 +0200)]
add GetChildHosts() to host object

11 years agolivestatus: add connections and extcmds to status table
Michael Friedrich [Fri, 19 Jul 2013 13:42:00 +0000 (15:42 +0200)]
livestatus: add connections and extcmds to status table

refs #4372

11 years agofix mkembedconfig path
Michael Friedrich [Fri, 19 Jul 2013 13:41:39 +0000 (15:41 +0200)]
fix mkembedconfig path

11 years agolivestatus: add host/service staleness indicator
Michael Friedrich [Fri, 19 Jul 2013 12:19:09 +0000 (14:19 +0200)]
livestatus: add host/service staleness indicator

refs #4372

11 years agolivestatus: more attributes
Michael Friedrich [Fri, 19 Jul 2013 11:59:39 +0000 (13:59 +0200)]
livestatus: more attributes

refs #4372

11 years agoOnly check escalations for problem notifications.
Gunnar Beutner [Fri, 19 Jul 2013 09:02:43 +0000 (11:02 +0200)]
Only check escalations for problem notifications.

11 years agoido_mysql: Fix deadlock.
Gunnar Beutner [Fri, 19 Jul 2013 08:34:46 +0000 (10:34 +0200)]
ido_mysql: Fix deadlock.

11 years agoido_mysql: Automatically reconnect when necessary.
Gunnar Beutner [Fri, 19 Jul 2013 08:18:47 +0000 (10:18 +0200)]
ido_mysql: Automatically reconnect when necessary.

11 years agocompat: add last_time_* for status.dat
Michael Friedrich [Thu, 18 Jul 2013 16:28:43 +0000 (18:28 +0200)]
compat: add last_time_* for status.dat

11 years agofix object lock
Michael Friedrich [Thu, 18 Jul 2013 16:28:23 +0000 (18:28 +0200)]
fix object lock

11 years agolivestatus: add last_time_* to host and service table
Michael Friedrich [Thu, 18 Jul 2013 16:17:25 +0000 (18:17 +0200)]
livestatus: add last_time_* to host and service table

refs #4372

11 years agoadd LastState{OK,Warning,Critical,Unknown|Up,Down,Unreachable} time attributes
Michael Friedrich [Thu, 18 Jul 2013 16:16:39 +0000 (18:16 +0200)]
add LastState{OK,Warning,Critical,Unknown|Up,Down,Unreachable} time attributes

11 years agolivestatus: add current_notification_number to host and service table
Michael Friedrich [Thu, 18 Jul 2013 15:24:14 +0000 (17:24 +0200)]
livestatus: add current_notification_number to host and service table

refs #4372

11 years agocompat: add current_notification_number
Michael Friedrich [Thu, 18 Jul 2013 15:23:48 +0000 (17:23 +0200)]
compat: add current_notification_number

11 years agonotifications: add notification number
Michael Friedrich [Thu, 18 Jul 2013 15:04:09 +0000 (17:04 +0200)]
notifications: add notification number

11 years agolivestatus: finish timeperiods table
Michael Friedrich [Thu, 18 Jul 2013 13:30:39 +0000 (15:30 +0200)]
livestatus: finish timeperiods table

refs #4372

11 years agotimeperiods: re-add display_name
Michael Friedrich [Thu, 18 Jul 2013 13:30:17 +0000 (15:30 +0200)]
timeperiods: re-add display_name

11 years agolivestatus: add unix and tcp socket support
Michael Friedrich [Thu, 18 Jul 2013 12:57:04 +0000 (14:57 +0200)]
livestatus: add unix and tcp socket support

use socket_type and then either socket_path or address and port.

fixes #4376

11 years agolivestatus: add num_hosts|services to status table
Michael Friedrich [Thu, 18 Jul 2013 07:48:15 +0000 (09:48 +0200)]
livestatus: add num_hosts|services to status table

refs #4372

11 years agolivestatus: fix check_command_expanded for hosts table
Michael Friedrich [Wed, 17 Jul 2013 14:38:31 +0000 (16:38 +0200)]
livestatus: fix check_command_expanded for hosts table

refs #4372