]> granicus.if.org Git - icinga2/log
icinga2
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

11 years agolivestatus: add more host table attributes
Michael Friedrich [Wed, 17 Jul 2013 14:10:10 +0000 (16:10 +0200)]
livestatus: add more host table attributes

reduce TODOs to 16 of 112.

refs #4372

11 years agoFix object updates and implement transaction support.
Gunnar Beutner [Wed, 17 Jul 2013 12:10:28 +0000 (14:10 +0200)]
Fix object updates and implement transaction support.

11 years agoAdd rudimentary support for ido_mysql.
Gunnar Beutner [Wed, 17 Jul 2013 09:29:51 +0000 (11:29 +0200)]
Add rudimentary support for ido_mysql.

11 years agolivestatus: add more service table attributes (90% done)
Michael Friedrich [Tue, 16 Jul 2013 15:58:23 +0000 (17:58 +0200)]
livestatus: add more service table attributes (90% done)

* macro resolving for _expanded
* notification*
* timeperiod*
* downtimes/comments (with info)
* custom variables
* contacts, contactgroups, servicegroups

refs #4372

11 years agomacros: fix param name for ResolveMacros
Michael Friedrich [Tue, 16 Jul 2013 15:11:18 +0000 (17:11 +0200)]
macros: fix param name for ResolveMacros

11 years agocompat: add next_notification to status.dat
Michael Friedrich [Tue, 16 Jul 2013 14:51:02 +0000 (16:51 +0200)]
compat: add next_notification to status.dat

11 years agolivestatus: fix missing object lock on array in attribute filter
Michael Friedrich [Tue, 16 Jul 2013 13:38:59 +0000 (15:38 +0200)]
livestatus: fix missing object lock on array in attribute filter

11 years agolivestatus: contacts table fixes (ignore special custom attr)
Michael Friedrich [Tue, 16 Jul 2013 12:56:32 +0000 (14:56 +0200)]
livestatus: contacts table fixes (ignore special custom attr)

refs #4372

11 years agoConfig: add macros/custom dictionaries to Host Service definition
Michael Friedrich [Tue, 16 Jul 2013 12:53:21 +0000 (14:53 +0200)]
Config: add macros/custom dictionaries to Host Service definition

additive inheritance (+=) works with templates too.

11 years agolivestatus: finish host|servicegroup table attributes
Michael Friedrich [Tue, 16 Jul 2013 11:26:16 +0000 (13:26 +0200)]
livestatus: finish host|servicegroup table attributes

refs #4372

11 years agolivestatus: finish contacts table attributes
Michael Friedrich [Tue, 16 Jul 2013 11:18:02 +0000 (13:18 +0200)]
livestatus: finish contacts table attributes

refs #4372

11 years agoUser: register enable_notifications, add GetEnableNotifications()
Michael Friedrich [Tue, 16 Jul 2013 11:17:10 +0000 (13:17 +0200)]
User: register enable_notifications, add GetEnableNotifications()

11 years agoMake libido a library, rather than a user-loadable module.
Gunnar Beutner [Tue, 16 Jul 2013 08:40:55 +0000 (10:40 +0200)]
Make libido a library, rather than a user-loadable module.

11 years agoImplement IDO (well, part of it anyway).
Gunnar Beutner [Fri, 5 Jul 2013 07:37:04 +0000 (09:37 +0200)]
Implement IDO (well, part of it anyway).

11 years agocompat: Make sure host is not null.
Gunnar Beutner [Tue, 16 Jul 2013 08:18:03 +0000 (10:18 +0200)]
compat: Make sure host is not null.

11 years agolivestatus: add array delimiter based on level for csv output
Michael Friedrich [Mon, 15 Jul 2013 08:50:41 +0000 (10:50 +0200)]
livestatus: add array delimiter based on level for csv output

... 0 uses comma, 1 uses the pipe for csv output. for json we do not
make any difference.

fixes #4412

11 years agolivestatus: use Empty instead of Value()
Michael Friedrich [Fri, 12 Jul 2013 17:20:12 +0000 (19:20 +0200)]
livestatus: use Empty instead of Value()

fixes #4410

11 years agolivestatus: use enum for error codes, fix empty line
Michael Friedrich [Fri, 12 Jul 2013 16:25:18 +0000 (18:25 +0200)]
livestatus: use enum for error codes, fix empty line

refs #4372

11 years agolivestatus: finish commentstable attributes
Michael Friedrich [Fri, 12 Jul 2013 16:10:27 +0000 (18:10 +0200)]
livestatus: finish commentstable attributes

refs #4372

11 years agolivestatus: servicegroup members as host/service array
Michael Friedrich [Fri, 12 Jul 2013 15:50:41 +0000 (17:50 +0200)]
livestatus: servicegroup members as host/service array

refs #4372

11 years agolivestatus: add servicegroupstable attributes
Michael Friedrich [Fri, 12 Jul 2013 14:47:37 +0000 (16:47 +0200)]
livestatus: add servicegroupstable attributes

refs #4372

11 years agolivestatus: join csv arrays into comma seperated string
Michael Friedrich [Fri, 12 Jul 2013 14:32:13 +0000 (16:32 +0200)]
livestatus: join csv arrays into comma seperated string

refs #4374

11 years agolivestatus: add hostgroup attributes
Michael Friedrich [Fri, 12 Jul 2013 13:17:01 +0000 (15:17 +0200)]
livestatus: add hostgroup attributes

refs #4372

11 years agocustom attr: move into DynamicObject using GetCustom()
Michael Friedrich [Fri, 12 Jul 2013 13:13:05 +0000 (15:13 +0200)]
custom attr: move into DynamicObject using GetCustom()

11 years agolivestatus: implement avg,min,max,std,invsum,invavg stats aggregators
Michael Friedrich [Fri, 12 Jul 2013 10:07:32 +0000 (12:07 +0200)]
livestatus: implement avg,min,max,std,invsum,invavg stats aggregators

fixes #4398

11 years agolivestatus: remove stop function again
Michael Friedrich [Fri, 12 Jul 2013 09:04:04 +0000 (11:04 +0200)]
livestatus: remove stop function again

11 years agotcpsocket: fix fd on setsockopt SO_REUSEADDR
Michael Friedrich [Fri, 12 Jul 2013 09:03:36 +0000 (11:03 +0200)]
tcpsocket: fix fd on setsockopt SO_REUSEADDR

11 years agolivestatus: bugfixes.
Michael Friedrich [Fri, 12 Jul 2013 08:54:57 +0000 (10:54 +0200)]
livestatus: bugfixes.

11 years agolivestatus: add sum aggregator, refactor Filter/Stats handling
Michael Friedrich [Thu, 11 Jul 2013 15:52:06 +0000 (17:52 +0200)]
livestatus: add sum aggregator, refactor Filter/Stats handling

refs #4398

11 years agolivestatus: add basic aggregator support
Michael Friedrich [Thu, 11 Jul 2013 13:52:01 +0000 (15:52 +0200)]
livestatus: add basic aggregator support

refs #4398

11 years agolivestatus: log which table misses the column
Michael Friedrich [Thu, 11 Jul 2013 12:20:43 +0000 (14:20 +0200)]
livestatus: log which table misses the column

11 years agolivestatus: add timeperiods table
Michael Friedrich [Thu, 11 Jul 2013 11:03:14 +0000 (13:03 +0200)]
livestatus: add timeperiods table

refs #4372

11 years agolivestatus: fix host/servicegroup tables
Michael Friedrich [Thu, 11 Jul 2013 10:43:27 +0000 (12:43 +0200)]
livestatus: fix host/servicegroup tables

add empty data providers for all requestable columns.

refs #4372

11 years agolivestatus: fix check_type (0..active, 1..passive)
Michael Friedrich [Thu, 11 Jul 2013 09:55:32 +0000 (11:55 +0200)]
livestatus: fix check_type (0..active, 1..passive)

refs #4372

11 years agolivestatus: add commandstable name/line
Michael Friedrich [Thu, 11 Jul 2013 09:47:32 +0000 (11:47 +0200)]
livestatus: add commandstable name/line

requires conversion of commandline (plain text or array).

refs #4372

11 years agolivestatus: add parentObjectAccessor to function prototypes
Michael Friedrich [Thu, 11 Jul 2013 09:10:56 +0000 (11:10 +0200)]
livestatus: add parentObjectAccessor to function prototypes

comments and downtimes where missing, even if unused.

11 years agolivestatus: time values must be integer seconds
Michael Friedrich [Thu, 11 Jul 2013 08:57:21 +0000 (10:57 +0200)]
livestatus: time values must be integer seconds

fixes #4406

11 years agoMake sure new comments/downtimes are added to the ID cache right away.
Gunnar Beutner [Thu, 11 Jul 2013 06:58:11 +0000 (08:58 +0200)]
Make sure new comments/downtimes are added to the ID cache right away.

11 years agoFix invalid function call.
Gunnar Beutner [Thu, 11 Jul 2013 06:40:02 +0000 (08:40 +0200)]
Fix invalid function call.

11 years agolivestatus: more fixes on joins, ptrs
Michael Friedrich [Wed, 10 Jul 2013 14:11:40 +0000 (16:11 +0200)]
livestatus: more fixes on joins, ptrs

refs #4372

11 years agolivestatus: close socket on component Stop()
Michael Friedrich [Wed, 10 Jul 2013 12:19:01 +0000 (14:19 +0200)]
livestatus: close socket on component Stop()

refs #4376

11 years agolivestatus: use generic Value() as row accessor instead of Object()
Michael Friedrich [Wed, 10 Jul 2013 12:06:46 +0000 (14:06 +0200)]
livestatus: use generic Value() as row accessor instead of Object()

This will allow comments/downtimes to be stashed as string (id) while
existing objects will still be available as Value().

refs #4372

11 years agoFix nullptr deref in Service::GetLastCheckPerfData().
Gunnar Beutner [Wed, 10 Jul 2013 07:57:18 +0000 (09:57 +0200)]
Fix nullptr deref in Service::GetLastCheckPerfData().

11 years agolivestatus: add host and service group getters
Michael Friedrich [Tue, 9 Jul 2013 16:33:27 +0000 (18:33 +0200)]
livestatus: add host and service group getters

refs #4372

11 years agolivestatus: add commands table (thruk now shows extinfo)
Michael Friedrich [Tue, 9 Jul 2013 16:09:03 +0000 (18:09 +0200)]
livestatus: add commands table (thruk now shows extinfo)

refs #4372

11 years agolivestatus: fix typo
Michael Friedrich [Tue, 9 Jul 2013 16:05:47 +0000 (18:05 +0200)]
livestatus: fix typo

11 years agolivestatus: add empty logtable
Michael Friedrich [Tue, 9 Jul 2013 15:46:48 +0000 (17:46 +0200)]
livestatus: add empty logtable

refs #4372

11 years agolivestatus: add contact*, status, service table attributes
Michael Friedrich [Tue, 9 Jul 2013 15:15:38 +0000 (17:15 +0200)]
livestatus: add contact*, status, service table attributes

comments and downtimes require special object treatment -> linked to
services?

refs #4372

11 years agoservice: add IsHostCheck helper
Michael Friedrich [Tue, 9 Jul 2013 14:59:31 +0000 (16:59 +0200)]
service: add IsHostCheck helper

11 years agoMerge remote-tracking branch 'origin/master'
Gunnar Beutner [Tue, 9 Jul 2013 06:46:02 +0000 (08:46 +0200)]
Merge remote-tracking branch 'origin/master'

11 years agoAdd DECLARE_PTR_TYPEDEFS macro for Ptr/WeakPtr typedefs.
Gunnar Beutner [Tue, 9 Jul 2013 06:42:08 +0000 (08:42 +0200)]
Add DECLARE_PTR_TYPEDEFS macro for Ptr/WeakPtr typedefs.

11 years agolivestatus: add service table accessors
Michael Friedrich [Mon, 8 Jul 2013 15:09:15 +0000 (17:09 +0200)]
livestatus: add service table accessors

not yet complete, but the same level as host table accessors.

refs #4372

11 years agocontrib: add simple dummy config generator
Michael Friedrich [Sat, 6 Jul 2013 18:53:07 +0000 (20:53 +0200)]
contrib: add simple dummy config generator

11 years agolog an error to debug when check_command not found on service execution
Michael Friedrich [Sat, 6 Jul 2013 18:46:09 +0000 (20:46 +0200)]
log an error to debug when check_command not found on service execution

refs #4391

11 years agocontrib: move old demo config into seperated osmc2012 dir
Michael Friedrich [Sat, 6 Jul 2013 18:40:57 +0000 (20:40 +0200)]
contrib: move old demo config into seperated osmc2012 dir

11 years agolivestatus: add more hosttable todos
Michael Friedrich [Fri, 5 Jul 2013 17:14:10 +0000 (19:14 +0200)]
livestatus: add more hosttable todos

refs #4372

11 years agoservice: register attribute last_hard_state
Michael Friedrich [Fri, 5 Jul 2013 12:05:49 +0000 (14:05 +0200)]
service: register attribute last_hard_state

11 years agolivestatus: move host attribute getter into host->service again
Michael Friedrich [Fri, 5 Jul 2013 11:42:40 +0000 (13:42 +0200)]
livestatus: move host attribute getter into host->service again

refs #4372

11 years agolivestatus: hosttable: fix checkperiod null ptr
Michael Friedrich [Fri, 5 Jul 2013 09:46:20 +0000 (11:46 +0200)]
livestatus: hosttable: fix checkperiod null ptr

refs #4372

11 years agolivestatus: hosttable: check if custom dictionary exists
Michael Friedrich [Fri, 5 Jul 2013 09:32:19 +0000 (11:32 +0200)]
livestatus: hosttable: check if custom dictionary exists

refs #4372

11 years agolivestatus: hoststable: lock service object for acknowledgement getters
Michael Friedrich [Fri, 5 Jul 2013 09:28:05 +0000 (11:28 +0200)]
livestatus: hoststable: lock service object for  acknowledgement getters

refs #4372

11 years agolivestatus: fix missing symbols
Michael Friedrich [Fri, 5 Jul 2013 08:51:09 +0000 (10:51 +0200)]
livestatus: fix missing symbols

refs #4372

11 years agolivestatus: add first part of host data providers
Michael Friedrich [Fri, 5 Jul 2013 07:35:49 +0000 (09:35 +0200)]
livestatus: add first part of host data providers

refs #4372

11 years agolivestatus: stop reading data if stream was closed
Michael Friedrich [Thu, 4 Jul 2013 07:45:44 +0000 (09:45 +0200)]
livestatus: stop reading data if stream was closed

fixes #4371

11 years agostream: remove ReadLine maxLength
Michael Friedrich [Thu, 4 Jul 2013 07:41:51 +0000 (09:41 +0200)]
stream: remove ReadLine maxLength

it doesn't do what its name suggests.

refs #4370

11 years agostream/livestatus: refactor ReadLine with context saving
Michael Friedrich [Wed, 3 Jul 2013 14:16:38 +0000 (16:16 +0200)]
stream/livestatus: refactor ReadLine with context saving

11 years agodocs: fix typo NotificationCommand->EventCommand
Michael Friedrich [Wed, 3 Jul 2013 09:21:16 +0000 (11:21 +0200)]
docs: fix typo NotificationCommand->EventCommand

11 years agoFix include directory for ltdl.h. v0.0.2
Gunnar Beutner [Tue, 2 Jul 2013 14:56:01 +0000 (16:56 +0200)]
Fix include directory for ltdl.h.

11 years agocompatlog: fix boost algorithm include
Michael Friedrich [Tue, 2 Jul 2013 11:38:06 +0000 (13:38 +0200)]
compatlog: fix boost algorithm include

11 years agoconfigconvert: lookup host check_command in template tree for hostcheck magic
Michael Friedrich [Tue, 2 Jul 2013 11:02:04 +0000 (13:02 +0200)]
configconvert: lookup host check_command in template tree for hostcheck magic

requires recursive template tree lookup in order to create the new
service linked as hostcheck directly on the host object.

refs #2743

11 years agoconfigconvert: make host check_command a new service and link it as hostcheck
Michael Friedrich [Tue, 2 Jul 2013 09:30:53 +0000 (11:30 +0200)]
configconvert: make host check_command a new service and link it as hostcheck

refs #2743

11 years agocompat: Refactor check_command/event_handler code.
Gunnar Beutner [Tue, 2 Jul 2013 08:24:27 +0000 (10:24 +0200)]
compat: Refactor check_command/event_handler code.

11 years agoUse object name if HOSTADDRESS macro isn't defined.
Gunnar Beutner [Tue, 2 Jul 2013 08:06:08 +0000 (10:06 +0200)]
Use object name if HOSTADDRESS macro isn't defined.

11 years agoFix validation warnings for components.
Gunnar Beutner [Tue, 2 Jul 2013 07:58:26 +0000 (09:58 +0200)]
Fix validation warnings for components.