Commit Graph

158 Commits

Author SHA1 Message Date
Gunnar Beutner 0c64ea7f88 Remove obsolete code. 2013-09-12 14:12:36 +02:00
Gunnar Beutner 102127fd5e config: Copy authority information into dependant services. 2013-09-12 13:08:37 +02:00
Gunnar Beutner 61f0f7edc7 Don't copy macros / custom attributes to services. 2013-09-10 10:54:23 +02:00
Michael Friedrich 98e20f6425 Fix: Add missing locks. 2013-09-09 13:52:59 +02:00
Gunnar Beutner 6aa1682878 Fix HOSTSTATE macro. 2013-08-30 17:02:21 +02:00
Gunnar Beutner c194ad1ca3 Register service and notification objects. 2013-08-30 15:09:42 +02:00
Gunnar Beutner c9ec28440e Another bugfix for the event order. 2013-08-29 19:25:34 +02:00
Gunnar Beutner 91724814d8 Fix: State file doesn't work for generated service objects. 2013-08-29 16:53:57 +02:00
Gunnar Beutner 0d24b941f5 Implement some cluster events. 2013-08-28 11:12:20 +02:00
Gunnar Beutner f39f69d390 Refactor ASSERT macro. 2013-08-28 08:18:58 +02:00
Gunnar Beutner e9e55cd8c0 Remove the replication feature and clean up the code. 2013-08-26 14:56:38 +02:00
Michael Friedrich f0f3412f2c add GetChildHosts() to host object 2013-07-19 16:11:17 +02:00
Michael Friedrich 2ebf0822ac add LastState{OK,Warning,Critical,Unknown|Up,Down,Unreachable} time attributes 2013-07-18 18:16:39 +02:00
Michael Friedrich d5579d9e2f Config: add macros/custom dictionaries to Host Service definition
additive inheritance (+=) works with templates too.
2013-07-16 14:53:21 +02:00
Michael Friedrich 36e9e9adbd custom attr: move into DynamicObject using GetCustom() 2013-07-12 15:13:05 +02:00
Michael Friedrich 3023686042 service: add IsHostCheck helper 2013-07-09 16:59:31 +02:00
Michael Friedrich 16adc9a0c5 livestatus: add more hosttable todos
refs #4372
2013-07-05 19:14:10 +02:00
Michael Friedrich ec3e8cfe1c livestatus: move host attribute getter into host->service again
refs #4372
2013-07-05 13:42:40 +02:00
Michael Friedrich 88197d216a livestatus: add first part of host data providers
refs #4372
2013-07-05 09:35:49 +02:00
Gunnar Beutner acc2bdb875 Use object name if HOSTADDRESS macro isn't defined. 2013-07-02 10:08:22 +02:00
Gunnar Beutner 184f503c2a Fix how the HOSTALIAS and CONTACTALIAS macros work. 2013-07-02 09:54:24 +02:00
Gunnar Beutner 4cd4228f64 Implement HOSTADDRESS and HOSTADDRESS6 macros. 2013-07-02 09:47:31 +02:00
Gunnar Beutner 463f4e4cf9 Implement notification_*_filter variables for Host/Service objects. 2013-06-26 10:19:00 +02:00
Gunnar Beutner 89078e1cfb Config: Fix nested dictionaries in arrays. 2013-06-21 09:07:57 +02:00
Gunnar Beutner f38a389791 Make error message more user-friendly. 2013-06-21 09:03:02 +02:00
Gunnar Beutner aaac957ad5 Disallow colons in user-defined objects. Use colons for auto-generated object names. 2013-05-07 09:35:36 +02:00
Gunnar Beutner 836c26da66 Bugfixes for the timeperiod feature. 2013-04-16 10:12:53 +02:00
Gunnar Beutner 70e96aa2f0 Refactor ScriptFunctions. 2013-03-25 19:47:02 +00:00
Gunnar Beutner fd3e92ea0c Refactor AsyncTasks. 2013-03-25 17:36:15 +00:00
Gunnar Beutner 6d69d6c639 Refactor the macro resolver
Fixes #3884
2013-03-22 14:42:14 +01:00
Gunnar Beutner 97fee26289 Remove @threadsafety doc strings
Fixes #3889
2013-03-22 12:02:20 +01:00
Gunnar Beutner 711a8cb5e0 Use Expression::Extract* for notifications. 2013-03-19 14:47:19 +01:00
Gunnar Beutner 969458b480 Build dependant services using extracted expression lists. 2013-03-19 13:37:09 +01:00
Gunnar Beutner a21cf21d52 Implement the CompatLog type. 2013-03-19 13:04:30 +01:00
Gunnar Beutner c3975af6ec Refactor #includes (Part 4). 2013-03-18 11:02:18 +01:00
Gunnar Beutner 9d076c3c03 Refactor #includes (Part 3). 2013-03-17 20:19:29 +01:00
Gunnar Beutner 0bb0711d72 Refactor #includes (Part 2). 2013-03-16 21:18:53 +01:00
Gunnar Beutner 3073200b53 Cleaned up #includes (Part 1). 2013-03-15 18:21:29 +01:00
Gunnar Beutner 9ac731ba8e Change log level for some debug messages. 2013-03-15 11:18:56 +01:00
Gunnar Beutner 7c46bb4f7d Use 'explicit' for constructors. 2013-03-14 23:52:52 +01:00
Gunnar Beutner 07421751ad Implement config support for arrays. 2013-03-14 12:17:46 +01:00
Gunnar Beutner 442a2dbc7d Implement timeperiods. 2013-03-13 16:04:53 +01:00
Gunnar Beutner 6f51230a79 Don't instantiate abstract objects.
Fixes #3669
2013-03-11 12:04:10 +01:00
Gunnar Beutner 4668e458ce Update validator for services dictionary. 2013-03-08 14:44:03 +01:00
Gunnar Beutner e2416b5b54 Check return values of SymGetLineFromAddr64 and SymFromAddr. 2013-03-07 16:00:10 +01:00
Gunnar Beutner fa3f01667f Implemented stacktrace support for Windows. 2013-03-07 15:00:26 +01:00
Gunnar Beutner 02be9010e7 Implemented LAST*STATE* macros. 2013-03-07 12:04:20 +01:00
Gunnar Beutner 6f7b553acd Bugfixes for the *:Invalidate*Cache() calls. 2013-03-06 13:01:51 +01:00
Gunnar Beutner 70fa21dfbc Various bugfixes. 2013-03-06 11:04:20 +01:00
Gunnar Beutner be95f3171d Even more code refactoring. 2013-03-04 15:52:42 +01:00
Gunnar Beutner 48485c5f26 More lock refactoring. Yay. 2013-03-02 09:07:47 +01:00
Gunnar Beutner 572a477da3 Refactored object locking code. 2013-03-01 12:07:52 +01:00
Gunnar Beutner e9d32eeada Implemented user groups. 2013-02-27 21:49:03 +01:00
Gunnar Beutner 6bf086dc91 Implemented notification_interval attribute for hosts. 2013-02-27 18:15:01 +01:00
Gunnar Beutner e98fd3e3eb Bug fixes for the new cache code. 2013-02-27 16:04:49 +01:00
Gunnar Beutner d666960fa0 Refactor the cache code... again. 2013-02-27 15:23:25 +01:00
Gunnar Beutner e9648f35bc Make the services/notifications caches thread safe.
Send notifications based on the notification_interval setting.
2013-02-27 12:44:51 +01:00
Gunnar Beutner 35c79a76c1 Make attribute lookups O(1). 2013-02-26 10:13:54 +01:00
Gunnar Beutner 2ef255b9f6 Fine-grained locks (WIP, Part 9). 2013-02-24 01:10:34 +01:00
Gunnar Beutner 404b1807e6 Removed PCH support (as it's clearly not working properly). 2013-02-22 08:12:43 +01:00
Gunnar Beutner 5e91f6c54d Fine-grained locks (WIP, Part 7). 2013-02-20 19:52:25 +01:00
Gunnar Beutner 997ca3a77a Fine-grained locks (WIP, Part 6). 2013-02-19 23:02:08 +01:00
Gunnar Beutner 1daeb8c010 Fine-grained locks (WIP, Part 5). 2013-02-19 12:17:31 +01:00
Gunnar Beutner 3dace35cf1 Fine-grained locks (WIP, Part 3). 2013-02-18 23:44:24 +01:00
Gunnar Beutner a4c7052a6e Fine-grained locks (WIP, Part 2). 2013-02-18 14:40:24 +01:00
Gunnar Beutner c63c28dd9c Fine-grained locks (WIP, Part 1). 2013-02-17 19:14:34 +01:00
Gunnar Beutner 22913c96bf Redesign how templates are specified for slave services/notifications
Fixes #3706
2013-02-16 09:28:05 +01:00
Gunnar Beutner efd108982a Removed the native:: prefix for built-in functions. 2013-02-15 12:41:32 +01:00
Gunnar Beutner 2118e4b490 Renamed 'alias' property to 'display_name'. 2013-02-13 19:32:44 +01:00
Gunnar Beutner c3dce7893c Removed array support, implemented support for anonymous dictionary items. 2013-02-13 18:43:56 +01:00
Gunnar Beutner 18ed997696 Implemented some more dynamic macros. 2013-02-11 16:29:23 +01:00
Gunnar Beutner 2501ff805a Remove Host::OnInitCompleted and clean up the classes' constructors.
Fixes #3678
2013-02-11 14:01:52 +01:00
Gunnar Beutner 962d0e5fb2 Build fix. 2013-02-09 19:24:43 +01:00
Gunnar Beutner 23e7b7aefc Fixed incorrect type name. 2013-02-09 18:50:22 +01:00
Gunnar Beutner cf92cd83b3 Implement some dynamic macros.
Move check-specific code to service-check.cpp
2013-02-09 18:39:43 +01:00
Gunnar Beutner 84482bb39d Removed alias property, added display_name. 2013-02-09 17:50:47 +01:00
Gunnar Beutner c44ad7b06b Implemented notification request messages, notifications dictionary for hosts/services and state-based notifications. 2013-02-09 15:20:10 +01:00
Gunnar Beutner 3e7376576e Implemented rudimentary notifications. 2013-02-09 11:42:22 +01:00
Gunnar Beutner 29b056c848 Remove separate host ack/downtime/comments functionality.
Fixes #3663
2013-02-09 01:16:43 +01:00
Gunnar Beutner 6c23481a55 Bugfix: Local events for changed attributes aren't processed at transaction commit time.
Fixes #3605
2013-02-08 23:40:28 +01:00
Gunnar Beutner f725c6ee7a Copy service and host dependencies into service items. 2013-02-08 21:38:34 +01:00
Gunnar Beutner e443b77a56 Implement dictionary-based host/service name pairs. 2013-02-08 21:30:14 +01:00
Gunnar Beutner 580f2e1fcc Use Host constructor/destructor/OnAttributeChange instead of OnCommitted/OnRemoved for Host->services
Fixes #3612
2013-02-08 21:05:08 +01:00
Gunnar Beutner 3458b7d9d1 Implement service shortnames.
Refs #3660
2013-02-08 15:38:22 +01:00
Gunnar Beutner 1b4a9a3a21 Redesign dependencies.
Fixes #3646
2013-02-07 20:29:35 +01:00
Gunnar Beutner b887f14d96 Use BOOST_THROW_EXCEPTION instead of boost::throw_exception()
Fixes #3636
2013-02-06 12:51:12 +01:00
Gunnar Beutner e047e06fc8 Finish implementing %validator.
Fixes #3634
2013-02-06 12:09:50 +01:00
Gunnar Beutner 580b5e358e Fixed incorrect variable name. 2013-02-06 11:09:52 +01:00
Gunnar Beutner d463bed478 Config: Implement detection of missing required attributes
Fixes #3627
2013-02-06 00:32:05 +01:00
Gunnar Beutner f2e17bdd09 Fixed compiler warnings (-Wextra). 2013-02-02 22:13:54 +01:00
Gunnar Beutner f9ea72ddb1 Bugfix: Don't copy the enable_checks attribute to child services. 2013-02-02 20:05:18 +01:00
Gunnar Beutner b74c2c8a68 Removed the old-style validation code. 2013-02-02 20:03:30 +01:00
Gunnar Beutner f5a3dc4d84 Config: Warn about unknown attributes. 2013-02-01 14:11:22 +01:00
Gunnar Beutner 3fb8c05a50 Make sure comment/downtime legacy IDs are always unique (even in a cluster context). 2013-01-30 13:02:20 +01:00
Gunnar Beutner 6e119dafee Use UUIDs to uniquely identify comments and downtimes. 2013-01-30 09:59:22 +01:00
Gunnar Beutner c7550971fe Implemented comments.
Fixes #3558
2013-01-29 16:29:09 +01:00
Gunnar Beutner 8e8e607b2e Implement downtimes.
Fixes #2833
2013-01-29 14:19:54 +01:00
Gunnar Beutner ce49e3856b Added missing host attributes. 2013-01-27 11:45:51 +01:00
Gunnar Beutner ae17878596 Implemented host acknowledgements. 2013-01-27 11:35:47 +01:00
Gunnar Beutner b79f966b53 Performance improvements for *Group::GetMembers(). 2013-01-25 12:46:49 +01:00