Commit Graph

529 Commits

Author SHA1 Message Date
Eric Lippmann 3e53426ece monitoring: Add query for host downtimes
refs #9009
2015-05-29 13:10:20 +02:00
Eric Lippmann b1446fcb23 monitoring: Allow the hoststatus query to be filtered by restrictable columns
refs #9009
2015-05-29 11:43:41 +02:00
Eric Lippmann 4544653c2e monitoring: Don't apply restrictions in the downtime query
Restrictions should be applied from the controller.

refs #9009
2015-05-29 11:41:39 +02:00
Johannes Meyer 58d78f59f3 DbQuery: Initialize self::$select as early as possible
I'd like to use Zend's implementation instead of re-inventing the wheel just
because someone decided to only work with a copy of it in the frameworks
query but do exactly the opposite in the monitoring module's IDO query...
2015-05-28 13:49:36 +02:00
Eric Lippmann bb9b9bc754 monitoring: Apply host and service restrictions to downtimes
refs #9009
refs #9319
2015-05-26 17:05:47 +02:00
Eric Lippmann 788481e2b1 monitoring: Add Servicestatus query
refs #7344
refs #9009
2015-05-26 17:02:41 +02:00
Eric Lippmann 18499a4a59 monitoring: Support joining downtimes on the Hoststatus query
refs #7344
refs #9009
2015-05-26 17:02:13 +02:00
Eric Lippmann b0576d93de monitoring: Support selecting NULL as column
refs #9009
2015-05-26 17:00:56 +02:00
Eric Lippmann e9dd69267c monitoring: Prepare HoststatusQuery to be used when viewing hosts
The Hoststatusquery does not include the joins for last ack, comment and downtime as where unsure whether or not we will still support this.

refs #7344
refs #9009
2015-05-26 17:00:24 +02:00
Matthias Jentsch 4ac7557c2f Show host and service notes in the host and service detail view
refs #8235
2015-05-26 16:40:32 +02:00
Marius Hein 57abafd10b Merge branch 'master' into bugfix/customvars-case-insensitive-8696 2015-05-21 16:51:04 +02:00
Marius Hein 7c04664888 Make MySQL collation syntax default
Overwrite customVarsJoinTemplate for Postgres and Oracle.

refs #8696
2015-05-21 16:09:03 +02:00
Matthias Jentsch 8ce9989243 Merge branch 'feature/support-icon-image-alt-9300'
resolves #9300
2015-05-21 15:03:06 +02:00
Matthias Jentsch 598ef1e8f4 Add alt-text to icon_images
Print alt-text as title and alt-attribute in the helper class and add the alt-column to the backend query.

refs #9300
2015-05-21 14:59:12 +02:00
Marius Hein e8e3b940af Use CustomVariable names case insensitive
refs #8696
2015-05-21 14:42:09 +02:00
Eric Lippmann 57328aa6ed monitoring: Make host group and service group alias columns case insensitive
The alias columns should be case insenstive because we now support them when searching.

refs #8241
2015-05-21 13:58:54 +02:00
Eric Lippmann 0c72686ba1 monitoring: Make display_name columns case insensitive
The display_name columns should be case insenstive because we now support them when searching.

refs #8241
2015-05-21 12:46:47 +02:00
Eric Lippmann bbed2cffae monitoring: Add column hosts_severity to the group summary query
refs #8241
2015-05-21 11:23:55 +02:00
Eric Lippmann ce463d16ef Reorder group summary query's columns by name
refs #8241
2015-05-21 11:19:58 +02:00
Alexander A. Klimov ead0a64244 GroupsummaryQuery: add column `hosts_total'
refs #8054
2015-05-13 18:10:18 +02:00
Alexander A. Klimov 43d8968bd2 GroupsummaryQuery: add columns
hosts_up_last_state_change
hosts_pending_last_state_change
hosts_down_last_state_change_handled
hosts_unreachable_last_state_change_handled
hosts_down_last_state_change_unhandled
hosts_unreachable_last_state_change_unhandled

refs #8860
2015-05-13 16:22:47 +02:00
Alexander A. Klimov 7353c0d287 IdoQuery::initializeForPostgres(): cast only valid IP addresses to inet
fixes #7165
2015-05-12 16:35:14 +02:00
Michael Friedrich defda53ff5 Show icinga program version in Monitoring Health
Also emphasize on the backends used.

fixes #9207
2015-05-05 17:02:45 +02:00
Alexander Fuhr d1f1f5d7d7 ProgrammStatusQuery: Add fallback if ido_version is older than required
resolves #9223
2015-05-05 16:32:18 +02:00
Alexander Fuhr 0e4201a997 Add info about the active ido endpoint to monitoring health overview
resolves #9223
2015-05-05 15:20:25 +02:00
Johannes Meyer 923bc11b39 GroupsummaryQuery: Provide case insensitive filter columns for group names
I've renamed those and made them case sensitive as part of #8613 but
missed that they are required by the global search.

fixes #9056
2015-04-14 12:44:24 +02:00
Johannes Meyer 9cc5469305 NotificationQuery: Provide case-insensitive filter column `contact'
refs #8613
2015-04-13 15:33:33 +02:00
Johannes Meyer 29f05bf878 NotificationQuery: Provide case-insensitive filter column `service'
refs #8613
2015-04-13 15:33:19 +02:00
Johannes Meyer 3653ec810a NotificationQuery: Provide case-insensitive filter column `host'
refs #8613
2015-04-13 15:32:52 +02:00
Johannes Meyer 644a386bf8 NotificationQuery: Use query column `notification_contact_name'
...instead of `notification_contact'.

refs #8613
2015-04-13 15:26:06 +02:00
Johannes Meyer 15399d77ce NotificationQuery: Use query column `service_description' instead of `service'
refs #8613
2015-04-13 15:25:10 +02:00
Johannes Meyer 96954ea9a1 NotificationQuery: Use query column `host_name' instead of `host'
refs #8613
2015-04-13 15:24:15 +02:00
Johannes Meyer c10617d409 Servicegroups: Use query column `servicegroup_name' instead of `servicegroup'
refs #8613
2015-04-10 16:28:57 +02:00
Johannes Meyer c59d5ac7d5 Hostgroups: Use query column `hostgroup_name' instead of `hostgroup'
refs #8613
2015-04-10 16:28:33 +02:00
Johannes Meyer e7c1e552a5 EventgridQuery: Make filter column `servicegroup' case-insensitive
...and add a case-sensitive query column.

refs #8613
2015-04-10 16:01:22 +02:00
Johannes Meyer ea16d45aa3 EventgridQuery: Make filter column `hostgroup' case-insensitive
...and add a case-sensitive query column.

refs #8613
2015-04-10 16:01:09 +02:00
Johannes Meyer 8b2c0191c4 EventgridQuery: Remove COLLATE from query column `service_description'
refs #8613
2015-04-10 15:54:55 +02:00
Johannes Meyer 904e91bfa9 EventgridQuery: Remove COLLATE from query column `host_name'
refs #8613
2015-04-10 15:54:18 +02:00
Johannes Meyer 4bc3afaca4 ServicegroupQuery: Make query column `servicegroup_alias' case-insensitive
refs #8613
2015-04-10 15:34:55 +02:00
Johannes Meyer fdd6a4d59b ServicegroupQuery: Remove COLLATE from query column `servicegroup_name'
...and add a case-insensitive alternative called `servicegroup'.

refs #8613
2015-04-10 15:34:28 +02:00
Johannes Meyer 055cd61421 ServicegroupQuery: Remove COLLATE from query column `service_desription'
refs #8613
2015-04-10 15:32:47 +02:00
Johannes Meyer a17c2eddb7 ServicegroupQuery: Remove COLLATE from query column `service_host_name'
refs #8613
2015-04-10 15:31:51 +02:00
Johannes Meyer 26f0b46516 ServicegroupQuery: Remove COLLATE from query column `host_name'
refs #8613
2015-04-10 15:31:09 +02:00
Johannes Meyer f61370f55a DataView\Hostgroup: Add missing query columns
refs #8613
2015-04-10 15:21:18 +02:00
Johannes Meyer 69e520a514 HostgroupQuery: Remove COLLATE from query column `host_name'
refs #8613
2015-04-10 15:20:19 +02:00
Johannes Meyer 9f075e0691 HostgroupQuery: Remove COLLATE from query column `hostgroup_name'
refs #8613
2015-04-10 15:19:55 +02:00
Johannes Meyer 92634a1921 DowntimeQuery: Provide case-insensitive filter column `service_host'
refs #8613
2015-04-10 14:25:53 +02:00
Johannes Meyer 5ccf6a7efa DowntimeQuery: Remove redundant query columns
refs #8613
2015-04-10 14:25:26 +02:00
Johannes Meyer 0f0727491e DowntimeQuery: Make query column `author' case-insensitive
refs #8613
2015-04-10 14:24:53 +02:00
Johannes Meyer 1c32d8ebe5 DowntimeQuery: Add _name suffix to the query column `downtime_author'
...to indicate that it's a case-sensitive column.

refs #8613
2015-04-10 14:23:05 +02:00
Johannes Meyer b8efe01170 CustomvarQuery: Remove COLLATE from query columns
...and provide case-insensitive filter columns alternatively.

refs #8613
2015-04-10 12:56:18 +02:00
Johannes Meyer 0628efb4cd ContactgroupQuery: Make query column `contact_email' case-insensitive
refs #8613
2015-04-10 12:27:44 +02:00
Johannes Meyer 638eda7773 ContactgroupQuery: Make query column `contact_alias' case-insensitive
refs #8613
2015-04-10 12:27:24 +02:00
Johannes Meyer 0fe59aa519 Revert "ContactQuery: Provide ci query columns for aliases and email addresses"
This reverts commit f00adc2138.

Conflicts:
	modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactQuery.php
2015-04-10 12:23:35 +02:00
Johannes Meyer 03c8de5d7b ContactgroupQuery: Provide case-insensitive filter column `service_host'
refs #8613
2015-04-10 12:20:28 +02:00
Johannes Meyer 71c013178e ContactgroupQuery: Make query column `contactgroup_alias' case-insensitive
refs #8613
2015-04-10 12:14:11 +02:00
Johannes Meyer 6536878d5d ContactgroupQuery: Remove COLLATE from query column `contact_name'
refs #8613
2015-04-10 12:13:23 +02:00
Johannes Meyer 1dc16a1ab6 ContactgroupQuery: Remove COLLATE from query column `contactgroup_name'
refs #8613
2015-04-10 12:12:50 +02:00
Johannes Meyer 3d7e418032 ContactQuery: Provide case insensitive filter column `service_host'
refs #8613
2015-04-10 09:50:26 +02:00
Johannes Meyer 0ec1a18844 ContactQuery: Fix query column `service' not referencing a service's name
refs #8613
2015-04-10 09:48:22 +02:00
Johannes Meyer 52dcecfd08 ContactQuery: Change query column `contact_name' to be case sensitive
...and provide `contact' as case-insensitive alternative.

refs #8613
2015-04-10 09:46:41 +02:00
Johannes Meyer f00adc2138 ContactQuery: Provide ci query columns for aliases and email addresses
refs #8613
2015-04-10 09:45:23 +02:00
Johannes Meyer ea874f8402 *historyQuery: Remove COLLATE from `host_name' and `service_description'
refs #8613
2015-04-09 15:29:01 +02:00
Johannes Meyer 51bf5cfbc8 *historyQuery: Drop redundant query columns
refs #8613
2015-04-09 15:13:59 +02:00
Johannes Meyer 9e79419eb1 EventHistoryQuery: Provide `hostgroup_name' as alternative to `hostgroup'
This can't be queried though until #7274 has been resolved.

refs #8613
2015-04-09 14:44:10 +02:00
Johannes Meyer b7e1c2d518 EventHistoryQuery: Remove COLLATE from the column `service_description'
refs #8613
2015-04-09 14:40:12 +02:00
Johannes Meyer ae10e01ed6 EventHistoryQuery: Remove COLLATE from the column `host_name'
refs #8613
2015-04-09 14:39:47 +02:00
Johannes Meyer 2c38ccda5c EventHistoryQuery: Drop column `service_host_name'
refs #8613
2015-04-09 14:19:31 +02:00
Johannes Meyer 21c76010d4 CommentQuery: Add `comment_author_name' as additional query column
refs #8613
2015-04-09 13:06:38 +02:00
Johannes Meyer 002b820835 CommentQuery: Provide `service_host' additionally to `service_host_name'
refs #8613
2015-04-09 12:55:57 +02:00
Johannes Meyer cb95f53dba CommentQuery: Fetch and display object names with their initial collation
i.e. `host_name' instead of `comment_host' alias `host'
and `service_description' instead of `comment_service' alias `service'.

refs #8613
2015-04-09 12:49:06 +02:00
Johannes Meyer 9557585f6a Add an additional column for servicegroup names with unchanged collation
refs #8613
2015-04-08 14:49:18 +02:00
Johannes Meyer c476ee6855 Add an additional column for hostgroup names with unchanged collation
refs #8613
2015-04-08 14:42:57 +02:00
Johannes Meyer 98c76a693e Do not adjust the collation when querying service descriptions
refs #8613
2015-04-08 14:41:13 +02:00
Johannes Meyer b449127680 Do not adjust the collation when querying host names
refs #8613
2015-04-08 14:40:34 +02:00
Alexander Klimov 967a2e82dc Use (only) "@return $this" in fluent interfaces' documentation 2015-04-07 14:24:11 +02:00
Eric Lippmann a4731ebbb3 Select is_reachable from host and service status
refs #6875
2015-03-13 00:25:08 +01:00
Eric Lippmann 53626ccfeb Merge branch 'master' into bugfix/unnecessary-joins-8614 2015-03-12 16:40:16 +01:00
Eric Lippmann 29b5e4fd43 Add host_name and service_description columns w/o collation to the comment query
refs #8614
2015-03-12 16:38:32 +01:00
Eric Lippmann 112f8eb2f9 Remove COLLATE from host_name and service_description in the Contactgroup query
refs #8614
refs #8613
2015-03-12 16:33:28 +01:00
Eric Lippmann 7212434856 Remove COLLATE from host_name and service_description in the Contact query
refs #8614
refs #8613
2015-03-12 16:32:05 +01:00
Thomas Gelf 16ca8d0654 StatusQuery: fix join on wrong alias
Looks like a copy & paste error, resulted in hosts been shown multiple
times.

fixes #8699
2015-03-12 09:46:38 +01:00
Eric Lippmann ea32d3dfb3 Add PHPDoc to the EventHistory query
refs #8614
2015-03-11 13:01:14 +01:00
Eric Lippmann c69a46d005 Add PHPDoc to the Downtime query
refs #8614
2015-03-11 13:01:14 +01:00
Eric Lippmann 6d43673754 Do not always join host and service status in the DowntimeQuery
Now the hoststatus and servicestatus tables are only joined if necessary.

refs #8614
2015-03-06 13:13:02 +01:00
Eric Lippmann 2b91ec7f2c Comment out unused query in the ContactgroupQuery
refs #8614
2015-03-06 09:54:12 +01:00
Eric Lippmann fc403e693b Fix array indentation in the ContactQuery
refs #8614
2015-03-06 09:46:47 +01:00
Eric Lippmann dc223128bb Remove host_- and service_object_id from ContactQuery's columnMap
We do not use these columns.

refs #8614
2015-03-05 17:18:52 +01:00
Johannes Meyer e588ea2714 Fix filter expression handling when lowering to achieve case-insensitivity
fixes #8435
2015-02-16 13:05:24 +01:00
Eric Lippmann 6bae2e0a53 Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL 2015-02-04 10:52:27 +01:00
Eric Lippmann 5b4fab0750 Add license header
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann 5fa2e3cfdc Revert "Add license header"
This reverts commit 338d067aba.
2015-02-03 16:16:26 +01:00
Johannes Meyer 04edf0d075 Fix that the search is case-sensitive in case of a PostgreSQL backend
fixes #8083
2015-02-03 16:15:59 +01:00
Eric Lippmann 338d067aba Add license header
fixes #7788
2015-02-03 15:51:04 +01:00
Eric Lippmann f9047e85c5 monitoring: Fix wrong unhandled service problems count in the hosts overview
The query was missing the is_active = 1 condition. I'll open an issue for the other
affected queries.

fixes #8013
2015-02-02 11:12:27 +01:00
Eric Lippmann 405e18a46f monitoring: Fix PHPDoc for MonitoringBackend::from() 2015-01-27 13:37:28 +01:00
Eric Lippmann a1fbb3d937 monitoring: Fix host and service groups overviews when using PostgreSQL
fixes #8268
2015-01-23 15:47:18 +01:00
Eric Lippmann 7500dd9c68 Revert "GroupSummary/Postgres: Fix group by in initial join query"
This reverts commit f47bc46654.

Conflicts:
	modules/monitoring/library/Monitoring/Backend/Ido/Query/GroupsummaryQuery.php

No need to reintroduce group columns.
2015-01-23 15:27:52 +01:00
Eric Lippmann 30eed015ba monitoring: Support selecting host group and service group alias in the GroupsummaryQuery
refs #8266
2015-01-23 11:21:29 +01:00
Eric Lippmann 74a0c1e274 monitoring: Support selecting host group and service group alias in the HoststatusQuery
refs #8266
2015-01-23 11:21:10 +01:00
Eric Lippmann e15c085f19 monitoring: Support selecting host group and service group alias in the StatusQuery
refs #8266
2015-01-23 11:20:35 +01:00
Eric Lippmann 5ac1eaa513 monitoring: Fix indents in the GroupsummaryQuery 2015-01-23 11:11:34 +01:00
Eric Lippmann a91a2eba68 monitoring: Support host and service display_name columns in the CommentQuery
refs #7843
2015-01-21 16:09:13 +01:00
Eric Lippmann d8b1e63231 monitoring: Support host and service display_name in the NotificationQuery
refs #7843
2015-01-21 15:47:10 +01:00
Eric Lippmann 0bcca651b2 monitoring: Remove useless PHPDoc in the NotificationQuery 2015-01-21 13:12:26 +01:00
Eric Lippmann 85aa447516 monitoring: Support host and service display_name in the DowntimeQuery
refs #7843
2015-01-21 12:52:29 +01:00
Eric Lippmann d528ddc641 monitoring: Fix that host_display_name is NULL when the object is a service in the evenhistory overview
refs #7843
2015-01-21 12:51:47 +01:00
Eric Lippmann e881a0de33 monitoring: Remove useless PHPDoc in the DowntimeQuery 2015-01-21 10:35:10 +01:00
Eric Lippmann 25c2e99122 monitoring: Fix duplicate array key 'service_description' in the EventHistoryQuery 2015-01-21 10:26:12 +01:00
Eric Lippmann aa976c4198 monitoring: Support host and service display_name in the EventHistoryQuery
This adds two left joins to the query when selecting host_display_name and service_display_name.
If performance suffers badly, we have to evaluate whether to support the display_name column for displaying
the host and service name in the eventhistory overview.

refs #7843
2015-01-21 10:24:24 +01:00
Eric Lippmann 1bba0b3d0f monitoring: Fix coding style in the EventHistoryQuery 2015-01-21 10:15:58 +01:00
Eric Lippmann 7d967d25b3 monitoring: Fix code style in the StatehistoryQuery 2015-01-21 10:12:14 +01:00
Eric Lippmann 10571c3178 monitoring: Fix duplicate array key 'service_description' in the StatehistoryQuery 2015-01-21 10:10:07 +01:00
Eric Lippmann b0e27c4fe6 monitoring: Remove duplicate array key 'host_check_command' in the StatusQuery 2015-01-20 13:43:53 +01:00
Eric Lippmann 56640fa64f postgres: Use timestamp comparison instead of timezone offset comparison for detecting the default timestamp
refs #7919
2015-01-19 13:50:03 +01:00
Eric Lippmann 09d5ec6b7a postgres: Return 0 if a timestamp looks like the default timestamp
The PostgreSQL IDO schema sets the default value for timestamps with time zone
to the epoch time w/o giving the time zone +00. Thus default timestamps are always
wrong when using a time zone other than 'UTC'.

refs #7919
2015-01-16 17:05:50 +01:00
Eric Lippmann dae3ccd90c monitoring: Take status_update_time into account when is_currently_running is 1
fixes #8210
2015-01-16 17:02:35 +01:00
Eric Lippmann a6861789bb lib: Remove superfluous return false from IdoQuery 2015-01-16 17:01:52 +01:00
Johannes Meyer f513e7959e Consider also the host's state when counting its service problems
refs #8013
2014-12-22 16:20:12 +01:00
Johannes Meyer 2b14dbaff3 Fix the groupsummarie's grouping in case of PostgreSQL
fixes #7859
2014-12-01 14:36:46 +01:00
Johannes Meyer e23a794844 There is no "highest" severity, just "some" severity 2014-11-20 12:49:10 +01:00
Johannes Meyer 2fdc1f4322 Sort the hostgroup- and servicegroupsummary by service severity 2014-11-20 09:48:47 +01:00
Johannes Meyer c74f7531dc Do not display host- and servicegroups as boxes but as table instead 2014-11-19 11:53:45 +01:00
Johannes Meyer 7621f6642d Adjust usages of Icinga\Application\Config
refs #7147
2014-11-18 13:11:52 +01:00
Thomas Gelf 10ec0446e0 Livestatus\DowntimeQuery: first basic version 2014-11-16 18:55:48 +01:00
Thomas Gelf 8bd9a966e1 Livestatus\ServicegroupQuery: initial commit 2014-11-16 18:54:08 +01:00
Thomas Gelf 92c059a0d7 Livestatus\HostgroupQuery: initial commit 2014-11-16 18:53:41 +01:00
Thomas Gelf 42efbf0892 Livestatus\StatusSummaryQuery: initial implementation 2014-11-16 17:12:25 +01:00
Thomas Gelf 7eb960ea0b Livestatus\StatusQuery: a couple of munge methods 2014-11-16 16:40:15 +01:00
Thomas Gelf b494476ebc Livestatus\StatusQuery: make use of new filter flags
NIIIIICEEEE!!
2014-11-16 16:39:41 +01:00
Thomas Gelf b6b78e4fcd Livestatus\StatusQuery: add LOTS of columns...
...still a little bit ugly, I'm in a hurry right now
2014-11-16 16:39:01 +01:00
Thomas Gelf 1a4bf609a2 Livestatus\StatusQuery: remove obsolete method 2014-11-16 16:37:33 +01:00
Thomas Gelf 6d362b0606 Livestatus\StatusQuery: should know about it's table 2014-11-16 16:36:47 +01:00
Thomas Gelf 7b73215868 Livestatus\StatusQuery: add terribly setMode method 2014-11-16 15:18:10 +01:00
Thomas Gelf fa20ced0c2 LiveStatus\StatusQuery: should be a Livestatus\Query 2014-11-16 15:05:36 +01:00
Thomas Gelf e89d4642e3 Merge remote-tracking branch 'origin/master' into feature/livestatus-playground-4787 2014-11-16 10:12:34 +01:00
Alexander Fuhr 038964a325 Add tinystatesummary for hosts overview 2014-11-14 16:50:34 +01:00
Matthias Jentsch 022d89254f Fix tab, navigation and menu names 2014-11-13 18:38:42 +01:00
Johannes Meyer 7aae291f69 Merge branch 'master' into feature/setup-wizard-7163 2014-11-12 10:08:28 +01:00
Thomas Gelf e96ecc5271 LivestatusBackend: just an empty backend 2014-11-11 18:06:50 +01:00
Thomas Gelf 1ca83c001f MonitoringBackend: just a few comments
fixes #7635
2014-11-11 17:33:31 +01:00
Thomas Gelf 78fd5109ac MonitoringBackend: fix variable name in exception
refs #7635
2014-11-11 17:23:49 +01:00
Thomas Gelf 9431a3432f MonitoringBackend: remove comment for SOLID fanboys 2014-11-11 17:21:32 +01:00
Thomas Gelf 8faf81dad5 MonitoringBackend: add clearInstances()
refs #7635
2014-11-11 16:57:34 +01:00
Thomas Gelf 6c0aa8dcc5 MonitoringBackend: handle null name in a nice way
When we get null as a backend name, we load the default one. While we
want to cache that null backend, it should still know about it's real
name.
2014-11-11 16:49:56 +01:00
Thomas Gelf 50b0ef45ff IdoBackend: concrete backend implementation
Nothing special to be found here. Not yet.

refs #7635
2014-11-11 15:44:39 +01:00
Thomas Gelf 19ab8237d4 Backend\MonitoringBackend: base class for backends
refs #7635
2014-11-11 15:40:38 +01:00
Johannes Meyer 9d292269b1 Merge branch 'master' into feature/setup-wizard-7163
Conflicts:
	application/forms/Config/Resource/LdapResourceForm.php
	test/php/application/forms/Config/Authentication/LdapBackendFormTest.php
2014-11-11 09:44:11 +01:00
Thomas Gelf 816c309193 Ido\CustomvarQuery: add is_json
This has to be done in a backward compatible way, we check for IDO
>= 1.12.0.

refs #7569
2014-11-06 16:14:03 +01:00
Marius Hein cd9e3693e4 Downtime: Add filter editor and preview
resolves #7445
2014-11-06 13:22:38 +01:00
Johannes Meyer 170ded6510 Merge branch 'master' into feature/setup-wizard-7163
Conflicts:
	library/Icinga/Authentication/Backend/LdapUserBackend.php
	library/Icinga/File/Ini/IniWriter.php
2014-11-04 14:22:53 +01:00
Eric Lippmann 16352fc10c Move Logger to the Application namespace
fixes #7148
2014-10-31 10:27:17 +01:00
Johannes Meyer 437b41c6c1 Merge branch 'master' into feature/setup-wizard-7163 2014-10-13 08:18:43 +02:00
Johannes Meyer 1cbe2451a8 Merge branch 'master' into feature/setup-wizard-7163
Conflicts:
	application/forms/Config/Resource/StatusdatResourceForm.php
2014-10-08 16:34:31 +02:00
Marius Hein 0825b2f071 AlertSummary: Add healing chart
refs #4076
2014-10-08 15:30:53 +02:00
Alexander Fuhr 4c23d98575 Merge branch 'master' into bugfix/monitoring-list-dup-entries-7057 2014-10-08 12:45:14 +02:00
Alexander Fuhr afc97b1cac Fix the duplicate entries in monitoring list shows
refs #7057
refs #7344
fixes #7057
2014-10-08 12:30:08 +02:00
Eric Lippmann 1b23fd7fbe monitoring: Don't support status.dat as backend
Icinga Web 2 will not support status.dat for now and maybe forever.
2014-10-07 13:22:07 +02:00
Eric Lippmann 2126b8c341 monitoring: Fix link to an object's contact in the detail views 2014-10-07 13:21:28 +02:00
Alexander Fuhr a0122763a6 Fix Queries: Summaries, Host, Service 2014-10-06 11:37:33 +02:00
Johannes Meyer cbadaa78d6 Merge branch 'master' into feature/setup-wizard-7163 2014-09-29 15:35:52 +02:00
Thomas Gelf d7f8a7823f GroupsummaryQuery: adjust queries to fix ZF woes
Some less brackets also here. Dropping COALESCE as the subquery will
never return NULL

fixes #7303
2014-09-24 19:50:43 +02:00
Thomas Gelf 98fa84bd17 StatusSummaryQuery: one more quickfix
Tactical overview works again right now

refs #7303
2014-09-24 19:47:02 +02:00
Thomas Gelf 45fc768813 StatusSummaryQuery: workaround for silly ZF fix
This brings the tiny summaries back. Host- and servicegroups and TO are
still broken.

refs #7303
2014-09-24 19:33:05 +02:00
Johannes Meyer c00dbf9f46 Write session on response
There should not be any necessity to write the session once changes are
being made to it. We now track whether changes were made and write
the session when responding to the user's request if so.
2014-09-24 10:46:35 +02:00
Eric Lippmann cde3ec6bc8 Merge branch 'master' into bugfix/commands-6593
Conflicts:
	modules/monitoring/application/controllers/TimelineController.php
2014-09-23 22:54:17 -07:00
Matthias Jentsch 44e5fe7e12 Join Host and Servicegroups for extended filtering 2014-09-19 17:41:44 +02:00
Eric Lippmann 4b7096bbbf monitoring: Support host and service filters for downtimes
refs #7278
2014-09-19 14:28:23 +02:00
Marius Hein 9c2cf0bd0f StateHistoryQuery: Make whereToSql robust
This fixes bugs is a array for expression comes in or types
does not exist.

fixes #7133
2014-09-10 10:07:03 +02:00
Thomas Gelf cbaa2d8ae9 StateHistoryQuery: tune type queries 2014-09-05 18:41:51 +02:00
Thomas Gelf 9ea377fd45 NotificationHistoryQuery: names instead of aliases
refs #7104
2014-09-05 18:16:59 +02:00
Thomas Gelf 38c6d6aaf8 StatusSummaryQuery: reorganize, add new columns
refs #6993
2014-09-05 18:16:58 +02:00
Thomas Gelf 1734f01040 CommentdeletionhistoryQuery: 1970-01-01 -> -02
refs #7000
2014-09-02 17:02:58 +02:00
Thomas Gelf a58b2aac00 Ido\StatusQuery: join ALL latest comment
And it was soooo fast :p

refs #7057
2014-09-02 15:31:06 +02:00
Marius Hein 19136b548a StatusQuery: Separate last comment fields
fixes #7057
2014-09-02 13:57:43 +02:00
Thomas Gelf 6be31f4f51 Downtime*Query: use 1970-01-02 as "null"
refs #7000
2014-09-02 12:47:03 +02:00
Thomas Gelf 4a95b9d942 StatusSummaryQuery: respect pending, add columns 2014-09-02 12:45:15 +02:00
Thomas Gelf 153013bbc6 Ido\StatusQuery: pending hosts are not problems 2014-09-02 12:28:25 +02:00
Marius Hein f47bc46654 GroupSummary/Postgres: Fix group by in initial join query
refs #5896
2014-09-01 10:00:04 +02:00
Marius Hein 21f0b4c925 CommandQuery: Remove select * from joins (Postgres)
refs #5896
2014-09-01 10:00:04 +02:00
Marius Hein b4e9bad87a NotificationHistoryQuery: Add missing field to group statement
refs #5896
2014-09-01 10:00:04 +02:00
Marius Hein e46dd4bdfd DowntimeQuery: Postgres fixes
Change is_fixed to boolean check and illegal postgres timerange of
'0000-00-00 00:00:00'.

refs #5896
2014-09-01 10:00:04 +02:00
Marius Hein 62f502d276 Postgres/StatusQuery: Fix concatenation and group by
refs #5896
2014-09-01 10:00:04 +02:00
Marius Hein c4c5bcdd48 ContactQuery: Change timeperiod joins to joinLeft()
refs #7020
2014-08-28 13:39:49 +02:00
Marius Hein 5e84ff4ac4 Show/Contact: Add notification history to view
refs #4804
2014-08-27 16:38:29 +02:00
Marius Hein 9465c3ffb6 Show/Contact: Add commands to view
Create a new command query and join contact information into.

refs #4804
2014-08-27 16:38:29 +02:00
Alexander Klimov 45638b218c Throw IcingaException rather than Exception
fixes #7014
2014-08-27 16:03:15 +02:00
Alexander Klimov 7ff51caed0 Remove leading backslashes from the targets of use statements
- use \Exception;
+ use Exception;
2014-08-27 15:51:49 +02:00
Eric Lippmann 1dea19504f Revert "Remove leading backslashes from the targets of use statements"
This reverts commit 87a5967501.

At least 'modules/doc/run.php' issues a warning about "The use statement with non-compound name 'Zend_Controller_Router_Route' has no effect"
2014-08-27 12:24:11 +02:00
Alexander Klimov 87a5967501 Remove leading backslashes from the targets of use statements
- use \Exception;
+ use Exception;
2014-08-27 11:16:44 +02:00
Alexander Klimov febb2d1ae2 ProgrammingError: extend IcingaException
refs #6931
2014-08-26 11:15:19 +02:00
Johannes Meyer 3573908071 Let downtime view look more list-like and fix downtime end calculation
refs #6637
2014-08-19 17:03:35 +02:00
Johannes Meyer 54461f9319 Treat hard states more severe than soft states
fixes #6571
2014-08-15 12:40:56 +02:00
Johannes Meyer 3105c2059e Remove license headers from all files
refs #6309
2014-07-15 13:43:52 +02:00
Johannes Meyer 0d92efc1b0 Consider is_active column when fetching host and service statistics
fixes #6157
2014-07-09 11:49:22 +02:00
Johannes Meyer 7eb0f3c472 Remove @codingStandardsIgnoreStart/-Stop annotations
refs #6091
2014-06-30 13:59:58 +02:00
Thomas Gelf ff9c29472e monitoring/status: re-introduce comments, problems
This re-introduces expensive columns been disabled time ago and adds
even more to it. We are now showing last comment, last ack comment and
service problem count on hosts in list views.

It still costs performance, but seems that we can stand it. I'd like
to add more like this to the host view.
2014-06-25 21:42:24 +02:00
Thomas Gelf 11ce302be0 Ido\StatusQuery: fine-tune query filters
This is still experimental. We normalize a lot of columns, this allows
us to sort in a convenient way while having nice "showable" columns.
When used as filters (same goes for ordering) however, functions and
operations on table columns often hinder the db from using indexes.

The new filter implementation allows us to override query creating per
single column, that's what this first sample is trying to show. We still
need to fix alias handling, so unfortunately I have to deal with "real
columns" in the case construct.

Performance gain in large environments is impressive, more to come.
2014-06-25 21:12:44 +02:00
Thomas Gelf 7b5d7bdbcf monitoring/statehistorysummary: filter fixes
Slightly adjusted filter string to fit new filters, fixed an issue
with 'object_type' column in virtual eventhistory table.
2014-06-21 03:18:00 +02:00
Thomas Gelf b3cdeee35d monitoring/timeline: should benefit from new filter
Different changes have been applied:

* Allow integer unix timestamps as parameters for timestamp columns
* Remove alias-rewriting from Url class
* Remove all traces of raw_timestamp
* Use new filters
2014-06-21 03:09:40 +02:00