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
Thomas Gelf
a904ff51aa
monitoring/eventhistory: improve query performance
...
This takes care of timestamp columns, modifies queries in a way not
depending on db functions, filters are passed through to subqueries
for better performance.
2014-06-20 19:14:34 +02:00
Thomas Gelf
ecf84077e5
Ido\CommentQuery: add host/service shortcut column
2014-06-20 12:23:23 +02:00
Thomas Gelf
8185f8b8a9
Ido\EventHistoryQuery: fix it to fit new filters
...
Works for single objects, still some work required for "generic"
history.
2014-06-17 14:02:54 +00:00
Thomas Gelf
dd595a2ad3
Ido/EventHistoryQuery: obsolete raw_timestamp
...
This was never thought to be used in frontends. Frontend code ALWAYS
needs to work with unix timestamps, raw timestamps are used internally
(e.g. between View and Query) to achieve better search and sort
performance.
2014-06-17 12:47:02 +00:00
Thomas Gelf
dab90d6c4a
GroupsummaryQuery: distinct columns/desiredColumns
...
I guess this needs some more investigation, desiredColumns are the
ones the user asked for ([alias => ]column), with column being once
again an alias in the "real" query. Alias resolution used to work
better long time ago, we should reflect on this.
2014-06-17 12:42:50 +00:00
Thomas Gelf
027ef6ede3
Ido\Query\*historyQuery: subqueries join objects
...
Each of our history subqueries should be able to join main object
tables on their own for performance reasons.
2014-06-17 12:36:32 +00:00
Thomas Gelf
7cd696b31b
Data/queries: adjust to fit new filters
...
Slight changes to get our queries working with new filter implementation.
2014-06-17 12:34:02 +00:00
Thomas Gelf
4c76f5ab02
Ido/Query: small fixes
...
Replaced baseQuery in ContactGroupQuery, added short host/service
columns to CustomvarQuery.
2014-06-13 10:44:03 +00:00
Thomas Gelf
e1421c0d7e
Ido\StatusQuery: make sure performance killers...
...
...can no longer be reached. Column-ignorant uses still stumbled over
this. Left the code there as we should take a decision on how to approach
this.
2014-06-06 07:10:52 +00:00
Thomas Gelf
1c3ab74e80
IdoQuery: fit new DbQuery implementation
...
Just a bunch of small changes, more to come. Fixes customvar handling
and is now able to handle the new Filter implementation.
refs #6418
2014-06-06 06:57:28 +00:00
Thomas Gelf
f1e73c5fc5
Data\Db\DbQuery: forgot to rename once
...
refs #6418
2014-06-06 06:52:48 +00:00
Thomas Gelf
3adf7752c4
Data\Db\DbQuery: rename also in monitoring module
...
refs #6418
2014-06-06 06:51:11 +00:00
Thomas Gelf
bfe6a1593a
Merge remote-tracking branch 'origin/master' into feature/query-interfaces-6018
2014-06-06 05:32:54 +00:00
Thomas Gelf
7a0173e2fb
monitoring/IdoQuery:
...
IDO version is cached in a session namespace. This fails where you
are using multiple IDO backends with different versions. We still have
no backend-specific base class where we could handle this, so for now
I continue to do so in the IdoQuery.
This patch creates one namespace per Host/dbname combination.
2014-05-28 09:39:38 +00:00
Thomas Gelf
12b57c6d95
Merge remote-tracking branch 'origin/master' into feature/query-interfaces-6018
...
Conflicts:
modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactgroupQuery.php
modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php
modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php
modules/monitoring/library/Monitoring/Controller.php
2014-05-20 23:15:11 +00:00
Thomas Gelf
31fa794440
monitoring/ido: implement IDO version support
...
We want to make use of new IDO features without breaking compatibility.
This is a quickfix as otherwise we would currently break everything
below 1.10. Code contains a few TODOs as this needs improvement.
2014-05-20 20:36:39 +00:00
Michael Friedrich
9fbdb65a4b
Add check source to host/service details
...
refs #5814
2014-05-20 20:07:09 +02:00
Thomas Gelf
e6d80ae1f6
IDO Queries: performance quickfixes
...
Will be obsoleted by the new filter implementation, but for now it
helps a little bit
2014-05-20 13:27:58 +00:00
Thomas Gelf
820b6b7a8d
Data\BaseQuery: rename to Data\SimpleQuery
...
BaseQuery should no longer be abstract but be usable as is as soon as
we stripped ResultSet-specific tasks. As "Base" suggests something that
must be extended, the name no longer fits. So this is SimpleQuery right
now.
2014-05-07 11:55:35 +00:00
Eric Lippmann
d87788b9c1
Merge branch 'master' into feature/query-interfaces-6018
...
Conflicts:
modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactgroupQuery.php
2014-05-06 18:45:12 +02:00
Thomas Gelf
54175f98bf
Fix wrong contactgroup service column and make better use of MySQL indexes
2014-04-17 16:14:57 +00:00
Eric Lippmann
62e044d888
IdoQuery: Move resolveColumns() to the columns() function
...
Since the BaseQuery no longer allows passing the columns to select via
its the constructor, the columns are resolved when set by the
columns() function.
2014-04-16 10:06:44 +02:00
Eric Lippmann
eeadc17a6e
StatusQuery: Rename baseQuery to select
2014-04-15 18:12:56 +02:00
Eric Lippmann
734c329caa
StatusSummaryQuery: Rename baseQuery to select
2014-04-15 18:12:00 +02:00
Eric Lippmann
2ba1ef4793
StateHistorySummaryQuery: Rename baseQuery to select
2014-04-15 18:11:09 +02:00
Eric Lippmann
a30d1cdb2f
ServicegroupQuery: Rename baseQuery to select
2014-04-15 18:10:30 +02:00
Eric Lippmann
ac5edc153a
RuntimesummaryQuery: Rename baseQuery to select
2014-04-15 18:09:54 +02:00
Eric Lippmann
0adbb6a44e
NotificationQuery: Rename baseQuery to select
2014-04-15 18:09:08 +02:00
Eric Lippmann
687fa09f7c
NotificationhistoryQuery: Rename baseQuery to select
2014-04-15 18:07:34 +02:00
Eric Lippmann
cb812b59a8
HoststatusQuery: Rename baseQuery to select
2014-04-15 18:06:37 +02:00
Eric Lippmann
8b471e29e5
HostgroupQuery: Rename baseQuery to select
2014-04-15 18:02:03 +02:00
Eric Lippmann
32fa7b314c
GroupsummaryQuery: Rename baseQuery to select
2014-04-15 18:01:10 +02:00
Eric Lippmann
30e649eeb4
EventHistoryQuery: Rename baseQuery to select
2014-04-15 17:59:55 +02:00
Eric Lippmann
67ce376ef0
DowntimeQuery: Rename baseQuery to select
2014-04-15 17:58:06 +02:00
Eric Lippmann
64bee6a414
CustomvarQuery: Rename baseQuery to select
2014-04-15 17:57:12 +02:00
Eric Lippmann
22fa833836
ContactQuery: Rename baseQuery to select
2014-04-15 17:56:31 +02:00
Eric Lippmann
c2d633ac49
ContactgroupQuery: Rename baseQuery to select
2014-04-15 17:55:13 +02:00
Eric Lippmann
5caffa78e2
CommentQuery: Rename baseQuery to select
2014-04-15 17:53:07 +02:00
Johannes Meyer
b168cf878d
Fix type specification in DowntimestarthistoryQuery
...
refs #4190
2014-04-01 11:44:23 +02:00
Thomas Gelf
3b2272f825
Customvars are in customvariablestatus, "bugfix" in 1.10 has been reverted
2014-03-21 10:32:27 +00:00
Thomas Gelf
6466c768be
Just whitespace
2014-03-09 22:48:38 +01:00
Thomas Gelf
ad432217b2
Fix downtime scheduled start/end sort error
2014-03-09 22:35:33 +01:00
Thomas Gelf
bf66271e49
Still downtimes
2014-03-09 22:32:40 +01:00
Thomas Gelf
88859cb838
The next fat package: downtimes, everywhere
2014-03-09 21:58:01 +01:00
Thomas Gelf
2f61075260
More comment query cleanup and fix a typo
2014-03-09 20:05:59 +01:00
Thomas Gelf
63fd074a4f
Comments are still messy, clean up and fix adding / removing them
2014-03-09 19:29:23 +01:00
Thomas Gelf
a87925bbf6
Refactored notifications for object detail view
2014-03-08 21:02:22 +01:00
Thomas Gelf
740df4ccac
Cleaning up object downtimes. What a mess... :(
2014-03-08 18:28:19 +01:00
Johannes Meyer
e8a626e896
Change the way how boxed status information is presented to the user
2014-03-07 16:43:41 +01:00
Alexander Klimov
45520fe2d6
Remove hardcoded filter in state history summary query
2014-03-07 15:04:43 +01:00
Johannes Meyer
067fa02263
Split and merge status summary in tactical overview
2014-03-07 08:59:20 +01:00
Michael Friedrich
91c15747cf
Notification History: Fix contactnotificationmethods left join.
2014-03-06 22:18:32 +01:00
Johannes Meyer
1b503fd187
Clean up StatusSummary query
2014-03-06 14:29:50 +01:00
Alexander Klimov
b410ebeed6
Remove unnecessary spaces at end of line
2014-03-06 13:08:11 +01:00
Thomas Gelf
864dc15514
Icinga Core 2 doesn't fill notification commands
2014-03-06 11:05:53 +00:00
Thomas Gelf
7d22994d80
Dudes need better error messages
2014-03-04 14:08:44 +00:00
Thomas Gelf
edb7ea076e
Prevent CommentQuery from doing nonsense Joins, may break some views
2014-03-04 12:43:44 +00:00
Thomas Gelf
9cc3bb75ca
Improved severity column, still subject to changes
2014-03-04 12:33:54 +00:00
Thomas Gelf
f5d796255c
Allow Ido Queries to define conflicts
2014-03-04 12:31:20 +00:00
Thomas Gelf
c2213e7b71
Merge branch 'feature/tactical-overview-3782' into feature/master-1
2014-03-04 10:26:51 +00:00
Thomas Gelf
57caacb93f
Merge branch 'feature/fanzzzy-5481' into feature/master-1
...
Conflicts:
application/controllers/AuthenticationController.php
application/controllers/ErrorController.php
application/views/scripts/authentication/login.phtml
library/Icinga/Application/ApplicationBootstrap.php
library/Icinga/Web/Controller/ActionController.php
library/Icinga/Web/Hook.php
library/Icinga/Web/Widget/Dashboard.php
2014-03-04 09:42:25 +00:00
Eric Lippmann
07d04628cf
Merge branch 'feature/installation-and-configuration-cleanup-5638'
...
Conflicts:
config/config.ini.in
library/Icinga/Application/ApplicationBootstrap.php
library/Icinga/Application/Cli.php
library/Icinga/Application/EmbeddedWeb.php
library/Icinga/Application/Logger.php
library/Icinga/Application/Modules/Manager.php
library/Icinga/Application/Web.php
library/Icinga/Authentication/Backend/DbUserBackend.php
library/Icinga/Authentication/Manager.php
library/Icinga/User/Preferences/IniStore.php
test/php/library/Icinga/Application/LoggerTest.php
2014-03-03 19:03:39 +01:00
Johannes Meyer
ba45d64891
Extend StatusSummaryQuery and its view
...
refs #3782
2014-03-03 09:03:07 +01:00
Alexander Klimov
0e0672e0c1
Add tactical overview (WIP)
...
refs #3782
2014-02-28 08:48:34 +01:00
Johannes Meyer
3555e66018
Make IcingaWeb using the new log wrapper
...
refs #5683
2014-02-26 11:19:52 +01:00
Thomas Gelf
7ff4f55737
Quick & dirty proposal for new grouped history overviews
2014-02-21 14:05:28 +00:00
Thomas Gelf
55df4831d7
Monitoring backends are not allowed to return non-unixtime timestamps
2014-02-21 14:03:50 +00:00
Thomas Gelf
249018808b
Added missing columns to the groupsummary queries
2014-02-21 14:03:49 +00:00
Johannes Meyer
c89f3b6140
Add filter functionality to eventhistory view and fix default order direction
...
refs #5589
2014-02-21 12:59:32 +01:00
Markus Frosch
971a87c608
Fixed executable flags on normal files.
...
Refs #5040
2014-02-18 09:42:13 +01:00
Johannes Meyer
de546858c2
Add missing fetch routine for customvars in AbstractObject
...
refs #4490
2014-01-31 15:57:53 +01:00
Eric Lippmann
c9db103384
Monitoring/Statusdat: Fix filter by handled/unhandled
...
refs #3801
2013-10-25 13:52:51 +02:00
Eric Lippmann
4e9e5ca2dc
Monitoring/Ido/Service Status: Add unhandled, handled and problems columns
2013-10-23 15:13:02 +02:00
Eric Lippmann
ca1d50ae53
Rename Icinga 2 Web to Icinga Web 2
2013-10-23 15:11:06 +02:00
Eric Lippmann
46569bad32
Monitoring: Fix group and state summaries for IDO and Stadusdat
2013-10-22 15:11:07 +02:00
Eric Lippmann
c5bed8ad00
Monitoring: Add host and service unhandled column; remove s from host- and servicegroups
2013-10-22 15:11:07 +02:00
Thomas Gelf
b1ba67bca9
Bugfix: in_downtime for pending services
2013-10-22 12:22:20 +00:00
Jannis Moßhammer
513b50dba5
Fix downtime query and schedule downtime
2013-10-20 16:11:39 +02:00
Eric Lippmann
36e9cdb549
Monitoring/register: Add status summary to the top bar
2013-10-20 16:08:53 +02:00
Jannis Moßhammer
278f975c48
Fix downtime query and schedule downtime
2013-10-20 16:00:56 +02:00
Jannis Moßhammer
f3bbf09bae
Status.dat query fixes and documentation after rebase
...
refs #3801
2013-10-20 15:16:44 +02:00
Jannis Moßhammer
f350011028
Add Status.dat backend
...
refs #3801
2013-10-20 15:16:44 +02:00
Marius Hein
5a1a738ce7
Add form to configure objects
...
refs #4924
2013-10-20 13:15:11 +02:00
Eric Lippmann
652df9fd66
Monitoring/Downtimes: Wrap information in a two column view
2013-10-19 17:24:28 +02:00
Eric Lippmann
d9afd06701
Monitoring/Summaries: Fix summary query wrest handled and unhandled
2013-10-19 17:22:25 +02:00
Eric Lippmann
06158aa4ea
Monitoring/Notifications: Wrap information in a two column view
2013-10-19 13:13:56 +02:00
Matthias Jentsch
8c416a51ce
Add views and behaviour to MultiController
...
Add views for every possible action, fix some bugs in the JavaScript multi selection,
make selection hrefs in the list controllers unique to be able to handle the selection
properly
refs #3788
2013-10-18 16:44:02 +02:00
Marius Hein
f6d16bb7d6
Change base class for queries
...
refs #4189
2013-10-18 11:38:28 +02:00
Marius Hein
c805550662
Performance overview
...
resolves #4189
resolves #4136
2013-10-18 11:32:53 +02:00
Jannis Moßhammer
6095a71a8d
CS Fixes
...
refs #4868
2013-10-17 21:40:02 +02:00
Jannis Moßhammer
3df8cacea8
Fix GroupSummary Base class
...
refs #3801
2013-10-17 19:55:00 +02:00
Jannis Moßhammer
c034a5eff8
Fix tests and a few member access issues
...
refs #3801
2013-10-17 19:55:00 +02:00
Jannis Moßhammer
44be5e85da
Refactoring and Query and IDO code,
...
the Monitoring/View code was completly dropped in favor of
the DataView implementations, as new Backends otherwise
would require to implement two seperate query logics
refs #3801
2013-10-17 19:54:58 +02:00
Jannis Moßhammer
d33cec78de
Semantic search implementation
...
- Only implemented for hosts as an example
- URL behaviour still has to be normalized
refs #4469
2013-10-17 19:52:52 +02:00
Jannis Moßhammer
dac61eda19
Implement Filter to IDO Sql parser
...
refs #4469
2013-10-17 19:52:25 +02:00
Jannis Moßhammer
24da98be83
Implement base filter library and tests
...
refs #4469
2013-10-17 19:52:25 +02:00
Eric Lippmann
74624601f7
Monitoring/History: Fix grouping w/ PostgreSQL
...
refs #4765
2013-10-17 16:18:34 +02:00
Eric Lippmann
bb8cad2a85
Add event history list view (WIP)
...
refs #4765
2013-10-17 16:18:34 +02:00
Eric Lippmann
a730713c0a
Add sort control to hostgroup summary and fix sort rules for the generic group summary
...
refs #4185
2013-10-15 15:33:53 +02:00
Eric Lippmann
103a4dbe91
Service Status: Fix filter by hostgroup throwing an exception
...
fixes #4747
2013-10-15 15:29:54 +02:00
Eric Lippmann
f8938b34a4
Add yet hidden hostgroup summary w/ hostgroup overview rendered to detail
...
refs #4186
refs #4184
2013-10-15 15:13:49 +02:00
Eric Lippmann
2291e73c4c
Servicegroup Summary: Add sort control
...
refs #4185
2013-10-15 15:13:48 +02:00
Eric Lippmann
1f571589de
Add yet hidden servicegroup summary w/ servicegroup overview rendered to detail
...
refs #4185
refs #4183
2013-10-15 15:13:48 +02:00
Marius Hein
7e396fdf3f
Implement hosts view
...
refs #4824
2013-10-14 13:02:41 +02:00
Marius Hein
1eef471bc2
Comment overview: Basic implementation
...
refs #4714
2013-10-09 09:35:32 +02:00
Matthias Jentsch
5d4533a6ad
Add contact and contactgroup views
...
Create the new views, extend backend queries to fetch timeperiods and add
navigation bar entries
refs #4713
2013-10-09 09:32:21 +02:00
Eric Lippmann
a42668edb8
Fix tests
...
refs #4663
2013-10-09 09:20:17 +02:00
Eric Lippmann
18bd1c3221
List service event history when showing a service
...
refs #4663
2013-10-09 09:20:17 +02:00
Eric Lippmann
b89d61add3
Monitoring: Refactor data views (WIP)
...
refs #4663
2013-10-09 09:20:16 +02:00
Eric Lippmann
24f64e6d30
Fix conflicts from rebase, using inet_aton with pgsql, PHP strict standards violations, CS compliance
...
refs #4255
2013-09-17 15:12:18 +02:00
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
Marius Hein
8d3ff94696
Remove php strict errors
...
refs #4448
2013-07-23 12:18:27 +02:00
Jannis Moßhammer
4ededd5179
Add servicegroup and icon image to service overview
...
Add icon images for hosts and services, notes and action url
for hosts
refs #4181
2013-07-22 17:10:43 +02:00
Jannis Moßhammer
a0839ea0da
Add service detail view
...
refs #4181
2013-07-22 16:03:36 +02:00
Jannis Moßhammer
5e4adcfea2
Add Service overview and fixes for Statusdat
...
The service overview required a few fixes for issues that
occured because the StatusDat Query class now inherits from
Data/AbstractQuery.
refs #4178
2013-07-19 17:45:51 +02:00
Jannis Moßhammer
5827cb37cb
Fix statusdat tests and implementation
...
After moving StatusDat to monitoring/Backends and changing the
inheritance to Library/Icinga/Data, a few changes must be reflected in the tests:
- Move tests to monitoring module
- Change $this->backend references in StatusDat Queries to $this->ds
- Added LibraryLoader to ease requiring of libaries (to be discussed)
refs #4417
refs #4179
2013-07-19 11:36:05 +02:00
Jannis Moßhammer
cea7cdbcaf
Move Statusdat to backend, remove old backend from library
...
Except for statusdat, the library/Icinga/Backend classes were unused
refs #4417
refs #4179
2013-07-18 17:20:12 +02:00
Jannis Moßhammer
2f79879a2e
Add preliminary subquery based comment and service problem fetch
...
The serviceproblems and host comment indicator are currently fetched
using subqueries (as this doesn't affect the group by).
refs #4179
2013-07-16 16:16:56 +02:00
Jannis Moßhammer
c1860e7d5d
Merge branch 'master' of ssh://git.icinga.org/icinga2-web into feature/host-overview--4179
...
Conflicts:
modules/monitoring/application/controllers/ListController.php
modules/monitoring/application/controllers/ShowController.php
modules/monitoring/library/Monitoring/Backend/AbstractBackend.php
2013-07-15 13:52:26 +02:00
Jannis Moßhammer
705127a95e
Make sql-queries more standard compliant
...
The connection now uses ONLY_FULL_GROUP_BY when connecting and
also forces ANSI SQL, this is reflected in the query codebase.
Also the comment count fields are added in this commit.
refs #4179
2013-07-15 13:21:48 +02:00
Marius Hein
6742696e09
Autoloader: Rename module namespace
2013-07-15 12:16:14 +02:00
Jannis Moßhammer
b045650a19
Merge branch 'master' of ssh://git.icinga.org/icinga2-web into feature/host-overview--4179
...
Conflicts:
application/layouts/scripts/layout.phtml
modules/monitoring/application/controllers/ListController.php
modules/monitoring/application/controllers/ShowController.php
modules/monitoring/application/views/scripts/list/hosts.phtml
modules/monitoring/application/views/scripts/show/components/comments.phtml
modules/monitoring/application/views/scripts/show/components/contacts.phtml
modules/monitoring/application/views/scripts/show/components/customvars.phtml
modules/monitoring/application/views/scripts/show/host.phtml
modules/monitoring/library/Monitoring/Backend/AbstractBackend.php
modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php
2013-07-12 15:55:31 +02:00
Jannis Moßhammer
30040eaa1b
Add Host detail to hostoverview
...
This is merge to prevent the host-overview nad
host-detail branch from diverging too much
refs #4179
Conflicts:
application/views/helpers/TimeSince.php
modules/monitoring/application/controllers/ShowController.php
modules/monitoring/application/views/scripts/show/components/comments.phtml
modules/monitoring/application/views/scripts/show/header.phtml
modules/monitoring/application/views/scripts/show/host.phtml
modules/monitoring/library/Monitoring/Backend/AbstractBackend.php
modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php
public/css/base.less
public/css/components/details.less
2013-07-12 15:12:26 +02:00
Eric Lippmann
d871b3c287
Update the monitoring module
2013-07-12 14:33:17 +02:00
Marius Hein
1da7ea9c36
Host detail view: Add object properties
...
Add property component and helper which output all information
about an object (host or service).
refs #4182
2013-07-08 16:12:47 +02:00
Marius Hein
e817b9b790
Host detail view
...
Add downtime sub component.
refs #4182
2013-07-08 16:12:47 +02:00
Marius Hein
f455b32464
Host detail view
...
Add flags container to detail view
refs #4182
2013-07-08 16:12:47 +02:00
Marius Hein
ffc1a2b43f
Host detail view
...
Fix psr, adapt output for layouting, add fields to adapt original
views from icinga.
refs #4182
2013-07-08 16:12:47 +02:00
Marius Hein
a0f96379a9
Host detail view
...
Fix psr, adapt output for layouting, add fields to adapt original
views from icinga.
refs #4182
2013-07-02 16:00:41 +02:00
Eric Lippmann
1e9fa28433
Add the monitoring module from the incubator
2013-06-28 09:11:12 +02:00