Commit Graph

1603 Commits

Author SHA1 Message Date
Gunnar Beutner bdd0ee013c Implement Service::GetFlappingCurrent(). 2013-07-01 14:39:43 +02:00
Gunnar Beutner ff6383873f Implement Service::GetFlappingThreshold(). 2013-07-01 14:30:19 +02:00
Gunnar Beutner ff04af396b Add missing validator for flapping_threshold. 2013-07-01 14:09:54 +02:00
Gunnar Beutner e2714525c9 Remove the built-in attributes notes_url and action_url. 2013-07-01 13:55:25 +02:00
Gunnar Beutner 4766e801a2 objects.cache: Add support for the "notes" attribute. 2013-07-01 13:51:00 +02:00
Gunnar Beutner 23c87f6eaf Implement support for custom variables.
Fixes #4344
2013-07-01 13:46:50 +02:00
Gunnar Beutner e28fba2a9c Fix missing variable definition: Service::m_Endpoint. 2013-07-01 11:28:49 +02:00
Michael Friedrich b906b51d3b refactor downtime message handling (wip) 2013-07-01 11:28:49 +02:00
Michael Friedrich 6f7b231302 compatlog: refactor custom/acknowledgement notifications with author/commenttext
refs #4361
2013-07-01 11:17:58 +02:00
Michael Friedrich cd48a4946a compatlog: fix checkcommand name
refs #4361
2013-07-01 10:03:00 +02:00
Michael Friedrich 3af0559b4a Compat: log notifications (wip)
- we need a way to figure out which last commend id (or, author and
  text) where set when type is CUSTOM or ACKNOWLEDGEMENT
- GetCheckCommandName was required too
- not sure if notifications.cpp is the correct location

refs #4361
refs #3985
refs #2750
2013-06-28 21:31:38 +02:00
Michael Friedrich aa3196407a icinga2.conf.dist: add CompatLog as default 2013-06-28 20:46:53 +02:00
Michael Friedrich 01a4755333 remoting: multicast messages into debug log 2013-06-28 19:50:23 +02:00
Michael Friedrich 29175b1eb3 fix typo 2013-06-28 13:44:18 +02:00
Michael Friedrich 147cd81328 add downtime message (started,stopped,cancelled) and compat logger
refs #3985
refs #2750
2013-06-28 13:40:01 +02:00
Gunnar Beutner 6f3d60a647 Update the tutorial a bit. 2013-06-28 09:04:49 +02:00
Michael Friedrich db07e19ae8 docs: update latest changes
fixes #4338
2013-06-27 14:53:26 +02:00
Gunnar Beutner 4b997c0838 Implement validator for timeperiods.
Fixes #3845
2013-06-27 11:25:10 +02:00
Gunnar Beutner a97519a42e Move filter constants to itl/constants.conf. 2013-06-27 11:23:32 +02:00
Michael Friedrich 7c0a71bc29 Compat: split cr output into (long_)output, log only output
status.dat requires output, and long_output seperated for proper
representation by guis and addons (they cannot be changed for
compatibility reasons, we must change).

logging an ALERT requires only the output (first line of the check
result output).

fixes #3882
fixes #4348
2013-06-26 18:23:59 +02:00
Michael Friedrich 6ed811cd78 configconvert: fix already replaced quotes escaping
refs #2743
2013-06-26 17:52:54 +02:00
Michael Friedrich 7599e858ec configconvert: update README
refs #2743
2013-06-26 16:23:33 +02:00
Michael Friedrich f3ccb88bae configconvert: custom attr (CVs, *_url, notes, *image*, 2d_coords)
collect attributes
* notes
* icon_image
* icon_image_alt
* action_url
* notes_url
* statusmap_image
* 2d_coords
* _CVs
* !__I2CONVERT

and stash it onto the custom dictionary.

note: attribute names starting with a number need to be quoted.

fixes #3096
2013-06-26 16:01:22 +02:00
Michael Friedrich 12916ec299 configconvert: update README (NOTES and TODO)
refs #2743
2013-06-26 14:29:57 +02:00
Michael Friedrich 2985eee66d configconvert: treat 'null' (disable inheritance) as '0' instead
refs #2743
2013-06-26 14:29:31 +02:00
Michael Friedrich 18e3bdc581 configconvert: fix 'n' and 'a' notification_options (filter = 0, filter = ...)
refs #4060
2013-06-26 14:12:38 +02:00
Michael Friedrich 1faba25e9c configconvert: skip empty notification filters
refs #4060
2013-06-26 13:49:25 +02:00
Michael Friedrich 6586c6da2e configconvert: disable some debug leftovers
$ find -type f -name '*.pm' | xargs sed -i 's/[^#]say Dumper/ #say
Dumper/g'
2013-06-26 13:30:26 +02:00
Michael Friedrich e7ab01aa6d configconvert: notification_options -> notification_{state,type}_filter
parsing the existing comma separated list and using some perl hash magic
to convert it to the new notification_type_filter and
notification_state_filter logic.

fixed missing file permission check on writing config files too.

fixes #4060
2013-06-26 13:22:15 +02:00
Gunnar Beutner 277fe0d6ab Make the "custom" attribute a dictionary. 2013-06-26 10:19:00 +02:00
Gunnar Beutner 0b8d011601 Fix syntax error. 2013-06-26 10:19:00 +02:00
Gunnar Beutner 463f4e4cf9 Implement notification_*_filter variables for Host/Service objects. 2013-06-26 10:19:00 +02:00
Michael Friedrich 6e3afe7748 configconvert: notification* attributes for services and users
refs #2743
2013-06-26 09:23:01 +02:00
Michael Friedrich 6e186ac814 configconvert: remove trailing whitespaces 2013-06-26 09:23:01 +02:00
Michael Friedrich bb2cbd044e configconvert: rename unique notification object identifier
refs #2743
2013-06-26 09:23:01 +02:00
Michael Friedrich dae5ac8939 configconvert: serviceescalations with servicegroup_name
requires a new functionality to grab all service names by a given
servicegroup name. this only works after reprocessing all services with
their updated "servicegroups" attribute as array in the 2.x objects
hive.

after fetching the service names and their logical objects, it's quite
the same procedure as for the hostgroups and single
host_names/service_descriptions - for better reading, code remains
duplicated for now.

furthermore, escalation notification template objects are only added
based on the old contact->notification_command, and only a reference
template added when using within the service linking.

refs #4009
2013-06-26 09:23:01 +02:00
Michael Friedrich 8eccb97642 configconvert: only export servicegroups when available
refs #2743
2013-06-26 09:23:01 +02:00
Michael Friedrich 97dd38051e configconvert: convert service escalation to notification escalation logic
- fixed bug with contactgroups in plain notifications
- fix bug with duplicated notifications (duplicate detection logic based
  on names, not template names)
- contacts may use templates too, and hide required values there
  (commands)
- added attribute getters which take templates into account (required
  for service -> notification_interval multiplied with service escalation
  first|last_notification too)
- apply the service escalation -> users -> commands as well as linking
  new notification with users, and services, defined either with
  * host_name/service_description
  * hostgroup_name/service_description
  * servicegroup_name (TODO)
- code duplication due to many nested loops with group wildcards

in short - we know why icinga 1.x takes ages to apply escalation.
because they look like added under pressure, and make no logical sense
compared to the rest. in short - they suck.

refs #4009
2013-06-26 09:23:01 +02:00
Gunnar Beutner d2b31f6a06 Implement notification conditions.
Fixes #2841
2013-06-26 09:08:50 +02:00
Gunnar Beutner 46b3f033cf Make sure flapping counters aren't negative. 2013-06-26 09:03:44 +02:00
Gunnar Beutner 8302062ead Config: Implement << and >> operators. 2013-06-26 08:21:35 +02:00
Gunnar Beutner 49faf14b70 Don't allow asterisks in identifiers. 2013-06-25 10:27:16 +02:00
Gunnar Beutner f3d0738e93 Implement script variables. 2013-06-25 09:21:42 +02:00
Michael Friedrich a5355e63a3 configconvert: treat address* and other attributes directly as macros
also for user attributes.

fixes #4333
2013-06-24 17:03:34 +02:00
Michael Friedrich 966be8fc35 configconvert: update README
refs #2743
2013-06-24 16:19:58 +02:00
Michael Friedrich 8039aa1a08 configconvert: move to tools/
fixes #4337
2013-06-24 16:14:20 +02:00
Michael Friedrich c9fb309200 tools: move mkembedconfig into subdir
preparation for moving the conversion script into tools/

refs #4337
2013-06-24 16:05:18 +02:00
Michael Friedrich 5049762ebe configconvert: disable debug logging by default 2013-06-24 15:19:40 +02:00
Michael Friedrich 96df47ed01 configconvert: run_icinga2 config test helper 2013-06-24 15:19:40 +02:00
Michael Friedrich b772c52509 configconvert: enable debug consolelogger for config test 2013-06-24 15:19:40 +02:00