264 Commits

Author SHA1 Message Date
Eric Lippmann
1e1b4b74ad If appropriate, set the API parameter all_services for schedule-downtime
Since Icinga 2.11.0 the schedule-downtime API supports the
all_services parameter. So far we've always sent a separate
request for scheduling service downtimes. As of Icinga 2.13.0,
these service downtimes are automatically removed when the host
downtimes are removed. Of course, this doesn't work if we don't
use the all_services parameter but send a separate request.
With this commit we set this parameter if the transport is API
and Icinga is equal to or greater than 2.11.0.

In addition, if child_options and all_services were previously set,
a request was sent per host and service. This is now also only a
single request if an API command transport is requested or only
API command transports are configured.
2021-08-09 16:55:05 +02:00
Ravi Kumar Kempapura Srinivasa
f8b122b894 Add end time and comment options to settings section for host/service downtime dialog
[hostdowntime_end_fixed], [hostdowntime_end_flexible], [hostdowntime_flexible_duration], [servicedowntime_end_fixed], [servicedwontime_end_flexible],
[servicedowntime_flexible_duration] and [comment_text] options added to [settings] section in config.ini file used in  host/service downtime dialog.
2021-06-18 13:57:58 +02:00
Johannes Meyer
4e48f9d2a1 ProcessCheckResultForm: Skip objects with passive checks disabled
Icinga won't accept check results for such.
2021-04-14 10:56:04 +02:00
Johannes Meyer
91d4669dcb
Merge pull request #4285 from Icinga/bugfix/curl-monitoring-service-show-4281
CheckNowCommandForm#init(): set submit label
2021-02-18 12:21:50 +01:00
Johannes Meyer
77ca3e0c31 DeleteDowntimeCommandForm: Show error notification if not successful
resolves #4303
2021-02-03 15:42:13 +01:00
Alexander A. Klimov
6af1e5d43b Monitoring: add expire option for comments
refs #3447
2020-11-30 17:24:57 +01:00
Alexander A. Klimov
7aacbd4db8 CheckNowCommandForm#init(): set submit label
... otherwise Form#handleRequest() bypasses Form#isSubmitted()
on API requests and considers the CheckNowCommandForm submitted.

refs #4281
2020-11-26 18:38:55 +01:00
Jorge Vallecillo
865e4b9b2a Fix typos: consecutive use of 'the' 2020-11-18 09:26:39 +01:00
Johannes Meyer
f6edad9336 Transmit the user who clears an acknowledgement 2020-05-14 13:58:19 +02:00
Johannes Meyer
08bc671fb7 Transmit the user who cancels a downtime 2020-05-14 13:58:03 +02:00
Johannes Meyer
287edb7932 Transmit the user who deletes a comment 2020-05-14 13:57:22 +02:00
Johannes Meyer
201e2f136d ScheduleServiceCheckCommandForm: Only ignore services if rescheduling is restricted 2020-01-31 16:07:56 +01:00
Johannes Meyer
6d6e235e5c ScheduleHostCheckCommandForm: Only ignore hosts if rescheduling is restricted 2020-01-31 16:07:56 +01:00
Eric Lippmann
154357aa11 DeleteDowntimesCommandForm: Allow iterable for setDowntimes()
The command form loops over the downtimes to delete. It is not necessary
to expect an array here. The Icinga DB web module passes an iterable
here.
2020-01-14 14:36:50 +01:00
Eric Lippmann
9ddd941b42 DeleteCommentsCommandForm: Allow iterable for setComments()
The command form loops over the comments to delete. It is not necessary
to expect an array here. The Icinga DB web module passes an iterable
here.
2020-01-14 14:30:50 +01:00
Johannes Meyer
b3c6af4ea6 ToggleObjectFeaturesCommandForm: Use a select instead of radio buttons
refs #3957
2019-10-08 12:39:07 +02:00
Johannes Meyer
1b8501d5b7 ToggleInstanceFeaturesCommandForm: Apply icinga form style 2019-07-29 10:17:59 +02:00
Johannes Meyer
721dab93a0 ToggleObjectFeaturesCommandForm: Apply icinga form style 2019-07-29 10:17:59 +02:00
Johannes Meyer
ac50992aab ScheduleServiceCheckCommandForm: Ignore services which have no active checks
refs #3665
2019-02-07 15:51:26 +01:00
Johannes Meyer
7bda65978c ScheduleHostCheckCommandForm: Ignore hosts which have no active checks
refs #3665
2019-02-07 15:51:26 +01:00
Johannes Meyer
c2fc370273 CheckNowCommandForm: Ignore objects which have no active checks
refs #3665
2019-02-07 15:51:26 +01:00
mapa82
9b81492e8b Monitoring: add setting acknowledge_expire_time
Signed-off-by: Alexander A. Klimov <alexander.klimov@icinga.com>
2018-01-17 12:07:03 +01:00
tfylling
46a82c2739 Monitoring: Make downtime for all services checkbox configurable
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-10-23 11:17:25 +02:00
Eric Lippmann
30788ceed0 Merge pull request #2733 from Icinga/feature/set-focus-to-comment-field-for-comments-13535
Set focus to comment field for acknowledgements, downtimes and comments
2017-03-28 10:52:50 +02:00
Alexander A. Klimov
cd8d6e41dc AcknowledgeProblemCommandForm: respect configuration when creating elements
refs #2776

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-03-28 09:21:42 +02:00
Alexander A. Klimov
9e26359c62 Set focus to comment field for acknowledgements, downtimes and comments
refs #13535
2017-02-10 11:24:28 +01:00
Johannes Meyer
181e2ef05c Swag: Fix swag (aka a whole bunch of code style issues..) 2017-01-27 14:48:59 +01:00
Eric Lippmann
7dc4d3d63e Enable propagate host downtime commands for Icinga 2 >= 2.6.0 and Icinga 1.x
fixes #10774
2016-12-12 12:41:14 +01:00
Alexander A. Klimov
7253fbcfa4 Command forms: make the defaults of some checkboxes configurable
refs #11952
2016-12-07 16:53:53 +01:00
Florian Strohmaier
0bf2bb15d5 Replace reschedule icon w/ arrows-cw for check now
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2016-11-25 15:11:48 +01:00
Eric Lippmann
9d39391102 Use 'Remove acknowledgement' instead of 'Remove problem acknowledgement'
refs #13187
2016-11-24 12:49:40 +01:00
Eric Lippmann
93474972bf Enable propagate host downtime commands for Icinga 2
This only works when using the latest Icinga 2 snapshot packages. Before releasing Web 2.4.0, we have to include a check to only offer these commands when using Icinga 2 2.6.0+

refs #10774
2016-11-08 15:27:29 +01:00
Eric Lippmann
14cb499c1b Change default for sticky option of acknowledgements from true to false
resolves #12873
2016-10-07 14:48:34 +02:00
Eric Lippmann
33506b2965 Fix send custom notification command form if backend is Icinga 2 2016-09-08 15:49:39 +02:00
Eric Lippmann
18d2084924 Disable broadcast option for send custom notification if backend is Icinga 2 2016-09-01 10:51:04 +02:00
Eric Lippmann
4fda29c1f0 Add downtime name to the delete downtimes command form
refs #11398
2016-08-31 15:21:31 +02:00
Eric Lippmann
5737521683 Add comment name to the delete comments command form
refs #11398
2016-08-31 15:21:30 +02:00
Eric Lippmann
69db59a38e Add name to the delete downtime command form
refs #11398
2016-08-31 15:21:30 +02:00
Eric Lippmann
59dceb4729 Add name to the delete comment command form
refs #11398
2016-08-31 15:21:29 +02:00
Johannes Meyer
d0cd03f324 ScheduleHostDowntimeCommandForm: Add missing use statement for DateTime 2016-04-21 15:35:29 +02:00
Alexander A. Klimov
66bdae81ac Don't let the user schedule illogical host or service downtimes
refs #10847
2016-04-18 17:55:29 +02:00
Eric Lippmann
05f752ecd8 Don't offer disable notifications w/ expire time if backend is Icinga 2
resolves #11529
2016-04-11 10:51:37 +02:00
Eric Lippmann
5f8b994d5f Use isIcinga2() in command forms where needed 2016-02-25 17:51:37 +01:00
Eric Lippmann
02eea2ad11 Disable persistent comment checkbox if backend is Icinga 2
refs #11100
2016-02-25 17:51:02 +01:00
Eric Lippmann
863bf08864 Use isIcinga2() in the ToggleInstanceFeaturesCommandForm 2016-02-25 17:48:32 +01:00
Eric Lippmann
102ed40378 Show "Remove problem acknowledgement" in multi-select views
fixes #10469
2016-02-25 10:21:10 +01:00
Alexander A. Klimov
474803fee4 Change all license headers to only reflect a file's year of creation
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann
9bc9b78643 monitoring: Fix Icinga 2 version detection in the toggle object features command form 2016-01-28 14:45:39 +01:00
Eric Lippmann
164a61cb84 monitoring: Fix permissions used in the toggle object features command form 2016-01-28 14:23:07 +01:00
Eric Lippmann
ba9aeada60 monitoring: Introduce granular permissions for toggling object features
No backwards compatibility yet. Will be added if necessary.
2016-01-28 12:29:24 +01:00