819 Commits

Author SHA1 Message Date
Thomas Gelf
c6db0067ec Refactored Ido\EventHistoryQuery, now it's fully based on other subqueries.
* Added hostgroup filters
* Added aggregation columns
2013-09-17 10:54:21 +02:00
Thomas Gelf
67b54f42bb Powerful contact/contactgroup filters. Shall soon be replaced by subjoining
their Query classes
2013-09-17 10:42:28 +02:00
Thomas Gelf
258d7dbafb Did measurements, leads to new index suggestions 2013-09-17 10:38:14 +02:00
Thomas Gelf
cc4cf42d0e Some TODO 2013-09-17 10:38:14 +02:00
Thomas Gelf
4b62297b3e Searching for 'unhandled' is more interesting than 'handled', other small fixes 2013-09-17 10:38:14 +02:00
Thomas Gelf
344a99bbb8 service_hard_state is the current hard state 2013-09-17 10:38:14 +02:00
Thomas Gelf
b9805e579e A service is considered handled once the host is not UP 2013-09-17 10:38:14 +02:00
Thomas Gelf
781fb394ac More cleanup, timestamp fixes 2013-09-17 10:38:14 +02:00
Thomas Gelf
cd37f47d1b Last/next check are timestamps, give NULL when it doesn't make sense 2013-09-17 10:38:14 +02:00
Thomas Gelf
200731aedc Some more readability 2013-09-17 10:38:14 +02:00
Thomas Gelf
d5c86c5328 Readability, small fixes 2013-09-17 10:38:13 +02:00
Thomas Gelf
76ecc9184d hgo.name1 needs objects table to be around 2013-09-17 10:38:13 +02:00
Thomas Gelf
93e54fac62 Trying hard to get aggregations done right 2013-09-17 10:38:13 +02:00
Thomas Gelf
7e83099ef7 One more thing TODO 2013-09-17 10:38:13 +02:00
Thomas Gelf
3cd947ab29 A bunch of aggregating columns are interesting once joined with services 2013-09-17 10:36:05 +02:00
Thomas Gelf
86248d7bcb hostgroup. Without the 's'. And case insensitive 2013-09-17 10:36:05 +02:00
Thomas Gelf
6d27b688fe Added hostgroups column alias. Not sure about the 's' 2013-09-17 10:36:05 +02:00
Thomas Gelf
eaaa7205c9 Have been using former namespace, fixed 2013-09-17 10:36:05 +02:00
Thomas Gelf
cf26e3b106 Ido\AllcontactsQuery joins contacts directly and through contactgroups 2013-09-17 10:36:04 +02:00
Thomas Gelf
d9f1c4678b Ido\ContactgroupQuery needs a conservative count approach 2013-09-17 10:36:04 +02:00
Thomas Gelf
521ef8cc47 Added a few columns to Ido\ContactgroupQuery, fixed joins 2013-09-16 17:02:30 +02:00
Thomas Gelf
23235e4513 Added a few columns to Ido/ContactQuery 2013-09-16 17:02:30 +02:00
Thomas Gelf
fbdfa7a59e StatehistoryQuery, initial commit 2013-09-16 17:02:30 +02:00
Thomas Gelf
07badc377e NotificationhistoryQuery, initial commit 2013-09-16 17:02:30 +02:00
Thomas Gelf
4330122221 DowntimestartQuery and DowntimeendQuery, initial commit 2013-09-16 17:02:30 +02:00
Thomas Gelf
eef5f6ae18 CommenthistoryQuery, initial commit 2013-09-16 17:02:30 +02:00
Thomas Gelf
d15481b643 Preparing base query before creating alias indexes.
* This allows the joinBaseTables functions to adjust columns in time
2013-09-16 17:02:30 +02:00
Thomas Gelf
bd983c7478 Default joinBaseTables implementation, can simplify simple queries 2013-09-16 17:02:30 +02:00
Thomas Gelf
f3eedd919f No more need for special treatment for some columns, as we can create filter* functions 2013-09-16 17:02:30 +02:00
Thomas Gelf
830b178e37 Fixed hardcoded default columns 2013-09-16 17:02:29 +02:00
Thomas Gelf
1c2142be27 Prepared filter support for aggregated columns (where VS having) 2013-09-16 17:02:29 +02:00
Thomas Gelf
df07735e9a Prepared more Oracle-specific id-columns 2013-09-16 17:01:47 +02:00
Thomas Gelf
d44c15eea0 Filter handling cleanup and small improvements:
* a pipe (|) is now accepted as OR
* improved readability
* prepared for splitting logic - most of this could be backend-agnostic
* greater / less then is now possible
2013-09-16 17:01:47 +02:00
Thomas Gelf
5467950e79 Shortcut for creating subqueries 2013-09-16 17:01:47 +02:00
Eric Lippmann
a5908c9553 CS: Replace multiple empty lines with one
find application/ library/Icinga/ test/ modules/ -name *.php | xargs sed -i '/^$/N;/^\n$/D'
2013-09-04 18:36:10 +02:00
Eric Lippmann
35fd9fd391 CS: Remove whitespaces at end of line
find application/ library/ test/ modules/ -name *.php | xargs sed -i 's/\s\+$//'
2013-09-04 18:27:16 +02:00
Eric Lippmann
1b858cbdb4 Monitoring: Fix remaining usages of namespace Monitoring without Icinga\Module prefix
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
8a062ff3e5 Fix tests after renaming the namespace
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
c86874d4ba Rename namespace Monitoring to Icingæ\Module\Monitoring
refs #4586
2013-09-04 11:21:11 +02:00
Jannis Moßhammer
17c1e5a449 Add tests, move BaseFormTest away from modules/monitoring
refs #3777
2013-08-21 14:18:53 +02:00
Eric Lippmann
83fb198cd2 CS: Fix violations in MonitoringProperties, NotificationView and StatusQuery
refs #4187
2013-08-16 16:32:31 +02:00
Eric Lippmann
e5f3a063fb NotificationQuery: Fix PostgreSQL icompatibility
refs #4187
2013-08-16 16:23:15 +02:00
Eric Lippmann
f4b8b369a8 StatusQuery: Use pipes as concat
PostgreSQL does not support CONCAT()

refs #4187
2013-08-16 16:23:15 +02:00
Johannes Meyer
f89d641b06 Add notification queries and display notification details
The notification queries to fetch all required details are now implemented
and are used to display data in the overview. Still missing is the host/service
detail popup and some quicklinks. (Contact, Notification command)

refs #4187
2013-08-16 16:23:14 +02:00
Johannes Meyer
3c2122515a Basic structure for the notification overview
refs #4187
2013-08-16 16:23:14 +02:00
Eric Lippmann
290c8c5225 CC: Add newline to end of file where missing
Following command was used:
    $ find application/ library/Icinga/ modules/ -name *.php | xargs sed -i -e :a -e '/./,$!d;/^\n*$/{$d;N;};/\n$/ba;$a\'
2013-08-07 10:27:50 +02:00
Jannis Moßhammer
2091f63c3b Implement first commands, fix obsessing state
refs #4441
2013-08-06 09:27:37 +02:00
Matthias Jentsch
e47954b471 dd downtime overview
Add the downtime overview view, add the downtimes controller action, fix issues
with the the DowntimeQuery and add the new fields to the DowntimeView. Fix
issues in the ShowController that occur due to the changes in the DowntimeQuery.

refs #4188
2013-08-02 14:48:16 +02:00
Jannis Mosshammer
e8204f4755 Merge branch 'feature/service-detail-view-4181' of ssh://git.icinga.org/icinga2-web
Conflicts:
	library/Icinga/Application/Logger.php
	library/Icinga/Application/Web.php
	library/Icinga/Authentication/Backend/LdapUserBackend.php
	library/Icinga/Authentication/Credentials.php
	library/Icinga/Authentication/Manager.php
	library/Icinga/Authentication/PhpSession.php
	library/Icinga/Authentication/Session.php
	library/Icinga/Authentication/User.php
	library/Icinga/Authentication/UserBackend.php
	library/Icinga/Backend/AbstractBackend.php
	library/Icinga/Backend/DataView/ObjectRemappingView.php
	library/Icinga/Backend/Query.php
	library/Icinga/Backend/Statusdat/DataView/StatusdatHostView.php
	library/Icinga/Backend/Statusdat/HostgroupsummaryQuery.php
	library/Icinga/Backend/Statusdat/HostlistQuery.php
	library/Icinga/Backend/Statusdat/ServicegroupsummaryQuery.php
	library/Icinga/Backend/Statusdat/ServicelistQuery.php
	library/Icinga/Exception/ConfigurationError.php
	library/Icinga/Exception/MissingParameterException.php
	library/Icinga/Exception/NotImplementedError.php
	library/Icinga/Exception/ProgrammingError.php
	library/Icinga/Exception/SystemPermissionException.php
	library/Icinga/Protocol/AbstractQuery.php
	library/Icinga/Protocol/Commandpipe/Acknowledgement.php
	library/Icinga/Protocol/Commandpipe/CommandPipe.php
	library/Icinga/Protocol/Commandpipe/Comment.php
	library/Icinga/Protocol/Commandpipe/Downtime.php
	library/Icinga/Protocol/Commandpipe/Exception/InvalidCommandException.php
	library/Icinga/Protocol/Commandpipe/IComment.php
	library/Icinga/Protocol/Commandpipe/PropertyModifier.php
	library/Icinga/Protocol/Ldap/Connection.php
	library/Icinga/Protocol/Ldap/Exception.php
	library/Icinga/Protocol/Ldap/LdapUtils.php
	library/Icinga/Protocol/Ldap/Node.php
	library/Icinga/Protocol/Ldap/Query.php
	library/Icinga/Protocol/Ldap/Root.php
	library/Icinga/Protocol/Statusdat/Exception/ParsingException.php
	library/Icinga/Protocol/Statusdat/IReader.php
	library/Icinga/Protocol/Statusdat/ObjectContainer.php
	library/Icinga/Protocol/Statusdat/Parser.php
	library/Icinga/Protocol/Statusdat/Query.php
	library/Icinga/Protocol/Statusdat/Query/Expression.php
	library/Icinga/Protocol/Statusdat/Query/Group.php
	library/Icinga/Protocol/Statusdat/Query/IQueryPart.php
	library/Icinga/Protocol/Statusdat/Reader.php
	library/Icinga/Protocol/Statusdat/RuntimeStateContainer.php
	library/Icinga/Protocol/Statusdat/View/AccessorStrategy.php
	library/Icinga/Web/ActionController.php
	library/Icinga/Web/Form.php
	library/Icinga/Web/Hook/Configuration/ConfigurationTab.php
	library/Icinga/Web/Hook/Configuration/ConfigurationTabBuilder.php
	library/Icinga/Web/Hook/Configuration/ConfigurationTabInterface.php
	library/Icinga/Web/Hook/Grapher.php
	library/Icinga/Web/Hook/Toptray.php
	library/Icinga/Web/ModuleActionController.php
	library/Icinga/Web/Notification.php
	library/Icinga/Web/Paginator/Adapter/QueryAdapter.php
	library/Icinga/Web/Paginator/ScrollingStyle/SlidingWithBorder.php
	library/Icinga/Web/Widget.php
	modules/monitoring/application/views/helpers/MonitoringCommands.php
	modules/monitoring/application/views/helpers/MonitoringFlags.php
	modules/monitoring/application/views/helpers/MonitoringProperties.php
	modules/monitoring/application/views/scripts/show/components/comments.phtml
	modules/monitoring/application/views/scripts/show/components/downtime.phtml
	modules/monitoring/application/views/scripts/show/components/flags.phtml
	modules/monitoring/application/views/scripts/show/components/properties.phtml
	modules/monitoring/application/views/scripts/show/header.phtml
	modules/monitoring/application/views/scripts/show/host.phtml
	modules/monitoring/application/views/scripts/show/service.phtml
	modules/monitoring/library/Monitoring/Backend/AbstractBackend.php
	modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php
	modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php
	modules/monitoring/library/Monitoring/Backend/Statusdat.php
	modules/monitoring/library/Monitoring/Backend/Statusdat/Criteria/Order.php
	modules/monitoring/library/Monitoring/Backend/Statusdat/DataView/StatusdatServiceView.php
	modules/monitoring/library/Monitoring/Backend/Statusdat/Query/GroupsummaryQuery.php
	modules/monitoring/library/Monitoring/Backend/Statusdat/Query/Query.php
	modules/monitoring/library/Monitoring/Command/Meta.php
	modules/monitoring/library/Monitoring/View/DowntimeView.php
	modules/monitoring/test/php/application/views/helpers/MonitoringCommandsTest.php
	modules/monitoring/test/php/application/views/helpers/MonitoringPropertiesTest.php
	modules/monitoring/test/php/library/Command/MetaTest.php
2013-07-23 16:33:07 +02:00
Marius Hein
1492245788 Service detail view: Template fixes
refs #4181
2013-07-23 14:03:32 +02:00