Commit Graph

1359 Commits

Author SHA1 Message Date
Julian Brost 7439633965 Fix max number of args for DEL_DOWNTIME_BY_HOST_NAME
The RegisterCommand call for DEL_DOWNTIME_BY_HOST_NAME was missing the
max args parameter. This prevented the optional service name, start time
and comment arguments to be passed.

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>

fixes 
2016-03-05 18:43:02 +01:00
Michael Friedrich ef532f20eb Revert "Fix check scheduling w/ retry_interval"
This reverts commit a51e647cc7.

This patch causes trouble with check results received
1) passively 2) throughout the cluster. A proper patch
for setting the retry_interval on NOT-OK state changes
is required.

refs 
refs 
refs 

(the old issue)
refs 
2016-03-05 18:16:49 +01:00
Michael Friedrich b8e3d61820 Revert "Properly set the next check time for active and passive checks"
This reverts commit 2a11b27972.

This patch does not properly work and breaks the check_interval setting
for passive checks. Requires a proper patch.

refs 
refs 
refs 

(the old issue)
refs 
2016-03-05 18:15:03 +01:00
Vytenis Darulis 6729679f38 Try to queue all PROCESS_FILE commands instead of exploding the stack
fixes 

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-02-24 23:25:22 +01:00
Michael Friedrich 894aaaecb1 Ensure that config files are readable by the daemon
refs 
refs 
2016-02-24 14:24:08 +01:00
Michael Friedrich 47c5425137 Fix permissions for temporary files
fixes 
fixes 
2016-02-24 11:00:44 +01:00
Sebastian Chrostek 83845e609e Fix problem notifications while flapping is active
fixes 
fixes 
2016-02-23 16:27:22 +01:00
Michael Friedrich 4cb5b97e52 Fix unique creation of temp files
fixes 
2016-02-23 12:30:59 +01:00
Adam James e04b70856b Fix parsing of YYYY-MM-DD in LegacyTimePeriod::ParseTimeSpec
fixes 

Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
2016-02-10 16:24:36 +01:00
Jean Flach 8dbd84daed Remove unused variable 2016-02-08 16:40:34 +01:00
Jean Flach 964cfcebd3 Make schedule-downtime default fixed
fixes 
2016-02-08 16:04:41 +01:00
Gunnar Beutner e224e74994 Make sure the "syncing" attribute is set to false
refs 
2016-02-08 13:15:24 +01:00
Gunnar Beutner 6d5014b610 Increase grace period for agent-based checks
refs 
2016-02-08 09:46:01 +01:00
Michael Friedrich 7a3848af1e Remove debug output
refs 
2016-01-29 14:03:58 +01:00
Michael Friedrich b960850ce3 DB IDO: Only update 'next_check' column when manually scheduling a check
Otherwise the changes from  already take care of setting
the proper next check time from inside ProcessCheckResult().

There is no need to use the generic OnNextCheckChanged signal
but instead we're using a new one, locally just for DB IDO.

fixes 
2016-01-22 18:42:15 +01:00
Michael Friedrich 2a11b27972 Properly set the next check time for active and passive checks
fixes 
refs 
2016-01-22 18:40:14 +01:00
Michael Friedrich 730db0cba1 Fix: Modified attributes do not work for the IcingaApplication object w/ external commands
fixes 
2016-01-21 19:07:54 +01:00
Gunnar Beutner 6ca054e618 Ensure that checks are not scheduled for command_endpoint fake hosts
refs 
2016-01-21 16:37:52 +01:00
Gunnar Beutner 72c3b6d75b Make sure we're not running command_endpoint-based checks more than once
refs 
2016-01-21 10:37:47 +01:00
Michael Friedrich a51e647cc7 Fix check scheduling w/ retry_interval
fixes 
2016-01-20 16:29:01 +01:00
Michael Friedrich d9fac2b613 Raise a config error for "Checkable" objects in global zones
fixes 
2016-01-14 15:34:38 +01:00
Gunnar Beutner 599929b0f6 Update copyright headers for 2016 2016-01-12 08:29:59 +01:00
Michael Friedrich 737c574cdf Fix missing num_hosts_pending in /v1/status/CIB
fixes 
2015-11-26 20:03:46 +01:00
Michael Friedrich 9289971829 Remove IcingaStatusWriter feature
fixes 
2015-11-26 19:30:40 +01:00
Michael Friedrich 6518f78af0 Fix attribute validation for PUT queries
fixes 
2015-11-12 10:13:46 +01:00
Gunnar Beutner e3c75faabc Implement support for recursive object locks
fixes 
2015-11-11 10:21:30 +01:00
Michael Friedrich f5da37b7df Remove obsolete checks from API actions
refs 
2015-11-10 16:13:14 +01:00
Gunnar Beutner 2cc33b7fb3 Don't validate arguments/parameters that aren't strings
refs 
2015-11-10 07:59:10 +01:00
Michael Friedrich 1d2606cbfe Add filter targets for remove-{comment,downtime} actions
Drop remove-all-{comments,downtimes}. This is provided
by using host and service filters.

fixes 
2015-11-08 14:22:10 +01:00
Michael Friedrich 64c936d387 API Actions: Remove -by-id from actions and require names for comments and downtimes
The documentation is updated as well. Furthermore actions provide
detailed error information in case of an exception.
Includes DB IDO schema updates.

fixes 
2015-11-06 17:06:12 +01:00
Gunnar Beutner 09b2b054f5 Don't validate custom attributes that aren't strings
fixes 
2015-11-04 19:04:33 +01:00
Michael Friedrich 7589c61b38 Add missing override
refs 
refs 
2015-11-02 17:36:13 +01:00
Michael Friedrich 43976d3989 Add host.last_state_{up,down} and last_check attribute, hide *_raw attributes
fixes 
fixes 
2015-11-02 14:10:44 +01:00
Michael Friedrich 439dad5d6a API actions: Check if removal of comments and downtimes was succesful
refs 
2015-11-01 16:33:43 +01:00
Gunnar Beutner 15addb4e7c Use the correct zone name for parent_zone when running 'icinga2 node update-config'
fixes 
2015-10-29 08:14:55 +01:00
Gunnar Beutner 0013d26425 Build fix for Windows
refs 
2015-10-29 08:14:55 +01:00
Gunnar Beutner 050c520b2a Convert Comment/Downtime to config objects
fixes 
2015-10-28 17:56:29 +01:00
Jean Flach 2fc042e231 Update API actions and documentation
refs  
2015-10-27 14:15:07 +01:00
Gunnar Beutner dd77863910 Implement Array::ToString and Dictionary::ToString
fixes 
2015-10-26 11:05:24 +01:00
Jean Flach be320b2f77 Update API actions
fixes 
refs 
2015-10-22 11:33:26 +02:00
Gunnar Beutner 4aa0165701 Add getter for endpoint 'connected' attribute
fixes 
2015-10-22 10:52:38 +02:00
Gunnar Beutner 3473731034 Remove api.cpp and api.hpp
fixes 
2015-10-22 10:26:56 +02:00
Gunnar Beutner fd5d6de52e Improve performance for Livestatus queries
refs 
2015-10-22 08:28:40 +02:00
Michael Friedrich 62c3607531 Fix compiler warnings
refs 
2015-10-21 15:50:32 +02:00
Michael Friedrich 286538c17e Implement api event streams
Documentation is not yet complete.

refs 
2015-10-21 15:34:26 +02:00
Gunnar Beutner d01f09f3ef Hide internal attributes in the API
fixes 
2015-10-20 08:25:10 +02:00
Michael Friedrich 6cc4f85c66 Disallow modify attribute for certain object attributes
fixes 
2015-10-16 12:44:08 +02:00
Gunnar Beutner e92b7beeb4 Fix parsing performance data labels which contain '='
fixes 
2015-10-13 09:38:31 +02:00
Gunnar Beutner 8136cda367 Implement the ignore_on_error keyword
fixes 
2015-10-05 12:44:11 +02:00
Michael Friedrich 00712f1902 Use a temporary file for modified-attributes.conf updates
fixes 
2015-09-29 18:40:04 +02:00
Michael Friedrich 487ef513cf Remove dead code from old mod attrs in the cluster
refs 
2015-09-29 14:24:39 +02:00
Michael Friedrich 1813c0932c Remove dead code from old modified attributes
refs 
2015-09-29 14:24:39 +02:00
Gunnar Beutner 0c10d64094 Fix incorrect error messages for apply-for
fixes 
2015-09-24 08:30:03 +02:00
Jean-Marcel Flach 4ef9761fee Implement status api handler
Global statistics, features, etc.

fixes 
2015-09-23 16:59:07 +02:00
Michael Friedrich 84536da221 Implement global modified attributes for the IcingaApplication class
fixes 
2015-09-23 15:02:53 +02:00
Gunnar Beutner 1a6b41787a Implement joins for status queries
fixes 
2015-09-22 09:45:23 +02:00
Gunnar Beutner 6fa58a520c Implement config object sync
Adds object version.

refs 
2015-09-17 14:20:43 +02:00
Michael Friedrich fcf2f0ef5d Deprecate IcingaStatusWriter feature
fixes 
2015-09-14 10:36:06 +02:00
Michael Friedrich 3403765900 Use the command_endpoint name as check_source value if defined
fixes 
2015-09-05 15:18:10 +02:00
Michael Friedrich 50cd694142 Fix wrong calculation for host compat state UNREACHABLE
fixes 
2015-09-04 13:24:41 +02:00
Michael Friedrich da83bae660 Rename config/modules to config/packages
fixes 
2015-09-01 20:09:04 +02:00
Jean Flach f1a1dfb26e Update use of String::Trim()
fixes 
2015-08-27 18:06:20 +02:00
Gunnar Beutner 63a1ff77c3 Implement the resolve_arguments function
fixes 
2015-08-27 09:02:21 +02:00
Gunnar Beutner 6ef9d3c4db Missing macros in nested macro() calls should not cause the outer macro resolution to fail
fixes 
2015-08-27 09:02:21 +02:00
Jean Flach 01ced1549a Implement all actions except modified attributes
refs  
2015-08-26 13:53:17 +02:00
Gunnar Beutner f45f6ccd82 Implement support for tracking dependencies between config objects
refs 
2015-08-25 13:54:05 +02:00
Michael Friedrich 981ed591e9 API: Return comment/downtime ids, refactor code
refs 
2015-08-21 12:49:51 +02:00
Jean Flach c5fe46a300 Experimental actions without types
refs 
2015-08-21 12:48:32 +02:00
Jean Flach afd6af39d5 Implement external commands as api actions
refs 
2015-08-21 12:48:32 +02:00
Gunnar Beutner d118b71a2a Fix compiler warnings
fixes 
2015-08-18 07:46:04 +02:00
Gunnar Beutner 7fc7cde6a1 Build fix for Windows 2015-08-17 19:36:27 +02:00
Michael Friedrich 0f5287c2b1 Add module attribute for ConfigObject and set its origin
fixes 
2015-08-17 16:08:57 +02:00
Gunnar Beutner 071d2f18fb Rename DynamicObject/DynamicType to ConfigObject/ConfigType
fixes 
2015-08-15 20:40:41 +02:00
Gunnar Beutner ce2735f10b Fix validation errors when creating objects with the API
refs 
2015-08-15 20:07:11 +02:00
Gunnar Beutner e2290d5012 Implement support for unregistering objects
refs 
2015-08-15 20:07:11 +02:00
Gunnar Beutner 3d78870339 Implement support for modified attributes in the API
refs 
2015-08-15 20:07:11 +02:00
Gunnar Beutner a092c13ace Implement support for persisting modified attributes
fixes 
2015-08-15 20:07:10 +02:00
Michael Friedrich d7970f5bb1 Implement modified attributes v2
refs 
refs 
2015-08-15 20:07:10 +02:00
Jean Flach 60f86d01fe Implement /v1/actions/process-check-result
Requires error handling.

refs 
2015-07-31 17:18:49 +02:00
Michael Friedrich 0712a02d1b Add a warning if EventCommand is not found when using command_endpoint
fixes 
2015-07-31 16:04:03 +02:00
Michael Friedrich 766e2d73f4 Implement external command DEL_DOWNTIME_BY_HOST_NAME
Required by Classic UI 1.x, this will hopefully reduce
the noise on non-working commands with the old legacy stuff.

fixes 
2015-07-31 14:50:17 +02:00
Jean-Marcel Flach 9b6ebbc69b Implement basic actions framework
refs 
2015-07-30 17:50:17 +02:00
Gunnar Beutner a97782b3e5 Implement support for limiting output attributes
refs 
fixes 
2015-07-28 17:12:51 +02:00
Gunnar Beutner 8dedd47b89 Fix incorrect return value for the macro() function
fixes 
2015-07-13 08:25:19 +02:00
Michael Friedrich 184f316538 Fix wrong vars changed handler in api events
fixes 
2015-07-02 14:51:47 +02:00
Michael Friedrich 8596e2b3dc Add log message for discarded cluster events (e.g. from unauthenticated clients)
fixes 
2015-07-02 13:04:38 +02:00
Gunnar Beutner 9238c5af11 Fix incorrect validator for command arguments
fixes 
2015-06-18 08:13:40 +02:00
Michael Friedrich bd16651f79 Build fix
refs 
2015-06-15 17:24:55 +02:00
Markus Frosch 47c8b5e347 Fix multi line handling for compat check results
When a multi line result is submitted via the command pipe, any multi line
output is escaped to a actual string '\n', because any external command only
can be a single line.

Example:
  [1432735140] PROCESS_SERVICE_CHECK_RESULT;host;service;3;Test1\nTest2|test=1

We need to unescape this values, just like we use to escape multi line output
for IDO and status.dat.

fixes 

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-06-15 17:19:28 +02:00
Michael Friedrich baa8fb424f Fix missing custom attributes in backends if name is equal to object attribute
fixes 
2015-05-15 15:59:44 +02:00
Michael Friedrich e37cd25ed4 Fix failed assertion in DB IDO
fixes 
2015-04-27 11:00:41 +02:00
Michael Friedrich 7af41e93c0 Fix that downtimes are always "fixed" even if scheduled as "flexible"
fixes 
2015-04-25 15:06:29 +02:00
Michael Friedrich 83f4ebc0df Fix compiler warnings w/ config validators
fixes 
2015-04-20 14:16:19 +02:00
Michael Friedrich 53e6b1a6dd Fix custom attributes with recursive macro function calls
fixes 
2015-04-17 17:23:08 +02:00
Michael Friedrich d3a56b6404 Fix acknowledgement with expire time not added as comment expire_time
GetExpireTime() is always set to 0 which will make the comment reflect
wrong information compared to the text.

fixes 
2015-04-17 16:44:40 +02:00
Gunnar Beutner f69c0bd5a2 Remove the ScopeCurrent constant
fixes 
2015-04-15 08:36:17 +02:00
Michael Friedrich 4f767ab06a Change log level to 'notice' for 'Attempting to send notifications' messages
fixes 
2015-04-12 15:11:38 +02:00
Michael Friedrich 37f24592ed Trigger downtimes for NOT-OK states after OnDowntimeAdded()
The fix in  must happen *after* adding the downtime which signals an
insert into the IDO DB.
Once the downtimes have been added to the database, the additional
trigger_time and is_in_effect can be updated accordingly, *if* the
current object is already in a NOT-OK state.

fixes 
2015-04-12 14:38:35 +02:00
Gunnar Beutner 10441e9cd7 Fix permissions for agent CheckResult messages
fixes 
2015-03-30 13:50:14 +02:00
Gunnar Beutner a5c5569324 Improve timeperiod validation error messages
fixes 
2015-03-29 08:13:11 +02:00
Gunnar Beutner a6822fd59a Fix validation errors for time ranges which span the DST transition
fixes 
2015-03-29 08:05:01 +02:00
Gunnar Beutner 72a7b08480 Move implementation code from thpp files into separate files
fixes 
2015-03-28 11:08:12 +01:00
Gunnar Beutner ec7224e3ed Generate C++ code for type validators
fixes 
fixes 
2015-03-27 07:59:27 +01:00
Gunnar Beutner 3adec4576c Fix arrays in command arguments
fixes 
2015-03-26 09:29:52 +01:00
Gunnar Beutner d3c0c1e42b Fix incorrect variable values for apply+for
fixes 
2015-03-23 15:53:21 +01:00
Gunnar Beutner 151b6bbf00 Fix style violations 2015-03-21 10:04:14 +01:00
Michael Friedrich e1cb543bb5 Fix missing config validator for command arguments 'set_if'
fixes 
2015-03-20 16:12:24 +01:00
Gunnar Beutner e8cee8d5e2 Allow using more than one %validator rule for the same type
fixes 
2015-03-20 15:49:55 +01:00
Gunnar Beutner e22386e63f Make load order for objects more reliable
fixes 
2015-03-19 15:58:38 +01:00
Michael Friedrich 88f16abb3c Use Utility::NaturalJoin for notification filter formatting
refs 
2015-03-19 14:08:06 +01:00
Gunnar Beutner 6c96d5bc98 Clean up the start-up process a bit
fixes 
2015-03-18 11:14:51 +01:00
Michael Friedrich 3c945914ff Show notification state/type filter names in notice/debug log
fixes 
2015-03-12 17:11:24 +01:00
Michael Friedrich 05c237c780 Don't increment check attempt counter on OK->NOT-OK transition
refs 

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-03-11 16:33:36 +01:00
Gunnar Beutner 228aafc945 Implement the parse_performance_data function
fixes 
2015-03-11 16:29:50 +01:00
Gunnar Beutner e50d3e6e5a Fix validator for dependencies
fixes 
2015-03-09 08:04:18 +01:00
Gunnar Beutner 22f3c5082d Add validator for time ranges in ScheduledDowntime objects
fixes 
2015-03-09 08:02:12 +01:00
Gunnar Beutner 52102d815d Fix second Deserialize() call in ApiEvents::ExecuteCommandAPIHandler
refs 
2015-03-06 01:45:43 +01:00
Gunnar Beutner 139540b570 Make sure we don't evaluate apply rules for fake hosts used in agent checks
fixes 
2015-03-05 21:19:04 +01:00
Gunnar Beutner 9181d7ae05 Add missing service name in check results
refs 
2015-03-05 20:50:27 +01:00
Gunnar Beutner 1d2b008dcb Fix validator for TimePeriod ranges
fixes 
2015-03-03 09:56:38 +01:00
Gunnar Beutner cf37decbef Fix start condition for downtimes
fixes 
2015-03-03 09:52:13 +01:00
Jason Young faf6ce1a5f Update PerfdataValue::Parse to ignore invalid warn, crit, min, and max values
... instead of generating exception so that metric values can
still be passed to the graphing backend.
Also update icinga-perfdata tests to reflect these changes.

refs 

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-03-02 13:52:41 +01:00
Gunnar Beutner 5968622108 Fix incorrect assignment in PluginUtility::ExecuteCommand
Coverity Bug ID: 1272344
2015-03-02 10:14:15 +01:00
Gunnar Beutner 9548692f00 Fix uninitialized field in the Checkable class
Coverity Bug ID: 1272323
2015-03-02 10:14:14 +01:00
Gunnar Beutner c86b17132c Make sure that the scheduled start time for downtimes isn't ignored
fixes 
2015-02-25 15:19:50 +01:00
Gunnar Beutner acd5d55f64 Fix null pointer dereference in ApiEvents::RepositoryTimerHandler
fixes 
2015-02-25 14:00:00 +01:00
Gunnar Beutner 4da3b1c5b3 Make sure that Notification objects are activated after Host/Service objects
fixes 
2015-02-25 12:43:38 +01:00
Gunnar Beutner 551cb6ae87 Don't convert loop variables to string when using apply-for
fixes 
2015-02-24 17:51:16 +01:00
Gunnar Beutner a104dcf773 Add validator for the 'ignore_soft_states' attribute
refs 
2015-02-23 14:29:17 +01:00
Gunnar Beutner b5dbc66b22 Implement the 'is_inside' attribute for the TimePeriod type
refs 
2015-02-23 14:08:06 +01:00
Gunnar Beutner 47479ac4de Implement the 'get_time_period' function
refs 
2015-02-23 13:56:53 +01:00
Michael Friedrich aac53c1dd1 Add 'ignore_soft_states' attribute to Dependency objects
fixes 
2015-02-23 10:13:20 +01:00
Gunnar Beutner a76f816623 Implement the 'continue' and 'break' keywords
fixes 
2015-02-19 12:57:52 +01:00
Gunnar Beutner f097e48889 Don't use separate threads for each ApiClient object
fixes 
2015-02-14 16:34:36 +01:00
Michael Friedrich 2ed78e82a8 Validate configured TimePeriod ranges
Requires re-throwing the hidden exceptions inside the existing
timeperiod code and validating the configured time range
strings then.

fixes 
2015-02-13 17:10:58 +01:00
Michael Friedrich 2cab6fbb9d Make the argments for the stats functions const-ref
fixes 
2015-02-13 11:29:15 +01:00
James Pharaoh 9fe52d0dc1 Make checks using 'command_endpoint' work inside HA zones
Previously there was no local processing of the executed
check result, which is mandatory inside a HA cluster.

Additionally this patch splits the command execution and
check result processing into more logical parts, executing
local checks, checks on the same command endpoint, and
remote checks.

More details in the referenced issue.

fixes 

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-02-12 17:53:50 +01:00
Michael Friedrich 2ae06b7a52 Implement {EN,DIS}ABLE_HOST_SVC_NOTIFICATIONS commands
fixes 
2015-02-11 16:45:52 +01:00
Michael Friedrich 24852e05c7 Move ValidateMacroString into the MacroProcessor class
refs 
2015-02-11 16:14:59 +01:00
Michael Friedrich 0d18b96c39 Resolve macros in dictionary values
refs 
2015-02-11 15:58:59 +01:00
Gunnar Beutner cb6f1043e1 Replace if( with if ( 2015-02-11 15:47:45 +01:00
Michael Friedrich 8ca57cba03 Add macro config validator for command args, env, custom attr, perfdata templates
fixes 
2015-02-11 15:32:10 +01:00
Gunnar Beutner 2de89fe8d4 Allow funcs in the 'env' dictionary
refs 
2015-02-10 10:59:08 +01:00
Gunnar Beutner 9de7da4d2a Update validators for CustomVarObject
fixes 
2015-02-10 08:53:15 +01:00
Gunnar Beutner 96aa503dbe Disable flapping detection by default
fixes 
2015-02-09 14:23:09 +01:00
Gunnar Beutner 97fc5bb10b Implement additional attributes for the Host class
refs 
2015-02-09 08:50:17 +01:00
Gunnar Beutner e456cfd99c Relax the validator for Notification::users/Notification::user_groups a bit
fixes 
2015-02-08 11:03:10 +01:00
Michael Friedrich b23d58dccc Add host/service runtime macro downtime_depth
fixes 
2015-02-08 00:15:38 +01:00
Michael Friedrich 34b5a4d9b4 Trigger added downtimes immediately if checkable is Not-OK
fixes 
2015-02-08 00:08:12 +01:00
Michael Friedrich db9c55835f Require at least one user for notification objects (user or as member of user_groups)
fixes 
2015-02-07 23:04:01 +01:00
Michael Friedrich 9302a6d03c StatusDataWriter: Fix wrong host notification filters
fixes 
refs 
2015-02-07 22:46:34 +01:00
Michael Friedrich ea2ac81003 Remove name and return value for stats functions
fixes 
2015-02-07 22:36:17 +01:00
Michael Friedrich 9ce061a8c4 Fix User::ValidateFilters isn't being used
fixes 
2015-02-07 21:57:49 +01:00
Michael Friedrich a1f04992f3 Fix notify flag is ignored in ACKNOWLEDGE_*_PROBLEM commands
fixes 
2015-02-07 21:39:19 +01:00
Gunnar Beutner 0605b76e7a Report failed agent checks to the master
fixes 
2015-02-05 15:36:17 +01:00
Gunnar Beutner 2d5112c878 Send check result even when accept_commands is not set
fixes 
2015-02-05 15:17:56 +01:00
Michael Friedrich 06a262f7db Schedule a host downtime for command SCHEDULE_HOST_SVC_DOWNTIME
fixes 
2015-02-04 21:19:47 +01:00
Gunnar Beutner e3dcc8a610 Implement a unit test for nullary lambdas
fixes 
2015-02-03 14:02:32 +01:00
Gunnar Beutner c01fb97337 Don't escape macros for the macro() function
refs 
2015-01-29 16:52:04 +01:00
Gunnar Beutner 2f44581f14 Validate timeperiod segments
fixes 
2015-01-29 14:14:56 +01:00
Gunnar Beutner a3e0c9d898 Add missing mutex for AddNotification/RemoveNotification
fixes 
2015-01-29 13:21:22 +01:00
Gunnar Beutner fb323ee215 Evaluate apply filters in the for loop
fixes 
2015-01-29 12:38:25 +01:00
Gunnar Beutner dd4a7ab240 Update validators for command arguments
refs 
2015-01-29 10:30:02 +01:00
Gunnar Beutner 7b4f1e217a Implement support for functions in set_if
refs 
2015-01-29 10:09:53 +01:00
Gunnar Beutner ea3c3e0c3e Fix incorrectly resolved macros
refs 
2015-01-28 15:48:08 +01:00
Gunnar Beutner 235c7348f4 Implement accessor functions for hosts, services, etc.
refs 
2015-01-28 14:18:27 +01:00
Gunnar Beutner 4ad4c314ae Implement the 'macro' function for dynamic custom vars
refs 
2015-01-28 14:14:48 +01:00
Gunnar Beutner fb44744680 Implement support for using functions in custom attributes
refs 
2015-01-27 13:40:05 +01:00
Gunnar Beutner 13917e07b0 Implement validator support for function objects
fixes 
2015-01-27 10:55:14 +01:00
Gunnar Beutner a11cdbdc39 Replace spaces with tabs 2015-01-27 10:50:15 +01:00
Stephan Platz 2d393eab28 Add macro "check_source" for hosts and services to use them in notification mails
fixes 

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-01-25 16:04:36 +01:00
Michael Friedrich 78bfd0204c Update copyright year 2015-01-22 12:00:23 +01:00
Gunnar Beutner 363f23b1d8 Rename ScriptFunction to Function
fixes 
2015-01-21 08:48:38 +01:00
Gunnar Beutner 9a6a84d9d9 Implicitly convert filter values to bool for object rules
fixes 
2015-01-12 08:38:14 +01:00
Michael Friedrich 6ae9685cee Fix sending notifications for volatile checks on OK->OK changes
volatile checks make state changes behave like HARD state changes.
Though OK -> OK transitions must not be notified.

Increased log information for notifications too.

fixes 
2015-01-08 16:20:44 +01:00
Gunnar Beutner f02c87b14c Fix missing command arguments
fixes 
2015-01-08 11:38:09 +01:00
Gunnar Beutner 407f88e185 Fix incorrect week day calculation in LegacyTimePeriod::ParseTimeSpec
fixes 
2014-12-20 22:04:24 +01:00
Gunnar Beutner 97168378e8 Rename _DEBUG to I2_DEBUG
fixes 
2014-12-19 12:19:28 +01:00
Gunnar Beutner 06052c0539 Fix validation for service names in Notification, Dependency and ScheduledDowntime objects
fixes 
2014-12-19 11:44:31 +01:00
Gunnar Beutner 9f18211ada Remove obsolete code
refs 
2014-12-18 15:57:30 +01:00
Gunnar Beutner 873e294158 Refactor the WorkQueue class to make error reporting easier
refs 
2014-12-18 15:11:57 +01:00
Michael Friedrich a0359799bd Compat: Fix event_handler_enabled dump based on enable_event_handler attribute
fixes 
2014-12-18 11:22:15 +01:00
Gunnar Beutner 55b7f00382 Remove unnecessary includes 2014-12-15 10:16:06 +01:00
Gunnar Beutner 343d46bcbe Make sure IcingaApplication::GetVars returns a default value
refs 
2014-12-15 06:02:59 +01:00
Gunnar Beutner 1cb0231c05 Refactor how variable scopes work
refs 
2014-12-14 11:33:45 +01:00
Gunnar Beutner dd4c04aa9b Implement the 'global' keyword to differentiate between variable scopes
refs 
2014-12-13 17:48:58 +01:00
Gunnar Beutner 05485ea2d6 Disallow calling strings as functions
fixes 
2014-12-12 20:45:11 +01:00
Michael Friedrich d11286e9a5 DB IDO: Update child object reachability if parentchanges to !{OK,UP}
fixes 
2014-12-12 16:12:05 +01:00
Gunnar Beutner cfd775c948 Move the VMFrame class to libbase
refs 
2014-12-12 15:33:56 +01:00
Gunnar Beutner 0f496c0b55 Fix set_if for non-numeric boolean values
fixes 
2014-12-10 16:49:00 +01:00
Gunnar Beutner 2720333d6e Fix missing location information for included files
fixes 
2014-12-10 15:06:09 +01:00
Gunnar Beutner be4166b99e Fix incorrect brace placement 2014-12-08 11:43:33 +01:00
Gunnar Beutner ec99efbc28 Implement validator for the check_interval attribute
fixes 
2014-12-05 13:00:41 +01:00
Michael Friedrich cc8fe684fe Execute checks locally if command_endpoint == local endpoint
fixes 
2014-12-05 11:35:00 +01:00
Gunnar Beutner a5c206cbe2 Fix problem with macro arguments which are not separated by whitespace
fixes 
2014-12-01 15:53:23 +01:00
Gunnar Beutner 9dfa3d22d4 Implement support for arrays in command arguments
fixes 
2014-11-27 13:24:07 +01:00
Gunnar Beutner fddead5303 Fix some compiler warnings
fixes 
2014-11-24 18:25:08 +01:00
Gunnar Beutner f5766f9118 Refactor the stack frame handling for scripts
fixes 
2014-11-22 19:24:03 +01:00
Gunnar Beutner 307db672c1 Fix initialization bug for the Notification class
refs 
2014-11-22 16:43:39 +01:00
Gunnar Beutner 334e61037a Split DynamicObject::OnConfigLoaded into two separate events
refs 
2014-11-21 18:31:37 +01:00
Gunnar Beutner 0078e00c13 Refactor apply/object rules
fixes 
2014-11-20 21:29:50 +01:00
Gunnar Beutner 2d53e000c8 Refactor the config validator so that it doesn't require serialized objects
refs 
2014-11-20 13:28:21 +01:00
Michael Friedrich f73d69691b Make sure that notified users are stored in state file
refs 
2014-11-14 18:11:58 +01:00
Gunnar Beutner 7321e45abc Implement support for executing remote commands
fixes 
2014-11-13 14:54:55 +01:00
Gunnar Beutner b3aa2eb0c8 Fix validator for dependency filters
fixes 
2014-11-12 09:40:45 +01:00
Gunnar Beutner ec109b04dd Refactor the AST
refs 
2014-11-10 12:06:25 +01:00
Michael Friedrich 885e7704a2 Only notify users on recovery who have been notified on not-OK before
Also ensure that type NotificationRecovery always
passes the state filter (missing `OK` is totally fine).

Also fix that notification delays set the correct
next notification time to the begin time window.

fixes 
fixes 
fixes 
2014-11-09 19:47:24 +01:00
Gunnar Beutner 478f03b49a Replace boost::shared_ptr with boost::intrusive_ptr
refs 
2014-11-09 16:54:41 +01:00
Gunnar Beutner e1c95d4fa0 Improve config compiler's memory usage 2014-11-08 13:21:51 +01:00
Gunnar Beutner ade12dc27a Remove unused attributes 2014-11-07 21:43:00 +01:00
Gunnar Beutner 266b1754c7 Speed up type lookups
refs 
2014-11-07 12:39:32 +01:00
Gunnar Beutner 60114d4b5d Fix crash in CompatUtility::GetCheckableCommandArgs
refs 
2014-11-07 09:26:44 +01:00
Gunnar Beutner f69f7d61f2 Fix variable scope for object rules 2014-11-06 19:26:44 +01:00
Gunnar Beutner 18d317faf9 Fix crash in ApiEvents::CheckResultAPIHandler
fixes 
2014-11-05 09:58:43 +01:00
Michael Friedrich eeb6facdac Livestatus: Add 'cv_is_json' and encode CV arrays/dicts as json
refs 
2014-11-04 17:39:28 +01:00
Gunnar Beutner de080e4928 Fix incorrect field name
refs 
2014-11-04 15:24:57 +01:00
Gunnar Beutner a6f20c7a22 Implement support for arbitrarily complex indexers
fixes 
2014-11-04 15:20:33 +01:00
Gunnar Beutner a1c905bf62 Implement dictionary support for apply+for
fixes 
2014-11-04 11:02:10 +01:00
Gunnar Beutner 170c5a59e4 Implement typeof() function 2014-11-03 00:45:14 +01:00
Gunnar Beutner 46b149dd7d Implement support for formatting arrays in macro strings
fixes 
2014-11-02 07:35:43 +01:00
Gunnar Beutner 4677014b6d Implement support for arrays in custom variables
fixes 
2014-11-02 07:27:50 +01:00
Gunnar Beutner 57747ccdb1 Hosts/services should not have themselves as parents
fixes 
2014-10-29 10:47:26 +01:00
Gunnar Beutner 75b599c801 Set host/service variable in apply rules
fixes 
2014-10-29 10:09:40 +01:00
Gunnar Beutner 4cb3d5b1f0 Fix "assign where" for nested groups
fixes 
2014-10-28 18:58:22 +01:00
Gunnar Beutner 8fdb2835e5 Fix code style 2014-10-28 18:04:51 +01:00
Gunnar Beutner 29ad90a469 Fix performance data for API events
fixes 
2014-10-28 15:24:35 +01:00
Gunnar Beutner 2d6c3e8d5b Remove localhost virtual name thingie from apievents.cpp
refs 
2014-10-28 14:44:55 +01:00
Gunnar Beutner 0cff9314f9 Remove virtual name feature for agent hosts
fixes 
2014-10-28 14:05:17 +01:00
Gunnar Beutner 7559273359 Replace cJSON with YAJL
fixes 
2014-10-26 20:00:35 +01:00
Gunnar Beutner 315c84eb4a Fix problems with the serializer when using 'type' as an attribute
fixes 
2014-10-25 09:14:56 +02:00
Michael Friedrich e293092bdc CLI: Add basic agent command functionality (add, remove)
Prepare for set, setup, wizard, *list.
Change repository files to .repo, rename .peer to .settings

refs 
refs 
2014-10-21 13:23:46 +02:00
Gunnar Beutner 9368ff0e03 Update some more log messages 2014-10-20 10:09:57 +02:00
Gunnar Beutner 2d5e9514a5 Refactor logging code 2014-10-19 17:52:17 +02:00
Gunnar Beutner 739cb43289 Rename qstring.{cpp,hpp} to string.{cpp,hpp} 2014-10-19 14:52:07 +02:00
Gunnar Beutner b18f57a745 Remove logger_fwd.hpp 2014-10-19 14:50:39 +02:00
Gunnar Beutner 92896311f3 Implement support for C/C++ comments in the TI compiler
fixes 
2014-10-17 19:44:31 +02:00
Gunnar Beutner feeb550654 Rename AExpression to Expression 2014-10-16 17:44:06 +02:00
Gunnar Beutner d7fc37b12e Ignore (most) messages from unauthenticated clients
refs 
2014-10-16 13:04:04 +02:00
Gunnar Beutner 14ac7dd974 Replace spaces with tabs 2014-10-13 09:47:05 +02:00
Michael Friedrich 56327f8e35 Dependencies: Fix disable_notifications = true as default setting
fixes 
2014-10-11 19:33:03 +02:00
Gunnar Beutner 5962330b27 Improve error messages for apply rules
refs 
2014-10-10 11:39:03 +02:00
Gunnar Beutner 321809bea8 Fix null pointer deref in PluginUtility::FormatPerfdata
refs 
2014-09-17 16:07:12 +02:00
Gunnar Beutner 879684efcd Fix problems with PNP4Nagios
fixes 
2014-09-17 15:38:39 +02:00
Gunnar Beutner d84a3306d5 Make CompatUtility::GetCheckablePercentStateChange return a floating-point number 2014-09-08 09:58:53 +02:00
Gunnar Beutner bf2e3cb091 Don't parse perfdata if enable_perfdata is false
fixes 
2014-09-07 12:27:06 +02:00
Jean-Marcel Flach df3da5f1f3 Change log message for checking/sending notifications
fixes 
2014-09-03 13:23:19 +02:00
Gunnar Beutner 5e53b771fa Fix invalid exit code
fixes 
2014-09-02 13:28:06 +02:00
Gunnar Beutner 6f2ea6bc08 Fix build problems with Oracle Solaris Studio
refs 
2014-09-02 13:09:17 +02:00
Gunnar Beutner eb091a87b0 Implement support for unity builds
fixes 
fixes 
2014-08-30 20:02:12 +02:00
Gunnar Beutner eaea65a366 Make props argument for NameComposer::MakeName constant 2014-08-29 16:46:46 +02:00
Michael Friedrich 094e964660 Log warning message if 'set_if' argument cannot be evaluated properly
fixes 
2014-08-27 18:29:08 +02:00
Michael Friedrich 626a68e052 Add cluster api events for modified attributes support
refs 
2014-08-26 17:11:19 +02:00
Michael Friedrich aedef8af97 Modify OnVarsChanged event to pass values
refs 
2014-08-26 17:11:19 +02:00
Michael Friedrich 31c9406684 Add OnCheckPeriodChanged event
refs 
2014-08-26 17:11:19 +02:00
Michael Friedrich 0db1b5095d Add OnMaxCheckAttemptsChanged event
refs 
2014-08-26 17:11:19 +02:00
Michael Friedrich 552d0a7d18 Add On{Event,Check}CommandChanged event
refs 
2014-08-26 17:11:19 +02:00
Michael Friedrich 3899601744 Add On{Check,Retry}IntervalChanged event
refs 
2014-08-26 17:11:19 +02:00
Michael Friedrich d53fced691 Add OnEnableEventHandlerChanged event
refs 
2014-08-26 17:11:19 +02:00
Gunnar Beutner 913e35da9e Make sure that child zones accept commands from their parent zone
refs 
2014-08-22 13:51:27 +02:00
Michael Friedrich fc401516a8 Fix check results for localhost in HA cluster
fixes 
2014-08-22 13:01:06 +02:00
Gunnar Beutner 65bec9e904 Clean up some parts of the code 2014-08-17 17:57:41 +02:00
Gerd von Egidy a4b7984719 Add warning messages when performance data could not be parsed or not be sent to Graphite
refs 
2014-08-05 11:23:36 +02:00
Michael Friedrich 7b8dc1d97e Fix non-existing endpoint on ApiListener error
refs 
2014-08-04 17:23:41 +02:00
Michael Friedrich 8f2af1ae9a Fix permission problem with cluster messages
fixes 
2014-07-31 12:11:43 +02:00
Gunnar Beutner 2d6ed4c9be Make sure that event handlers are run for hard recoveries
fixes 
2014-07-22 14:16:22 +02:00
Gunnar Beutner 263f198992 Require command to be an array when the arguments attribute is used
fixes 
2014-07-16 13:01:55 +02:00
Gunnar Beutner ec92309349 Don't run event commands when hosts/services are OK
fixes 
2014-07-16 11:48:36 +02:00
Jason Young fcdd5d3ea5 Update behavior of "order" attribute for command arguments
fixes 

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-07-16 08:43:33 +02:00
Gunnar Beutner 7e83247508 Make "enable_notifications" a config attribute
fixes 
2014-07-10 10:59:22 +02:00
Gunnar Beutner f9075a0d0e Change default value for enable_notifications
fixes 
2014-07-09 15:23:43 +02:00
Gunnar Beutner a5936d8eab Don't send notifications for users who have enable_notifications = false
fixes 
2014-07-09 08:56:16 +02:00
Gunnar Beutner 8d3632caf8 Cache parent and child object for dependencies
fixes 
2014-06-24 11:46:53 +02:00
Michael Friedrich 1d048462a2 Use hostname if fqdn is empty for NodeName.
Refs 
2014-06-04 11:29:29 +02:00
Michael Friedrich 3ecec31af3 Change log message identifier for libicinga.
Refs 
2014-05-28 14:42:00 +02:00
Gunnar Beutner ecb4f9738e Use Utility::GetFQDN for the NodeName variable.
Refs 
2014-05-27 12:53:41 +02:00
Michael Friedrich d3171dc8b9 Fix removal of expired ScheduledDowntimes.
Fixes 
2014-05-27 09:44:32 +02:00
Michael Friedrich e070db65c8 Fix check statistics are mixing host/service checks.
Fixes 
2014-05-26 20:56:59 +02:00
Gunnar Beutner 632026cd9f Rename C++ header files.
Fixes 
2014-05-25 16:27:14 +02:00
Michael Friedrich 1436575095 Fix incorrect host state change logs.
Fixes 
2014-05-25 12:45:29 +02:00
Gunnar Beutner 820b1a340c Improve log messages.
Refs 
2014-05-23 19:07:44 +02:00
Gunnar Beutner 215f500b0e Fix compiler warnings.
Refs 
2014-05-23 11:05:25 +02:00
Michael Friedrich 1df7518b35 Move more log messages to 'notice' severity.
Refs 
2014-05-22 23:47:03 +02:00
Gunnar Beutner 1bc1356fe6 Windows build fix. 2014-05-22 21:32:08 +02:00
Michael Friedrich 4fa42d6fd1 Remove authorities leftover. 2014-05-22 20:36:37 +02:00
Michael Friedrich 4296ec3987 Change the most chatting log messages to 'notice' severity.
Refs 
2014-05-22 16:07:57 +02:00
Gunnar Beutner fceeeba05e Fix compiler warnings.
Fixes 
2014-05-22 10:28:21 +02:00
Gunnar Beutner 99ce7981da Use the right CheckResult object for commands.
Fixes 
2014-05-22 09:11:16 +02:00
Michael Friedrich af951819bc Add MessageOrigin to OnVarsChanged.
Refs 
Refs 
2014-05-19 18:17:47 +02:00
Michael Friedrich 601e10cb46 Use CustomVarObject instead of DynamicObject for all libicinga objects.
Fixes 
2014-05-19 17:57:58 +02:00
Gunnar Beutner b814d89ce0 Fix command timeout.
Fixes 
2014-05-19 13:09:49 +02:00
Gunnar Beutner 657b3c6a1a Fix deadlock in db_ido.
Fixes 
2014-05-19 10:56:50 +02:00
Gunnar Beutner f26b37e763 Execute apply/object rules in parallel.
Fixes 
2014-05-17 20:50:07 +02:00
Gunnar Beutner d5f5d7b0a2 Set parent_host_name in Dependency objects to the host's name for apply rules.
Fixes 
2014-05-17 12:58:35 +02:00
Gunnar Beutner d587c962ce Implement the config::Update message.
Refs 
2014-05-13 15:57:02 +02:00
Michael Friedrich aa97c3c670 Add command namespace {check_,event_,notification_} to legacy interfaces.
Fixes 
2014-05-12 16:18:03 +02:00
Gunnar Beutner 9c3e399188 Remove unnecessary includes.
Fixes 
2014-05-11 18:11:32 +02:00
Michael Friedrich ad77709c07 Rename host.total_* runtime macros to host.num_*.
Fixes 
2014-05-11 15:08:32 +02:00
Gunnar Beutner 6a8db4035d Fix another couple of compiler warnings.
Refs 
2014-05-11 08:36:51 +02:00
Gunnar Beutner 12c8814bd8 Fix some more compiler warnings.
Refs 
2014-05-11 06:43:01 +02:00
Gunnar Beutner c7b5e4c31e Fix some compiler warnings.
Refs 
2014-05-11 06:04:43 +02:00
Michael Friedrich f5e568d3fb DB IDO: Add 'is_reachable' column to {host,service}status tables.
Refs 
2014-05-10 21:03:47 +02:00
Michael Friedrich 7730cc9b52 ModifiedAttributes for Enable* must call signals.
Refs 
Refs 
2014-05-10 17:24:39 +02:00
Michael Friedrich 07bd8943ce Add OnEnablePerfdataChanged signal.
Refs 
2014-05-10 16:24:58 +02:00
Gunnar Beutner 0e34968e8f Implement for loops.
Fixes 
2014-05-10 11:26:56 +02:00
Gunnar Beutner 042e4270bf Fix an issue where expired Timer pointers caused other timers to be delayed.
Fixes 
2014-05-09 19:26:31 +02:00
Gunnar Beutner 020ca0b2e9 Apply: Inherit zone from parent object.
Refs 
2014-05-09 10:36:26 +02:00
Gunnar Beutner 01941a9807 Don't log repository messages.
Refs 
2014-05-08 15:46:47 +02:00
Gunnar Beutner b36b03cac1 Remove zone check in ApiEvents::UpdateRepositoryAPIHandler.
Refs 
2014-05-08 15:27:16 +02:00
Gunnar Beutner 5678fe750c Fix incorrect function name.
Refs 
2014-05-08 13:15:08 +02:00
Gunnar Beutner e322cc5086 Implement aliasing support for "localhost".
Refs 
2014-05-08 13:08:34 +02:00
Gunnar Beutner 656d6ff13a Update scripts and example config.
Refs 
2014-05-08 12:17:21 +02:00
Gunnar Beutner 45270f1bb8 Refactor the agent and cluster components.
Refs 
2014-05-08 09:13:04 +02:00
Michael Friedrich cf2bdecfeb Don't allow "managed" downtimes to be deleted by users.
Fixes 
2014-05-04 16:57:11 +02:00
Michael Friedrich 4f44ef13f1 Fix string conversion in CompatUtility::GetCheckableCommandArgs().
Refs 
2014-05-04 16:49:24 +02:00
Michael Friedrich ddfccf3188 Add debug log entries for dependencies.
Refs 
2014-05-03 21:04:56 +02:00
Michael Friedrich 0691d73af9 Rename Dependency 'state_filter' to 'states'.
Fixes 
2014-05-03 19:53:16 +02:00
Michael Friedrich 5aa578c4e4 Implement CompatUtility::GetCheckableCommandArgs() for DB IDO, Livestatus, StatusDataWriter.
Fixes 
2014-05-03 03:18:37 +02:00
Michael Friedrich 74be8cd2d0 Implement summary macros e.g. $icinga.num_services_critical$.
Additional $icinga.uptime$ macro.

Fixes 
2014-05-03 02:08:36 +02:00
Michael Friedrich dbe6a20fd2 Fix exception for Notification objects without checkable object.
Fixes 
2014-05-02 19:43:49 +02:00
Michael Friedrich 07c0c9e234 Fix state_filter attribute validation for Depdency objects.
Fixes 
2014-05-02 19:37:55 +02:00
Michael Friedrich 7e164291a0 Make AddGroup() unique.
Refs 
2014-05-02 00:38:46 +02:00
Michael Friedrich b268e7d32d Group assign requires object.groups update too (for apply rules).
Refs 
2014-05-01 23:53:38 +02:00
Michael Friedrich 01a0496988 Add AddGroup() for host, service, user objects.
Refs 
2014-05-01 23:53:08 +02:00
Michael Friedrich 309c8d7299 Fix dependency logging for hosts and services.
Fixes 
2014-05-01 22:07:35 +02:00
Gunnar Beutner 1c9e985f1d Rename "optional" attribute to "required" and change the default value.
Fixes 
2014-04-29 10:41:32 +02:00
Gunnar Beutner 17d277ff16 Implement the "order" attribute for command arguments.
Refs 
2014-04-29 10:33:09 +02:00
Gunnar Beutner d500097e4b Fix support for StatsOr and StatsAnd.
Fixes 
2014-04-27 15:16:57 +02:00
Gunnar Beutner 9b9ee5c425 Add ssh_port parameter for the ssh check command.
Refs 
2014-04-26 18:31:49 +02:00
Gunnar Beutner d617c7b1f6 Implement support for optional command arguments.
Fixes 
2014-04-26 15:03:38 +02:00
Michael Friedrich 2b70b282ad Add {Host,Service}Group attributes: notes, notes_url, action_url.
Fixes 
2014-04-24 14:48:57 +02:00
Michael Friedrich d0af8a226b Fix headers. 2014-04-23 15:57:58 +02:00
Michael Friedrich 7a147d268e Add group assign/ignore rules.
Fixes 
2014-04-23 15:50:00 +02:00
Michael Friedrich c239f84fd7 Revert "Add group apply (creates object only once and sets membership)."
This reverts commit 559a4fef67.

Refs 
2014-04-23 14:59:48 +02:00
Michael Friedrich c8b3fde2ef Drop unused statusmap_image & coords attributes entirely.
Fixes 
2014-04-22 13:48:06 +02:00
Michael Friedrich fe1a83ff34 Revert "Add statusmap_image and coords host attributes."
This reverts commit 252980a6bd.

Refs 
2014-04-22 12:09:24 +02:00
Michael Friedrich 0da670d11c Resolve runtime macros recursively in *_url, notes similar to vars.
Fixes 
2014-04-17 17:38:02 +02:00
Michael Friedrich 252980a6bd Add statusmap_image and coords host attributes.
They are as important as action_url, etc.

coords is made a dictionary consisting of x_2d and y_2d as keys.

Fixes 
2014-04-17 16:48:59 +02:00
Michael Friedrich 5b359ea518 Add CompatUtility::GetModifiedAttributesList() for Livestatus.
Fixes 
2014-04-17 16:01:44 +02:00
Michael Friedrich 72f7537fa6 Add modified attributes for user and command vars.
Fixes 
2014-04-17 15:20:28 +02:00
Michael Friedrich 0dedd7cf19 Add global Enable{Host,Service}Checks. Update interfaces and external commands.
Fixes 
Fixes 
2014-04-17 11:29:47 +02:00
Michael Friedrich 8cfce66604 Fix custom var override.
Refs 
Refs 
2014-04-16 17:52:12 +02:00
Michael Friedrich 7c0d93ea0a Add modified attributes for vars dictionary.
- new external commands
- raw values for 'vars'
- OnVarsChanged() signal for db_ido customvariablestatus updates
- refactor db_ido customvariable config updates

Refs 
Refs 
2014-04-16 17:52:12 +02:00
Michael Friedrich 559a4fef67 Add group apply (creates object only once and sets membership).
Refs 
2014-04-15 14:55:29 +02:00
Gunnar Beutner 060a802d15 Implement support for hosts in the agent component.
Refs 
2014-04-15 13:38:01 +02:00
Michael Friedrich f48a6b429b Add nested group support for {Host,Service,User}Group.
Fixes 
2014-04-14 21:52:01 +02:00
Gunnar Beutner 2961364e97 Implement support for agent-based checks.
Refs 
2014-04-12 04:21:09 +02:00
Gunnar Beutner cdda8d5734 Fix external commands which take no arguments.
Fixes 
2014-04-11 15:48:19 +02:00
Gunnar Beutner 3002532280 Make sure the scheduling offset is set properly for hosts.
Refs 
2014-04-11 14:57:16 +02:00
Gunnar Beutner 8d3a334183 Mark the PerfdataValue class as "safe".
Refs 
2014-04-11 07:44:28 +02:00
Gunnar Beutner c123210529 Only resolve user macros (vars.*) recursively.
Fixes 
2014-04-10 08:46:36 +02:00
Gunnar Beutner 606834e190 Rename the notification attributes.
Fixes 
2014-04-09 10:25:23 +02:00
Gunnar Beutner e24e128f65 Change the default notification interval to 30 minutes.
Refs 
2014-04-09 06:50:07 +02:00
Gunnar Beutner 0529d3f1f5 Fix the state filters for "critical" and "unknown".
Refs 
2014-04-09 00:09:35 +02:00
Gunnar Beutner dcf7d07c7a Fix default values for notification filters.
Refs 
2014-04-08 23:33:25 +02:00
Gunnar Beutner 4a32ca9123 Fix passive check results.
Fixes 
2014-04-08 15:36:45 +02:00
Gunnar Beutner 80778bad1d Update components to use the new address fields.
Refs 
2014-04-08 13:34:48 +02:00
Gunnar Beutner 0fdb9ea21b Implement attributes for some well-known macros and allow macro recursion.
Refs 
Fixes 
2014-04-08 13:23:24 +02:00
Gunnar Beutner 1c115297f9 Rename the service state constants.
Fixes 
2014-04-08 09:11:54 +02:00
Gunnar Beutner e560e1e00c Remove the HostUnreachable state.
Fixes 
2014-04-08 08:54:49 +02:00
Gunnar Beutner 32e1c02b9a Clean up some of the type checks.
Refs 
2014-04-07 22:06:05 +02:00
Michael Friedrich 9ab4b3dd16 Remove the 'Icinga' prefix for global constants.
Fixes 
2014-04-07 21:42:23 +02:00
Michael Friedrich aae5f092d4 Log warning if apply rule does not match anywhere.
Fixes 
Fixes 
2014-04-07 15:00:14 +02:00
Gunnar Beutner cea15e11dc Implement new state and type filters.
Fixes 
2014-04-07 14:00:18 +02:00
Michael Friedrich 0e3b387a70 Fix missing target types in ScheduledDowntime apply.
Fixes 
2014-04-07 13:06:28 +02:00
Gunnar Beutner 98fba78fe4 Remove the escape_macros attribute.
Refs 
2014-04-06 10:45:50 +02:00
Gunnar Beutner ad42367999 Refactor name helper classes a bit.
Refs 
2014-04-06 08:15:07 +02:00
Gunnar Beutner 020eaf99ab Fix yet another validation issue.
Refs 
2014-04-05 23:23:49 +02:00
Gunnar Beutner 00fd51e628 Implement relative object names.
Fixes 
2014-04-05 22:17:37 +02:00
Michael Friedrich d3b67cf2ed Fix host custom attribute 'address' as runtime macro.
Refs 
2014-04-05 19:08:46 +02:00
Michael Friedrich b9415aad3d Fix typo.
Refs 
2014-04-05 17:53:37 +02:00
Michael Friedrich 4966dfd241 Provide 1.x fallback using GetName() for address macros.
Refs 
2014-04-05 17:45:28 +02:00
Michael Friedrich e309a5d330 Access custom attributes as ${host,service,user}.vars.<name>$.
Refs 
2014-04-05 17:13:17 +02:00
Michael Friedrich 34092f0a52 Fix legacy attributes by object type. 2014-04-05 17:13:05 +02:00
Gunnar Beutner d64823858d Fix validation for ScheduledDowntime objects.
Refs 
2014-04-05 16:27:26 +02:00
Gunnar Beutner 4ffcd4f403 Fix validation for Notification objects.
Fixes 
2014-04-05 16:26:51 +02:00
Gunnar Beutner 5e38c81eb5 Implement apply target types.
Fixes 
2014-04-05 13:53:55 +02:00
Gunnar Beutner 5ccdf017ac Fix macros.
Refs 
2014-04-05 09:24:11 +02:00
Gunnar Beutner c42a582307 Rename "short_name", "host" and "sevice" attributes.
Fixes 
2014-04-05 09:15:40 +02:00
Michael Friedrich 31e3377897 Drop duplicate attribute.
Refs 
2014-04-04 23:03:20 +02:00
Michael Friedrich 09cbf18b26 Implement 'env' dictionary instead of 'export_macros' array.
Revamp notification runtime macros too.

Refs 
2014-04-04 22:57:56 +02:00
Michael Friedrich aba4f1a0d5 Implement $user.<name>$ runtime macros.
Refs 
2014-04-04 21:36:47 +02:00
Michael Friedrich 0a0399826f Implement ${host,service}.<name>$ runtime macros.
Refs 
2014-04-04 20:09:23 +02:00
Michael Friedrich e375f15e5b Implement global runtime macros as $icinga.<name>$.
Refs 
2014-04-04 19:35:47 +02:00
Michael Friedrich 17b87c9b2a Add CompatUtility::IsLegacyAttribute().
Refs 
2014-04-04 16:35:45 +02:00
Gunnar Beutner 23e9630682 Implement host checks.
Refs 
2014-04-04 15:57:54 +02:00
Michael Friedrich 5c58eb368c Merge 'macros' and 'custom' attributes into 'vars', part 1.
Refs 
2014-04-03 11:35:25 +02:00
Michael Friedrich a05c31cda2 CompatUtility: Fix host 2d_coords.
Fixes 
2014-04-02 14:43:40 +02:00
Michael Friedrich 3fe169cd7a Graphite/PerfdataWriter: Add host perfdata.
Fixes 
2014-04-02 14:13:24 +02:00
Gunnar Beutner 036fd3303f Replace $plugindir$ macro with a constant.
Fixes 
2014-03-31 13:11:36 +02:00
Michael Friedrich 2f59aa38a3 Fix unknown attribute 'notification_type_filter'.
Fixes 
2014-03-30 16:15:49 +02:00
Gunnar Beutner 5179eebf09 Allow rterm in indexer ops.
Refs 
2014-03-30 10:00:11 +02:00
Gunnar Beutner 14084735da Make sure we evaluate "apply" rules in the right order.
Refs 
2014-03-30 01:20:58 +01:00
Gunnar Beutner 6ef2cdb0eb Implement apply support for dependencies.
Refs 
2014-03-28 23:03:53 +01:00
Gunnar Beutner 33ae12d084 Implement apply support for scheduled downtimes and notifications.
Refs 
2014-03-28 23:01:33 +01:00
Gunnar Beutner adce8e95bc Move the apply rule handler to the Service class.
Refs 
2014-03-28 19:45:02 +01:00
Gunnar Beutner 54063f0b9f Rename __name and __type properties.
Refs 
2014-03-28 14:17:55 +01:00
Gunnar Beutner 7ee1278118 Implement the new syntax for the "apply" keyword.
Refs 
2014-03-28 14:00:00 +01:00
Gunnar Beutner b289987500 Implement the "." operator.
Refs 
2014-03-28 13:59:56 +01:00
Gunnar Beutner de81baf515 Remove inline service/notification/downtime definitions.
Refs 
2014-03-28 11:22:39 +01:00
Gunnar Beutner 8958d2f69f Implement the "import" keyword.
Refs 
2014-03-28 11:22:36 +01:00