1980 Commits

Author SHA1 Message Date
Eric Lippmann
068e07109b Monitoring/ListController: Operate on the `hostStatus' view instead of the query
The monitoring module's ListController should only operate on data views instead of queries.
Thus the applyRestrictions() method now expects a data view instead of a query. Further since
filters are subject to change the applyRestrictions() method now does nothing.

The `hostsAction()' no longer uses `DataView::fromRequest()' but selects the data view from
a monitoring backend. `DataView::fromRequest()' orders the underlying query which must be reworked
in the current scenario.
2014-05-07 09:40:23 +02:00
Eric Lippmann
cfdb695c94 Monitoring/ListController: Remove variable activeRowHref from view
The variable grapher activeRowHref is not being used anywhere.
2014-05-07 09:29:58 +02:00
Eric Lippmann
3afcf277bd Monitoring/ListController: Remove variable grapher from view
The variable grapher retrieved as first available grapher hook is not being
used anywhere.
2014-05-07 09:27:42 +02: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
Eric Lippmann
97d6feccb8 Data views: Expect a query instance instead of a backend 2014-05-06 18:34:01 +02:00
Eric Lippmann
c23e0c3782 Remove createBackend() method from the base controller
Refering to d389d8e we'll use Backend::createBackend() for accessing monitoring backends.
2014-05-06 18:24:42 +02:00
Thomas Gelf
d389d8e0f0 Re-establish Backend::createBackend
This partially reverts fcf7f7d6. The original intention was to have
no library code reading config. Moving code snippets to another lib
doesn't solve this. We need quick & easy access to a monitoring
backend, on CLI, in other modules and so forth. Duplicating so much
code again and again is not an option.

I prefer the former way of doing things unless we find a better
solution.
2014-05-06 18:23:22 +02:00
Johannes Meyer
2f911f75a1 Fix division by zero in Icinga\Util\Format
refs #6125
2014-05-06 08:32:42 +02:00
Johannes Meyer
dd3e406052 Merge branch 'bugfix/failsafe-perfdata-parser-5973'
fixes #5973
2014-05-05 16:18:11 +02:00
Johannes Meyer
c711e3405d Fix cli default log configuration and js-loader debug message 2014-05-05 16:17:21 +02:00
Johannes Meyer
0627d954ac Fix usages of Icinga\Module\Monitoring\Plugin\*
refs #5973
2014-05-05 16:16:45 +02:00
Johannes Meyer
3d88e720c4 Rewrite perfdata plugin classes
refs #5973
2014-05-05 16:15:49 +02:00
Johannes Meyer
d4502575d3 Fix filter test location 2014-05-05 16:15:26 +02:00
Thomas Gelf
6a1602a499 Exception messages should be single-line strings
fixes #6095
2014-05-02 11:19:35 +02:00
Marius Hein
6c698c1543 Tests: Remove Zend Controller Test from base test
fixes #6106
2014-05-02 09:46:01 +02:00
Marius Hein
6aaff6b399 IniWriter: Delete nested properties
fixes #5958
2014-05-02 09:26:17 +02:00
Marius Hein
c4e36ec467 Puppet: File resources.ini set replace to false
fixes #6016
2014-04-30 13:23:50 +02:00
Marius Hein
eeb399a4d4 Revert "Puppet: Change of icingaweb2 configuration deploy"
This reverts commit f98a39fd5a9ebd72c9ec499e3eff3b5e536df121.
2014-04-30 13:04:41 +02:00
Johannes Meyer
4e77ea2f88 Fix logging configuration form 2014-04-30 12:09:44 +02:00
Johannes Meyer
75c359bfb0 Merge branch 'bugfix/logging-configuration-6038'
fixes #6038
2014-04-30 12:01:48 +02:00
Johannes Meyer
a865d8874d Fix ResourceForm namespace
refs #6038
2014-04-30 11:59:40 +02:00
Johannes Meyer
4cf3044a53 Rename Icinga\Logger\Writer\StreamWriter to FileWriter
refs #6038
2014-04-30 11:59:22 +02:00
Johannes Meyer
0b3d3e9bb2 Adjust logging configuration to suit the new logger implementation
refs #6038
2014-04-30 11:33:36 +02:00
Johannes Meyer
a5faa8bf25 Fix ResourceForm
refs #6038
2014-04-30 10:16:20 +02:00
Johannes Meyer
f454fa0611 Enable logging and make the file resource definition using the new log syntax 2014-04-30 09:10:23 +02:00
Thomas Gelf
270181885c Fix Url error for emty baseUrl, less function calls 2014-04-29 12:27:19 +00:00
Gunnar Beutner
b7f4fa4a29 Fix deprecation warning in Perfdata.php
fixes #6076
2014-04-29 12:00:34 +02:00
Johannes Meyer
e2ba172a8e Make dashboard components using the ini writer class
fixes #5524
2014-04-29 11:30:53 +02:00
Matthias Jentsch
e1d8ad820e Fix include
refs #4788
2014-04-28 17:15:36 +02:00
Matthias Jentsch
085025ba7d Icingaweb shoul work without optional extensions when they are not used
When optional classes and php extensions like pgsql and additonal Zend-Pdos are
actually required by creating a new resource or authentication backend,
perform a check and display a warning instead of just throwing an exception.

refs #4788
2014-04-28 17:13:40 +02:00
Johannes Meyer
08260866df Fix navigating by anchor results in an empty detail view being opened
fixes #5871
2014-04-28 16:06:03 +02:00
Johannes Meyer
c27c0bdf6e Merge branch 'feature/test-refactoring-6011'
refs #6011
2014-04-28 14:07:41 +02:00
Johannes Meyer
98ca15d1fb Mark less important or non-testable code as skipped for code coverage
refs #6011
2014-04-28 14:06:41 +02:00
Johannes Meyer
1df56cbfb9 Fix errors in tests
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
07da92ee42 Rewrite test for Icinga\Web\Url and fix some bugs
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
729c33c3cf Add helpful documentation to Icinga\Web\ViewStream 2014-04-28 14:06:40 +02:00
Johannes Meyer
c5c375e72d Add test for Icinga\Web\MenuItem
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
290fe9eeb5 Rewrite test for Icinga\Web\Hook
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
2b15d35dec Rewrite test for Icinga\Web\Form
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
f20d459000 Rename test/php/library/Icinga/Application/Config to ConfigTest
refs 6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
87863d3212 Add test for Icinga\File\Csv
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
e8ed7c7166 Rewrite test for Icinga\Config\PreservingIniWriter
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
fe44f8ed7c Remove empty file library/Icinga/File/Csv/Query.php 2014-04-28 14:06:40 +02:00
Johannes Meyer
54a5e996bb Add test for Icinga/Logger/Writer/StreamWriter
refs #6011
2014-04-28 14:06:39 +02:00
Johannes Meyer
45d7864198 Refactor test for Icinga\Test\BaseTestCase
refs #6011
2014-04-28 14:06:39 +02:00
Johannes Meyer
c93159d287 Add test for Icinga\User\Preferences\Store\IniStore
refs #6011
2014-04-28 14:06:39 +02:00
Johannes Meyer
9efe71441a Add test for Icinga\User\Preferences\Store\DbStore
refs #6011
2014-04-28 14:06:39 +02:00
Johannes Meyer
d44aaeb8d7 Add test for Icinga\User\Preferences
refs #6011
2014-04-28 14:06:39 +02:00
Johannes Meyer
be410a685b Add test for Icinga\User
refs #6011
2014-04-28 14:06:39 +02:00
Johannes Meyer
e10193f570 Add test for Icinga\Util\DateTimeFactory
refs #6011
2014-04-28 14:06:39 +02:00