Michael Friedrich
c5f1c52da0
Migration: Revert dumping custom vars as macros.
...
Refs #5364
2013-12-18 11:01:59 +01:00
Gunnar Beutner
21fb0d9872
Implement "safe mode" for icinga::Deserialize.
...
Fixes #5035
2013-12-18 10:27:58 +01:00
Gunnar Beutner
d790162ce3
Fix compiler warnings in auto-generated mkclass code.
...
Refs #5349
2013-12-17 07:52:19 +01:00
Gunnar Beutner
e7184225f3
Improve performance for icinga::Deserialize.
...
Refs #5327
2013-12-13 14:08:11 +01:00
Gunnar Beutner
947b6f3207
Make icinga2-{enable,disable}-feature list currently enabled features.
...
Fixes #5319
2013-12-12 15:46:17 +01:00
Michael Friedrich
8a5fd83cd3
Update version to 0.0.5.
...
Refs #5254
2013-12-03 09:50:18 +01:00
Michael Friedrich
b67cf1f0cb
Fix command name with special chars not being migrated.
...
Fixes #5234
2013-11-27 15:03:55 +01:00
Michael Friedrich
c25a7d580b
Migration: Fix timeperiod object name stripping.
...
Fixes #5230
2013-11-27 13:25:00 +01:00
Gunnar Beutner
2cefcb5bfa
Update minimum flex version.
...
Fixes #5072
2013-11-21 11:22:51 +01:00
Michael Friedrich
df42a701d1
Migration: Add -O for objects.cache fallback.
...
Fixes #5104
2013-11-19 18:08:12 +01:00
Michael Friedrich
f30b164692
Migration: Fix duplicate command creation.
...
Refs #5099
2013-11-19 14:04:03 +01:00
Michael Friedrich
2514064007
Fix parsing of global macros if not defined.
...
Refs #5099
2013-11-19 14:04:03 +01:00
Michael Friedrich
bc4c4098f0
Update migration script README.
2013-11-13 22:09:27 +01:00
Gunnar Beutner
d1d3c0e247
Improve VS visualizers.
...
Refs #5067
2013-11-13 08:42:18 +01:00
Gunnar Beutner
b324f59a06
Implement debug visualizers for Visual Studio.
...
Fixes #5067
2013-11-13 00:32:30 +01:00
Gunnar Beutner
135c2b2309
Fix compiler warnings in auto-generated code.
...
Refs #5036
2013-11-08 21:45:27 +01:00
Gunnar Beutner
ba6f64a0ec
Remove GetType().
...
Refs #5036
2013-11-08 21:37:21 +01:00
Gunnar Beutner
a84536bea3
Implement serializer support for arbitrary classes.
...
Fixes #5024
2013-11-08 14:08:59 +01:00
Michael Friedrich
2d73b6259c
Remove autotools leftovers.
...
Refs #4962
2013-11-08 13:16:51 +01:00
Gunnar Beutner
e93d3f4c61
Update gdbinit path.
...
Refs #2710
2013-11-07 16:07:52 +01:00
Gunnar Beutner
e25fe1ecc9
Optimize ObjectImpl<>::GetDefault*().
...
Refs #2710
2013-11-07 16:07:52 +01:00
Gunnar Beutner
b5b56e5438
Implement Type::GetBaseType().
...
Refs #4996
2013-11-05 08:56:35 +01:00
Gunnar Beutner
b1ddc71925
Merge ReflectionObject methods into the Object class.
...
Refs #4996
2013-11-05 08:56:30 +01:00
Gunnar Beutner
84b873fb4e
Implement abstract keyword for mkclass.
...
Refs #4996
2013-11-05 08:56:25 +01:00
Gunnar Beutner
2140cef041
Implement the ReflectionType class.
...
Refs #4996
2013-11-05 08:56:18 +01:00
Gunnar Beutner
5f0ebed72b
Improve compatibility with ancient versions of Bison.
...
Refs #4962
2013-11-03 13:45:26 +01:00
Gunnar Beutner
f2307c4242
Add cmake build files.
...
Refs #4962
2013-11-03 13:45:26 +01:00
Gunnar Beutner
2c143fbdf8
Remove unused files.
...
Refs #4962
2013-11-03 11:12:47 +01:00
Gunnar Beutner
3308eb1d87
Add missing newlines.
...
Refs #4990
2013-11-03 10:59:01 +01:00
Gunnar Beutner
db4b3b78d6
Implement class compiler.
...
Refs #4963
2013-10-28 14:27:36 +01:00
Michael Friedrich
e03ffd780a
Update documentation.
2013-10-21 21:03:35 +02:00
Michael Friedrich
0c37d63af5
Rename i2enfeature/i2disfeature to icinga2-{enable,disable}-feature.
...
fixes #4904
2013-10-18 22:11:40 +02:00
Michael Friedrich
c3bcc2a474
Migration: Print error message on non-existing icinga.cfg.
2013-10-18 11:26:17 +02:00
Michael Friedrich
2164ff22b9
Documentation: Update commands and external commands.
2013-10-17 18:13:33 +02:00
Michael Friedrich
b4ae8239f2
Rename features: statusdat -> statusdata, compat-log -> compatlog .
2013-10-17 13:57:53 +02:00
Gunnar Beutner
919af6c539
Update path.
2013-10-17 09:10:54 +02:00
Gunnar Beutner
b695f08081
Remove obsolete file.
2013-10-14 09:03:55 +02:00
Gunnar Beutner
42a746e0d5
Vagrant: Fix file permissions.
2013-10-11 19:50:40 +02:00
Gunnar Beutner
4f5a9d53e1
Vagrant: Remove --nogpgcheck parameter.
2013-10-11 11:59:17 +02:00
Gunnar Beutner
fe8c0c8c37
Vagrant: Install icinga2-doc.
2013-10-11 11:21:20 +02:00
Gunnar Beutner
473d50f6ab
Add URL to Vagrant bootstrap script.
2013-10-11 10:33:49 +02:00
Gunnar Beutner
1ad59806dd
Update document root for the Vagrant VM.
2013-10-11 10:23:32 +02:00
Gunnar Beutner
834f9cd110
Make sure the icinga-migrate-config script is in the dist tarball.
2013-10-11 06:39:07 +02:00
Gunnar Beutner
c80dac1c25
Install migration script in bindir.
2013-10-11 06:31:21 +02:00
Michael Friedrich
99874a9eee
Refactor config migration script, install as /usr/sbin/icinga2-migrate-config
...
fixes #4696
2013-10-10 20:49:26 +02:00
Gunnar Beutner
c0c7f485ad
Use icinga2-classicui-config package for Vagrant.
2013-10-10 19:59:51 +02:00
Gunnar Beutner
50ee6d9a1e
Some more Vagrant fixes.
2013-10-10 19:15:22 +02:00
Gunnar Beutner
744a07ff48
Fix Vagrant bootstrap script.
2013-10-10 17:54:25 +02:00
Gunnar Beutner
ebc92a0ba6
Implement Vagrant support.
2013-10-10 14:57:17 +02:00
Michael Friedrich
a4111d2964
Conversion: Update readme and test config.
2013-10-09 18:55:15 +02:00
Michael Friedrich
4c6f4261ee
Conversion: Fix notification attributes.
2013-10-09 18:54:09 +02:00
Gunnar Beutner
fe5c925a63
Windows build fix.
2013-10-09 15:03:24 +02:00
Michael Friedrich
d2d6653236
Clean contrib/.
...
fixes #4774
2013-10-03 20:36:44 +02:00
Gunnar Beutner
3a740f2e3b
Another DESTDIR fix.
2013-10-02 14:27:17 +02:00
Gunnar Beutner
4eb8688271
Fix feature list output in i2enfeature.
2013-10-01 08:39:42 +02:00
Michael Friedrich
c8b7f3335a
Add tools/.gitignore.
2013-09-27 14:14:50 +02:00
Gunnar Beutner
3726470efb
Update documentation.
2013-09-27 13:56:24 +02:00
Gunnar Beutner
71e416a23b
Fix configuration path in the i2endfeature script.
2013-09-27 11:22:18 +02:00
Gunnar Beutner
09f0986cdb
Install i2enfeature/i2disfeature in $(sbindir).
2013-09-27 11:21:14 +02:00
Gunnar Beutner
2d3e639fac
Refactor mods-enabled/mods-available.
2013-09-27 11:16:35 +02:00
Gunnar Beutner
6970c28292
Add missing file.
2013-09-27 10:47:46 +02:00
Gunnar Beutner
74708766d1
Implement mods-available/mods-enabled.
...
Refs #4573
2013-09-27 10:45:38 +02:00
Michael Friedrich
739f23f0fc
config conversion: Rename dependencies.
...
refs #4741
2013-09-25 16:13:39 +02:00
Michael Friedrich
d9508bb64c
config conversion: Fix command exists checks by type.
...
refs #4741
2013-09-25 16:04:40 +02:00
Michael Friedrich
61e3fcf0a7
config conversion: Move notification_interval|period from service to notification.
...
refs #4741
2013-09-25 16:04:40 +02:00
Michael Friedrich
4c14619521
config conversion: Move notification filters from service into notification.
...
refs #4741
2013-09-25 16:04:40 +02:00
Michael Friedrich
cc6a9e6b36
config conversion: Rename hostcheck to check.
...
refs #4741
2013-09-25 16:04:40 +02:00
Michael Friedrich
e236894de9
config conversion: Rename group attributes.
...
refs #4741
2013-09-25 16:04:40 +02:00
Michael Friedrich
00532f6da7
config conversion: Fix object names in test config.
2013-09-25 16:04:40 +02:00
Michael Friedrich
1342dec909
config conversion: Remove enable_{active,passive}_checks export.
2013-09-25 16:04:40 +02:00
Gunnar Beutner
bf1a800e39
Update copyright information.
2013-09-25 07:45:56 +02:00
Michael Friedrich
ad3a8f19ed
Config Conversion: Update --help.
...
fixes #4715
2013-09-18 16:22:28 +02:00
Michael Friedrich
96e18e625f
Config Conversion: Refactor hostcheck service as new object, add stats.
...
now the service template objects get the custom tmpl too.
refs #4715
2013-09-18 16:18:16 +02:00
Michael Friedrich
6a3c1ec7aa
Config Conversion: Allow to define external global templates referenced by all objects.
...
tests:
$ ./icinga2_convert_v1_v2.pl -c /etc/icinga/icinga.cfg -o conf/
--hosttmpl="hostbumstitmpl"
--servicetmpl="servicebumstitmpl"
--usertmpl="userbumstitmpl"
--timeperiodtmpl="timeperiodbumstitmpl"
--notificationtmpl="notificationbumstitmpl"
--checkcommandtmpl="checkcommandbumstitmpl"
--eventcommandtmpl="eventcommandbumstitmpl"
--notificationcommandtmpl="notificationcommandbumstitmpl"
refs #4697
2013-09-18 11:42:16 +02:00
Michael Friedrich
1538579c66
Config Conversion: Detect hosts w/o services and properly add hostcheck.
...
it's ugly but it works. requires code refactoring.
2013-09-16 14:57:12 +02:00
Michael Friedrich
374b37077f
Config Conversion: Add proper check_command detection in templates.
2013-09-16 14:05:41 +02:00
Gunnar Beutner
d38c8ab0bb
config: Fix arguments for hostchecks.
2013-09-13 13:48:41 +02:00
Gunnar Beutner
de2a0aaea1
config: Fix attribute lookup functions.
2013-09-13 13:32:42 +02:00
Gunnar Beutner
e0d5e2bf93
config: Temporarily set hostname for services.
2013-09-13 13:05:55 +02:00
Gunnar Beutner
4fdab9e2ac
config: Fix looking up host custom attributes.
2013-09-13 12:36:49 +02:00
Gunnar Beutner
2b97884201
config: Fix resolving macros in command arguments.
2013-09-13 12:32:38 +02:00
Michael Friedrich
2d991703d6
Config Conversion: Fix global macros requiring escape_str() call.
...
fixes #4703
2013-09-13 09:56:25 +02:00
Gunnar Beutner
eb43cc3101
Fix custom macros.
2013-09-13 09:45:24 +02:00
Gunnar Beutner
6a40fe7a40
Convert custom attributes to macros.
2013-09-13 09:28:32 +02:00
Michael Friedrich
cc1dbbca0b
Config Conversion: Object macros start with name.
...
refs #4700
2013-09-12 20:24:13 +02:00
Michael Friedrich
a5fe44b81f
Config Conversion: Treat command arg macros directly as object macros
...
- if detected, they will be replaced with their real name on the command
line (instead of $ARGn$)
- if macro is resolvable, its value will be added to the macro
dictionary
- if macro is not resolvable, it will be skipped and left for the core
to resolve the macro on runtime.
caveat: getting host/service attributes requires lookups from the object
into the template tree, as well as host macros on services a search on
the host object itsself.
note: macro resolver is rudimentary implemented. there's space for more
detailed if-macro-name-is-then-return-attribute-abc. main problem are
the missing underscores in macro names, but not in attributes (what the
...?).
fixes #4700
2013-09-12 20:13:28 +02:00
Michael Friedrich
f1e1a716d3
Config Conversion: Update sample icinga2 config.
...
refs #4701
2013-09-12 18:42:01 +02:00
Michael Friedrich
f91c64098b
Config Conversion: Fix import removing inline comments after ';' and '#'.
...
fixes #4499
2013-09-12 18:41:18 +02:00
Michael Friedrich
c9497367d2
Config Conversion: Make ADMIN/USER macros global again (in resource.conf)
...
refs #4701
2013-09-12 18:41:18 +02:00
Michael Friedrich
2e4a37b297
Config Conversion: s/user_macros/global_macros/g
2013-09-12 18:41:18 +02:00
Michael Friedrich
c8b9fce0bc
Config Conversion: introduce resource.conf with global macros
...
refs #4701
2013-09-12 18:41:18 +02:00
Michael Friedrich
dc0f2e2fa9
Config Conversion: Skip ARGn macros on Command object export.
2013-09-10 14:04:18 +02:00
Michael Friedrich
4d95eaa6c5
Config Conversion: Fix output header.
2013-09-10 13:54:14 +02:00
Michael Friedrich
4668f6fb3b
Config Conversion: Check that icinga.cfg is passed via -c option.
2013-09-10 11:25:10 +02:00
Gunnar Beutner
a833fc0fc3
Revert "convert: Use += for macros and custom attributes."
...
This reverts commit ff6453cfa1
.
2013-09-10 10:54:17 +02:00
Gunnar Beutner
ff6453cfa1
convert: Use += for macros and custom attributes.
2013-09-10 10:47:38 +02:00
Michael Friedrich
de4e2c6585
Config Conversion: Treat notification option 'r' as StateFilterOK.
2013-09-10 10:28:37 +02:00
Gunnar Beutner
0a80dbc305
Fix: Host notifications should be added to the host check service instead of the host
...
Fixes #4674
2013-09-04 10:43:14 +02:00
Michael Friedrich
14c2e99e4b
Config Conversion: fix missing Command macros, avoid duplicates
2013-08-30 17:50:05 +02:00
Michael Friedrich
7f0a210ff9
Config Conversion: support $USERn$ and $ADMINx$ macros in Notification|EventCommand
2013-08-30 17:50:05 +02:00