Marc DeTrano
708edfdebc
Updates: clean code for whitespace/standards...
...
...issues as reported by Travis. Add requirement for parent and child host
fields when setting up a Dependency Object (these fields are not necessarily
needed for Templates or Apply Rules). Renamed new table field to
'parent_service_by_name'... which is a bit more descriptive or what that
field is intended for.
2017-09-28 11:01:27 +02:00
Marc DeTrano
6bea1eff41
Implement Icinga Dependency Configuration.
2017-09-28 11:01:27 +02:00
Thomas Gelf
9adc0e9087
IcingaHostForm: show inherited groups, link them...
...
...and strike them through in case you're overriding them
2017-09-13 19:03:52 +02:00
Thomas Gelf
b9d06f3015
IcingaHostForm: show (and link) applied groups
2017-09-13 16:40:04 +02:00
Thomas Gelf
d83cf594cc
IcingaServiceForm: provide Choices also for...
...
...services on Hosts, form field has been forgotten.
fixes #1171
2017-09-12 10:00:47 +02:00
Thomas Gelf
804008673a
IcingaCloneObjectForm: clone sets with services...
...
...and fix redirection
fixes #852
2017-09-11 16:02:39 +02:00
Thomas Gelf
e76665741e
ImportSourceSql: cache query column list
...
fixes #1071
2017-09-11 15:30:00 +02:00
Thomas Gelf
54e17237e3
CommandArgument: always show and handle skip_key
...
This also allows to wipe the argument_name on modification
fixes #682
2017-09-04 10:01:11 +02:00
Thomas Gelf
3418a535ae
CommandArguments: redirection after submission...
...
...and add 'back' link
2017-09-03 09:23:52 +02:00
Thomas Gelf
d010d7d33a
IcingaServiceSetForm: remove useless method
2017-08-28 06:51:58 +02:00
Thomas Gelf
da2968a6d3
ServiceForm: add more helpful links to services...
...
...on hosts
2017-08-26 14:13:13 +02:00
Thomas Gelf
833d9eb972
KickstartForm: shorten url comment lines
2017-08-25 22:44:30 +02:00
Thomas Gelf
75fb983622
Forms: transform addHtmlHint into ipl-aware code
2017-08-25 18:12:39 +02:00
Thomas Gelf
5296f33bcc
KickstartForm: add hint for those re-running...
...
...Kickstart
fixes #1116
2017-08-25 14:41:28 +02:00
Thomas Gelf
c7d7657489
IcingaAddServiceForm: fix method signature...
...
...to fit parent method
fixes #1112
2017-08-25 11:48:53 +02:00
Thomas Gelf
9d369b5f16
IcingaHostForm: re-add zone element, got lost
...
fixes #1110
2017-08-25 11:04:26 +02:00
Thomas Gelf
e05c3a8556
IcingaHostForm: fix bug with no available tpl...
...
...and improve element ordering
fixes #1108
2017-08-24 22:42:01 +02:00
Thomas Gelf
ff3c7c93bb
HostForm: simple import selection for new hosts...
...
...cleanup, remove obsolete code
2017-08-24 13:04:54 +02:00
Thomas Gelf
f4cd0d7b3c
DeploymentLinkForm: fix typo
2017-08-22 10:11:00 +02:00
Thomas Gelf
2109d138d5
IcingaTimeperiodRangeForm: delete through the...
...
IcingaTimePeriod and it's Ranges
fixes #1089
2017-08-21 22:41:37 +02:00
Thomas Gelf
c15a6e1a90
IcingaAddServiceForm: refactor, rename and use...
...
...it for single and for multiple hosts
refs #1087
2017-08-21 19:55:24 +02:00
Thomas Gelf
4c7b940705
PriorityColumn: add new object extension, use...
...
...it for SyncProperty
2017-08-20 15:04:06 +02:00
Thomas Gelf
bd157b865b
ObjectController: allow to clone external objects
...
fixes #854
2017-08-18 16:13:09 +02:00
Thomas Gelf
e6279d87e3
IcingaCloneObjectForm: allow to clone single...
...
...sets and services with their host. Also, only allow admins to clone fully
resolved
fixes #629
2017-08-18 16:11:57 +02:00
Thomas Gelf
5ee215df27
IcingaCloneObjectForm: reset api key when cloning
2017-08-18 13:40:46 +02:00
Thomas Gelf
7a4d04b92f
IcingaTimePeriodRangeForm: simplify usage
2017-08-16 15:24:13 +02:00
Thomas Gelf
5edce76fed
ApplyMigrations: rebase form on DirectorForm
2017-08-16 14:59:21 +02:00
Thomas Gelf
a870ab1f1d
DataController: refactor, also simplify...
...
...DirectorDatalistEntryForm usage
2017-08-16 14:39:37 +02:00
Thomas Gelf
f7fc7a3de9
ImportRun/CheckForm: base on DirectorForm, cleanup
2017-08-16 10:29:42 +02:00
Thomas Gelf
7c47b5a8d1
SettingsForm: do not expect enum to contain...
...
...the default value
fixes #1054
2017-08-02 15:54:03 +02:00
Thomas Gelf
b2736e1776
ObjectForms: fix weird issues with 'add' forms
2017-07-28 18:46:11 +02:00
Thomas Gelf
098cd0a57a
Sync: completely refactor table, form, controller
2017-07-25 17:53:59 +02:00
Thomas Gelf
f44afef214
ActivityLog: refactor code, fix HTML, use ipl
2017-07-25 14:04:08 +02:00
Thomas Gelf
fadbde5e9b
HostForm: take over logic from base form, clean up
2017-07-25 10:18:07 +02:00
Thomas Gelf
b675d37b6f
CloneObject: use modern loading
2017-07-25 10:16:15 +02:00
Thomas Gelf
ad791918bc
IcingaHostSelfServiceForm: fail early if template
...
...is not for Agents
2017-07-21 15:46:33 +02:00
Thomas Gelf
408e3753ab
AgentWizard: add new functionality
2017-07-20 16:58:48 +02:00
Thomas Gelf
1ba276cf15
DeploymentLinkForm: introduce new form
2017-07-20 09:24:42 +02:00
Thomas Gelf
8c8c78b7c0
DeployConfigForm: inherit from DirectorForm
2017-07-19 19:08:57 +02:00
Thomas Gelf
70034b5afe
ApiKey: add new related forms
2017-07-19 18:22:49 +02:00
Thomas Gelf
95769c3ee2
Modifier: add a description field
...
fixes #465
2017-07-14 14:45:25 +02:00
Thomas Gelf
2cdba2aa65
Import and Sync: add description fields
...
fixes #1018
2017-07-14 14:27:05 +02:00
Thomas Gelf
05d8e5bb00
Datalist: Allow to restrict entries by role
...
fixes #1012
2017-07-14 13:21:42 +02:00
Thomas Gelf
48e649439b
SelfServiceSettings: comment for future settings
2017-07-14 13:21:42 +02:00
Thomas Gelf
bf2b90fd6c
Settings: fix global zone defaults and settings
2017-07-14 13:21:42 +02:00
Thomas Gelf
fe249a18be
Settings: use ipl, clean up, fix array handling
2017-07-14 13:21:42 +02:00
Thomas Gelf
3574cec487
SelfService: allow to specify global zones
...
fixes #997
2017-07-14 13:21:42 +02:00
Thomas Gelf
2ca7f26b49
SelfService: fix booleans, add new options
...
refs #486
2017-07-14 13:21:42 +02:00
Max Stephan
9f1148ee9d
IcingaCommandArgument: $hostname$ -> $host.name$
...
https://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/monitoring-basics#host-runtime-macros
(3.4.2. Host Runtime Macros)
$hostname$ doesn't work
2017-07-14 13:21:42 +02:00
Thomas Gelf
f10b85ac9e
Kickstart: remove legacy code, clean up
2017-07-14 13:21:42 +02:00
Thomas Gelf
3173b885e8
Data and more: code cleanup, little fixes
2017-07-14 13:21:42 +02:00
Thomas Gelf
0c7e3eee41
Data: controller, table, form - ipl adjustments
2017-07-14 13:21:42 +02:00
Thomas Gelf
373d01ad64
DirectorDataFieldForm: make sure object exists...
...
...even when an exception occurs
2017-07-14 13:21:42 +02:00
Thomas Gelf
180fc2ccfa
Datafield: on rename ask whether to also rename vars
...
fixes #818
2017-07-14 13:21:42 +02:00
Thomas Gelf
251b97c023
SelfServiceSettingsForm: fix setting name
2017-07-14 13:21:42 +02:00
Thomas Gelf
91e9cec1e0
SelfService: various changes
...
* Allow to enable NSClient++
* Allow to fetch global settings with the template key
* Restructure some methods
2017-07-14 13:21:42 +02:00
Thomas Gelf
7a1dbd5334
HostController: fix agent tab activation
2017-07-14 13:21:42 +02:00
Thomas Gelf
5931c4ee5e
SelfService: ship installer hashes
...
refs #486
2017-07-14 13:21:42 +02:00
Thomas Gelf
062bc717fc
Settings: fix form handling and typo
...
refs #486
2017-07-14 13:21:42 +02:00
Thomas Gelf
4fe2b0e541
SelfService: controller, form, admin dashlet
...
refs #486
2017-07-14 13:21:42 +02:00
Thomas Gelf
6b10cdc3f7
IcingaHostForm: allow to set api_key for templates
...
refs #486
2017-07-14 13:21:42 +02:00
Thomas Gelf
086e081268
SelfServiceSettings: settings for the new Self...
...
...Service API feature
refs #486
2017-07-14 13:21:42 +02:00
Thomas Gelf
9e044c558e
IcingaServiceForm: allow to use choices
2017-07-14 13:21:42 +02:00
Thomas Gelf
ceebe08ecd
TemplateChoice: work without form loader
2017-07-14 13:21:42 +02:00
Thomas Gelf
0ec5ec8197
TemplateChoice: delegate storing members to...
...
...the object, use a single form
2017-07-14 13:21:42 +02:00
Thomas Gelf
319f14f94b
IcingaTemplateChoiceServiceForm: add missing form
2017-07-14 13:21:42 +02:00
Thomas Gelf
2f79920a18
TemplateChoice: small fixes, forms
2017-07-14 13:21:42 +02:00
Thomas Gelf
65ddbb02ab
IcingaHostForm: use choices and suggestions
2017-07-14 13:21:42 +02:00
Thomas Gelf
9208c3b53c
IcingaHostTemplateChoiceForm: new form
2017-07-14 13:21:42 +02:00
Thomas Gelf
02a3652c86
Restrictriction: add simple hostgroup restrictions
...
refs #832
2017-07-14 13:21:42 +02:00
Thomas Gelf
788676b298
IcingaAddServiceToMultipleHostsForm: select...
...
...multiple hosts and add a service
fixes #894
2017-07-14 13:21:42 +02:00
Thomas Gelf
34a0179103
IcingaMultiEditForm: fix multi-object delete
...
fixes #677
2017-05-03 12:03:10 +02:00
Thomas Gelf
f91dd5fa0e
PropertyModifierCombine: implementation, tests...
...
...and related changes with some documentation
fixes #922
2017-05-03 10:39:49 +02:00
Thomas Gelf
ddcaaa7bcf
SyncPropertyForm: re-add related fields
...
e6e51dc
broke this, related fields like 'host' or 'zone' have no longer been
offered. This did not affect existing Sync Rule configurations
fixes #903
2017-04-21 15:03:43 +02:00
Tobias von der Krone
8142229fae
Differentiate notification object and template
...
Show a different label and description when configuring a notification
object or a template.
2017-03-14 22:57:00 +01:00
Tobias von der Krone
9a9886d263
Allow configuring the zone for notification templates
...
refs #594
2017-03-14 22:57:00 +01:00
Lee Clemens
f7d1444fd9
Permit external HostGroups
...
refs #384
fixes #748
2017-03-13 22:45:12 +01:00
Thomas Gelf
489d4ab1a3
KickstartForm: let parent handle exceptions
2017-03-13 22:05:05 +01:00
Thomas Gelf
a36ed2c23d
KickstartForm: prepare for utf8mb4
2017-03-13 21:59:51 +01:00
Thomas Gelf
e6e51dc2be
SyncPropertyForm: fix error on list sync
...
fixes #836
2017-03-08 17:04:50 +01:00
Thomas Gelf
b248e8dcae
IcingaHostGroupForm: assignment is not required
...
fixes #814
2017-02-27 19:35:12 +01:00
Thomas Gelf
0de1987389
IcingaMultiEditForm: prepare elements before...
...
...adding fields
fixes #707
2017-02-17 16:41:41 +01:00
Thomas Gelf
82e79c810f
IcingaServiceSetForm: redirect to host services...
...
...when adding a set to a single host
fixes #804
2017-02-17 16:35:13 +01:00
Thomas Gelf
099eca0d0b
IcingaCommandForm: allow to configure zones
...
fixes #802
2017-02-17 16:08:57 +01:00
Thomas Gelf
4860082d4b
host/services: show applied service sets
...
fixes #735
2017-02-17 08:44:08 +01:00
Thomas Gelf
1a6fbd5cd7
IcingaObjectFieldForm: gracefully handle missing...
...
...field, as it might have been removed before
refs #751
2017-01-26 09:03:51 +01:00
Thomas Gelf
d323a77695
IcingaUserGroupForm: remove zone elements
...
Has been introduced with 984740, but never worked for groups as those tables
do not even have a zone_id property.
fixes #680
refs #227
2017-01-24 18:29:40 +01:00
Thomas Gelf
5af80479a5
ServiceForm: support all new kinds of overrides
2017-01-18 15:17:17 +01:00
Thomas Gelf
e4dbdbe808
Kickstart: unify strings
2017-01-16 17:30:22 +01:00
Thomas Gelf
b7a10d296c
phpcs: mostly new PSR-2 SpacingAfter/Before checks
2017-01-13 20:54:52 +01:00
Thomas Gelf
9e771f2d5a
Fix phpcs complaints
2017-01-13 19:47:54 +01:00
Thomas Gelf
457fee77a4
IcingaServiceForm: support services from sets...
...
...on hosts for variable overrides
2017-01-13 16:14:28 +01:00
Thomas Gelf
f845c2c2f5
IcingaServiceSetForm: remove the possibility...
...
...to override fields for all services at once. We need to figure out whether
this feature should really be allowed. It's not that important any more, since
we now allow to modify services once added to the set. Also, fields can now be
overridden at host level.
2017-01-13 15:53:16 +01:00
Thomas Gelf
4a75804d86
various: change icinga.org to icinga.com
...
fixes #14001
2017-01-13 13:33:58 +01:00
Thomas Gelf
7a3a845570
Forms: try to give dev UI more hints on fluent...
...
...code
2017-01-13 13:15:01 +01:00
Thomas Gelf
587c302a84
ImportRowModifierForm: allow to modify newly...
...
...created columns deriving from other property modifiers
fixes #13979
2017-01-12 17:26:06 +01:00
Thomas Gelf
8a8c0882df
SyncPropertyForm: provide property modifier...
...
...target columns in the drop-down
fixes #13977
2017-01-12 16:56:43 +01:00
Thomas Gelf
0e8674c872
IcingaHostForm: allow access to Zone and Agent...
...
...properties on every host
fixes #13965
2017-01-12 13:44:43 +01:00
Thomas Gelf
886ba0e168
IcingaService (on host): add applied services...
...
...and improve ServiceSet handling
fixes #13849
2017-01-02 10:51:54 +01:00
Thomas Gelf
7a2665646f
IcingaServiceForm: restructure to allow more...
...
...variants with less code
refs #13849
2017-01-02 10:16:55 +01:00
Thomas Gelf
726b320d24
IcingaServiceSetForm: improve readability
2016-12-16 13:33:54 +01:00
Thomas Gelf
7e7e2601d3
ObjectFields: prefix filters, respect inheritance
...
refs #13253
2016-12-14 17:33:13 +01:00
Thomas Gelf
3e92746112
IcingaObjectFieldForm: configure conditional fields
2016-12-14 16:36:33 +01:00
Thomas Gelf
4c1ab4dae6
php: just some comments and cleanup
2016-12-13 18:25:14 +01:00
Thomas Gelf
f1a61e2557
ServiceGroup: allow to assign them to services...
...
...via assignment rules
fixes #13415
2016-12-13 09:51:52 +01:00
Thomas Gelf
2725ef54e6
IcingaCommandForm: allow to import any command
...
fixes #12978
2016-11-15 18:23:39 +01:00
Markus Frosch
699b6a7293
SyncPropertyForm: Only try to enum imports when we are able to
...
This allows a user to use fields or custom expression for serviceSet.
refs #12891
2016-11-11 10:44:22 +01:00
Thomas Gelf
7add16751b
IcingaServiceSetForm: provide a list url
...
fixes #13085
2016-11-08 22:11:53 +01:00
Markus Frosch
37f3d1a3e8
SettingsForm(Legacy): Add activation script setting
...
refs #13049
2016-11-04 16:36:54 +01:00
Markus Frosch
1786d08321
CoreApi: Use DeploymentApiInterface
...
refs #13049
2016-11-04 14:13:07 +01:00
Markus Frosch
79541be050
SettingsForm(Legacy): Add configuration for a deployment path
...
refs #13049
2016-11-04 14:10:50 +01:00
Thomas Gelf
f67b71a353
SettingsForm: more comfort for v1 users
2016-11-04 10:34:40 +01:00
Markus Frosch
003a100b9c
IcingaConfig(Legacy): Add deployment mode for Icinga 1 config
...
refs #13049
2016-11-04 10:28:11 +01:00
Thomas Gelf
f2b178ecec
SettingsForm: show stored values
...
fixes #13042
2016-11-03 22:04:06 +01:00
Thomas Gelf
1afe452d29
SettingsForm: log level reminder
...
fixes #13042
2016-11-03 20:42:56 +01:00
Thomas Gelf
8b2f43e4ff
SettingsForm: hiding v1-masterless for now
2016-11-03 14:22:08 +01:00
Markus Frosch
802b923df6
IcingaConfig: Add v1-masterless config format
...
Do not render a passive checkable to the master zone then.
refs #12919
2016-11-03 13:41:44 +01:00
Thomas Gelf
468a2719a7
DirectorActivityLog: optionally log to file/syslog
...
fixes #12976
2016-11-02 18:40:43 +01:00
Thomas Gelf
984740db9a
IcingaUer(Group)Form: allow to specify a zone
...
fixes #11754
2016-11-02 18:04:35 +01:00
Lee Clemens
f38ded6223
IcingaUserForm: fix object_name description
...
fixes #13023
2016-11-02 14:34:20 +01:00
Thomas Gelf
ee0def7d2b
Lots of files: make IDE users happy
2016-11-01 18:28:36 +01:00
Tobias von der Krone
48c4ee7c23
CommandForm: Make imports optional on commands
...
Specifying an import should be optional for Commands. You have to
specify the execution method, e.g. "Plugin Check Command", anyway so
that the correct base template will be imported by icinga director
automatically.
fixes #12979
2016-10-31 08:38:06 +00:00
Thomas Gelf
55e0ebd02d
kickstart: add new route /kickstart allowing one...
...
...to re-run the kickstart wizard
fixes #13014
2016-10-31 08:34:26 +00:00
Thomas Gelf
f41d453448
DeployConfigForm: provide link-like form for...
...
...deployments
fixes #11854
2016-10-30 10:52:14 +00:00
Thomas Gelf
a4ef711ef0
SyncProperty: simplify code and form
...
fixes #12700
2016-10-29 21:25:42 +00:00
Thomas Gelf
66e5158ccc
Dashboard: replace it with a modular one
...
fixes #12997
2016-10-27 17:58:31 +00:00
Thomas Gelf
d59604bd93
ServiceSet: rework sets, allow for vars and...
...
...all other service properties when adding services to a set
2016-10-25 23:12:23 +00:00
Thomas Gelf
5de24c6ec4
IcingaServiceSetForm: restructure the form
2016-10-25 23:12:23 +00:00
Thomas Gelf
dedaea0319
IcingaServiceSetForm: prepare custom fields
2016-10-25 23:12:23 +00:00
Thomas Gelf
bed122d906
IcingaServiceSetForm: complete description
2016-10-25 23:12:23 +00:00
Thomas Gelf
696e63b4ec
Servicesset: add controller, form and table
2016-10-25 23:12:23 +00:00
Thomas Gelf
0d86c24cd8
Huge change, getting rid of legacy assignment...
...
...code. All objects should work with the new code base right now
2016-10-24 03:41:37 +00:00
Thomas Gelf
aeafec37d7
FormDataFilter: simplify HTML, Code and style
2016-10-23 04:23:38 +00:00
Thomas Gelf
3fbf3e9115
IcingaServiceForm: use new assign_filter property
2016-10-22 07:02:09 +00:00
Thomas Gelf
9349ba0f2a
FormDataFilter: new implementation for assignments
...
First prototype
2016-10-22 07:02:09 +00:00
Thomas Gelf
1f660b514a
IcingaServiceForm: allow empty name for apply rule
2016-10-22 06:09:10 +00:00
Thomas Gelf
7c31b37f27
IcingaServiceForm: remove duplicate code
...
Elements in this list are optional and may be used in various forms,
so keeping this in the base class is preferrable here
2016-10-22 06:09:00 +00:00
Thomas Gelf
5b4e7509f4
Just a couple of phpcs complaints fixed
2016-10-22 06:08:52 +00:00
Thomas Gelf
0791b900f3
QuickBaseForm: allow translation tools find 'None'
2016-10-22 06:08:44 +00:00
Corentin Ardeois
3e30d34098
Use `config` variable in apply for rules
...
* use `config` instead of `value` in apply for rules
* update documentation
refs #11976
2016-10-22 06:07:57 +00:00
Corentin Ardeois
e7bd4343b5
Add support for Apply for rules in services
...
Apply for rules are defined through `apply_for` property
Only Array custom variables will be eligible in apply_for dropdown.
API Example:
```bash
./director-curl POST director/service?name=my_service '{"apply_for": "for (checked_tcp_port in host.vars.checked_tcp_ports)" }'
```
Will render as:
```
apply Service "my_service" for (checked_tcp_port in host.vars.checked_tcp_ports) {
...
}
```
Feature: https://dev.icinga.org/issues/11976
Depends-On: https://github.com/Icinga/icingaweb2-module-director/pull/20
refs #11976
2016-10-22 06:00:54 +00:00
Thomas Gelf
9414068eee
IcingaMultiEditForm: remove superfluous dot
2016-10-20 02:13:19 +00:00
Thomas Gelf
32790dbedc
IcingaServiceForm: move hint to custom vars group
2016-10-20 01:35:36 +00:00
Thomas Gelf
927d59a3b3
Datafield: provide better explainations
2016-10-17 17:48:04 +00:00
Thomas Gelf
baf0d40ea6
IcingaCommandArgumentForm: fix typo
2016-10-17 09:33:07 +00:00
Thomas Gelf
a8c37695a9
IcingaMultiEditForm: translate '' to null
2016-10-14 20:13:35 +00:00
Thomas Gelf
23ef9a707c
MultiEdit: make it independent of an object type
2016-10-14 18:32:34 +00:00
Thomas Gelf
6a54e00402
MultiEdit: code cleanup, add custom var support
...
fixes #12465
fixes #12906
fixes #11614
2016-10-14 17:17:07 +00:00
Thomas Gelf
69237b8ae9
MultiEditForm: first shot, provides imports
...
refs #12465
2016-10-14 13:46:06 +00:00
Thomas Gelf
6f46e6b496
YesNo: new boolean-like form fields
...
fixes #12927
2016-10-14 13:39:43 +00:00