lippserd
a5bf9e0175
Merge pull request #3029 from Icinga/bugfix/empty-host-and-service-groups-not-shown-2796
...
Bugfix/empty host and service groups not shown 2796
2017-11-27 14:24:11 +01:00
Eric Lippmann
ca803e8f05
Fix monitoring health badge if programstatus has never been set
2017-11-22 11:12:24 +01:00
Johannes Meyer
e4fd8d5124
Setup: Only allow to validate the API transport configuration
...
refs #3101
2017-11-21 13:48:29 +01:00
Markus Frosch
22c6bf75e7
Setup: Fix that the API transport validation does not work
...
refs #3101
2017-11-21 13:48:17 +01:00
Eric Lippmann
d11519ac49
pogsql: Group by custom variables when querying them
...
Custom variables added via the URL parameters addColumns or sort must be added to the GROUP BY list when using PostgreSQL.
Credits to @nbuchwitz who came up with the initial fix for this.
refs #1873
2017-11-16 09:20:22 +01:00
Klaus Jrgensen
fa9b2981d7
Fix PHP fatal error on monitoring/health/info when asking for JSON
...
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-11-10 11:16:33 +01:00
Johannes Meyer
23066d2cc4
ServicegroupQuery: Use left joins instead of inner joins
...
refs #2796
2017-11-09 09:42:46 +01:00
Johannes Meyer
4ef085bdcd
HostgroupQuery: Use left joins instead of inner joins
...
refs #2796
2017-11-09 09:42:46 +01:00
Eric Lippmann
121fdaadb0
Allow to search for host and servicegroups by their case insensitive names too
...
refs #2971
2017-11-08 15:40:43 +01:00
Eric Lippmann
f4ce2a5d82
Fix code style issues
2017-11-08 11:29:33 +01:00
Eric Lippmann
73a6750489
Make phpcs and PhpStorm happy w/ intentional switch, case fall-throughs
...
Unfortunately, PhpStorm does not regonise PSR2 fall-through comments.
On the other hand, phpcs does not support the @noinspection phpdoc comment (/**).
The fix is a mix of PSR2 comments and @noinspection tags in code comments.
2017-11-08 10:25:28 +01:00
Markus Frosch
c3ef50978a
style: Fix minor styleguide issues for PHPCS
2017-11-08 10:06:45 +01:00
Johannes Meyer
37aeff7791
Respect limits and sort orders for format requests
...
fixes #2967
2017-10-23 15:49:12 +02:00
Mikesch-mp
c17c1b876c
Export JSON with .json extension
...
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-10-18 13:47:08 +02:00
lippserd
91948a5a37
Merge pull request #2983 from Mikesch-mp/csv-export
...
Export CSV files with .csv extension
2017-10-18 13:21:59 +02:00
Mikesch-mp
d76a18dd91
Export CSV files with .csv extension
...
refs #2808
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-10-18 13:21:19 +02:00
Eric Lippmann
8de0b80f9e
Fix contact group member count
...
fixes #2837
2017-10-05 14:35:15 +02:00
Michael Friedrich
ab364e0fc7
Remove unsupported livestatus functionality
...
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-09-29 10:33:55 +02:00
lippserd
624fab8194
Merge pull request #2960 from Icinga/bugfix/host-severity-order-2926
...
Adjust host severity
2017-09-25 17:11:36 +02:00
Jennifer Mourek
0b30fbd15d
Adjust host severity
...
refs #2926
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-09-25 17:03:33 +02:00
Alexander A. Klimov
467fc79095
Style monitored objects' detailview extensions as expected
...
refs #2949
2017-09-20 14:49:14 +02:00
Alexander A. Klimov
c2ee3bef06
DetailviewExtensionHook: provide the concrete implementation's module
...
refs #2949
2017-09-20 14:49:08 +02:00
Michael Friedrich
2c312adf94
API Commands: Only send acknowledgement expire time if not null
...
Icinga 2 v2.7.0 is more strict with the `expiry` attribute if sent
(cannot be null, or in the past).
While acknowledgments with expire time worked well (and do so with this patch),
the command renderer did not check whether the value is actually not null
before setting it into the data form. The boolean value from the checkbox is
not available in the command renderer unfortunately.
@lippserd: Verified working with and without expire time inside the Vagrant boxes.
fixes #2911
2017-08-08 12:53:39 +02:00
Eric Lippmann
adc2f90f74
Show DOWN hosts before UNREACHABLE when sorting by host_severity
...
refs #2034
2017-07-27 16:08:29 +02:00
Eric Lippmann
7c88ee70d2
Remove sort rules from Programstatus
...
Sort is not necessary here.
2017-07-27 15:03:12 +02:00
Eric Lippmann
1621755103
Don't call UNIX_TIMESTAMP when sorting by host_severity
2017-07-27 15:03:12 +02:00
Eric Lippmann
9b7a155db2
Don't call UNIX_TIMESTAMP when sorting by service_severity
2017-07-27 15:03:12 +02:00
Eric Lippmann
8a6240fe02
Reduce service_severity order by columns
...
Ordering by host and service display_name too here reduces performance and is not necessary.
2017-07-27 15:03:12 +02:00
Eric Lippmann
c5f2fc5aa5
Reduce service_display_names order by columns
...
Ordering by host_display_name too here reduces performance as it forces MySQL to use a temp table.
2017-07-27 15:03:12 +02:00
Eric Lippmann
ee429f54d0
Reduce host_severity order by columns
...
Ordering by host_display_name too here reduces performance and is not necessary.
2017-07-27 15:03:12 +02:00
Eric Lippmann
e7776d08a9
Don't call UNIX_TIMESTAMP when sorting by host_last_state_change
...
Else possible indices can't be used.
2017-07-27 15:03:12 +02:00
Eric Lippmann
3a1afb3511
Don't call UNIX_TIMESTAMP when sorting by service_last_state_change
...
Else possible indices can't be used.
2017-07-27 15:03:12 +02:00
Eric Lippmann
9b529bcd15
Flip base tables in HoststatusQuery
...
This has no performance impact but all our queries should start w/ select from icinga_objects.
2017-07-27 15:03:12 +02:00
Eric Lippmann
370d148072
Optimize imports in HoststatusQuery
2017-07-27 15:03:12 +02:00
Eric Lippmann
e42d86a4e1
Remove unncessary column definitions in the Hostgroupsummary and Servicegroupsummary data views
2017-07-27 15:03:12 +02:00
Eric Lippmann
0a3da99e7f
Reduce filter columns of the Hostgroup and Servicegroup data views
...
Its not necessary to expose those columns because these data views do not directly accept user input.
2017-07-27 15:03:12 +02:00
Eric Lippmann
b4df81e75a
Optimize queries used for fetching the service group summaries
2017-07-27 15:03:12 +02:00
Eric Lippmann
06cb980308
Don't add GROUP BY for unjoined tables
2017-07-27 15:03:12 +02:00
Eric Lippmann
30cc51a823
Optimize queries used for fetching the host group summaries
...
refs #1883
2017-07-27 11:43:13 +02:00
Eric Lippmann
f5a9016dea
Optimize queries for creating the host and service problem badges in the menu
...
We now use two fast count queries w/ an appropriate filter instead of fetching a whole bunch of unnecessary host and service counters.
2017-07-27 11:38:00 +02:00
Eric Lippmann
a9f3f99049
Don't hide errors in the BackendAvailabilityNavigationItemRenderer
...
If an exception occurs when fetching the dataview, we will now log the exception and display a badge in state unknown.
2017-07-27 11:35:40 +02:00
Eric Lippmann
439d78a982
Don't hide errors in the MonitoringBadgeNavigationItemRenderer
...
If an exception occurs when fetching the dataview, we will now log the exception and display a badge in state unknown.
2017-07-27 11:31:10 +02:00
Eric Lippmann
28790d254b
Remove caching form the MonitoringBadgeNavigationItemRenderer
...
Caching will be no longer necessary because we will replace the queries used to fetch the problem badges.
2017-07-27 11:29:57 +02:00
Eric Lippmann
c0d359fbbd
Fix base class of MonitoringBadgeNavigationItemRenderer
...
The MonitoringBadgeNavigationItemRenderer extended the SummaryNavigationItemRenderer before which does not make sense because they have nothing in common.
2017-07-27 09:33:44 +02:00
Eric Lippmann
a4a0f9f5e6
Allow to filter notifications by notification_reason
...
refs #2698
2017-05-04 14:38:00 +02:00
Eric Lippmann
7a2d8eda8d
Fix exception when the response from the Icinga 2 API has an empty result set
...
fixes #2805
2017-04-04 09:17:52 +02:00
Eric Lippmann
efac7f44c9
Merge pull request #2748 from Icinga/bugfix/validate-icinga2-api-user-2674
...
Bugfix/validate icinga2 api user 2674
2017-03-28 10:25:12 +02:00
Eric Lippmann
0fc45ea953
Merge pull request #2755 from Icinga/feature/keep-quick-actions-in-action-form-2675
...
Preserve quick actions in a command form view
2017-03-28 10:15:37 +02:00
Eric Lippmann
f749c19f37
Merge pull request #2771 from Icinga/feature/monitoring-detailviewextension-hook-2104
...
Feature/monitoring detailviewextension hook 2104
2017-03-28 09:46:28 +02:00
Alexander A. Klimov
fb2abf40f8
Make the view available to DetailviewExtensionHooks
...
refs #2104
2017-02-21 12:23:21 +01:00