130 Commits

Author SHA1 Message Date
Sukhwinder Dhillon
3b04a0489e Replace class Backend use with MonitoringBackend and remove class Backend 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon
60756afa34 Replace MonitoringBackend::createBackend() with MonitoringBackend::instance() 2022-06-14 14:24:30 +02:00
Johannes Meyer
48e0f1bd1f PluginOutput: Transform newlines first and purify HTML afterwards
fixes #4686
2022-03-02 08:23:51 +01:00
Johannes Meyer
47922673fc PluginOutput: Don't "optimize" two subsequent newlines to one
fixes #4522
2021-11-02 09:00:21 +01:00
Johannes Meyer
e671324ddb tests: Don't use deprecated assertion assertRegExp() 2021-04-09 12:38:43 +02:00
Johannes Meyer
f27e872d90 tests: Don't make use of deprecated phpunit features 2021-04-09 12:38:43 +02:00
Johannes Meyer
cb87190138 tests: Add :void return type declarations 2021-04-09 12:38:43 +02:00
Johannes Meyer
e01f51ffc7 PluginOutput: Fix that subsequent escaped newlines are not transformed
fixes #4297
2021-02-15 11:23:36 +01:00
Johannes Meyer
eb69a249d3 PluginOutputTest: Fix case testMultilineHtmlOutput 2019-04-11 14:16:10 +02:00
Alexander A. Klimov
fff07144c3 Preserve <br>s in plugin output
refs #3662
2019-04-11 14:16:10 +02:00
Johannes Meyer
19231038a7 PluginOutput: Don't escape html entities twice
fixes #3707
2019-03-05 13:27:27 +01:00
Johannes Meyer
bb37d7e2f9 Introduce test ThresholdRangeTest
refs #1298
2018-05-07 14:01:39 +02:00
Johannes Meyer
273b0f2f94 PerfdataTest: Update case which explicitly checks thresholds for null
It's not important whether null or not, as long as it properly detects
that no threshold is set. Further tests specifically for ThresholdRange
should accommodate this case by verifying we don't detect any WARNING.

refs #1298
2018-05-03 16:07:30 +02:00
Markus Frosch
b0ecbe079f PluginOutput: Fix text splicing for status tags in HTML output
Trailing text was lost in processing.

Also add tests to check this behavior plus some basics.

fixes #3382
2018-03-07 15:59:14 +01:00
Markus Frosch
3d3b1cdf4f RestRequestTest: Fully qualify expected exception 2017-06-13 11:07:16 +02:00
Alexander A. Klimov
6d593620d6 Test RestRequest
refs #2674
2017-02-13 14:56:35 +01:00
Johannes Meyer
181e2ef05c Swag: Fix swag (aka a whole bunch of code style issues..) 2017-01-27 14:48:59 +01:00
Michael Friedrich
08a82daea3 Update to icinga.com
refs #2687
2017-01-18 12:04:43 +01:00
Eric Lippmann
6cf8c2ec93 Merge branch 'bugfix/zero-width-space-characters-may-destroy-links-in-plugin-output-11796'
fixes #11796
fxies #11737
2016-06-02 17:57:33 +02:00
Alexander A. Klimov
53d8278877 Add regression test for bug #11796 2016-05-20 14:07:00 +02:00
Alexander A. Klimov
06755ba778 Add regression test for bug #11728
refs #11728
2016-05-19 13:45:15 +02:00
Alexander A. Klimov
474803fee4 Change all license headers to only reflect a file's year of creation
refs #11000
2016-02-08 15:41:00 +01:00
Johannes Meyer
8db123ffa0 MacroTest: Remove obsolete tests
The macro resolver does not know anymore about customvars, just plain
object attributes, which are now covered by testFaultyMacros()
2015-10-15 17:22:47 +02:00
Johannes Meyer
92b0bfaca8 MacroTest: Fix outdated tests 2015-10-01 10:42:28 +02:00
Markus Frosch
a14f800d9e Add support for IPv6 address
refs #9645
2015-08-04 14:02:54 +02:00
Eric Lippmann
1a51368a76 Fix MacroTest
Pushing failing tests to the master is a mystery to me.

refs #6392
2015-05-28 16:08:21 +02:00
Matthias Jentsch
2572842aa4 Add unit test cases for the new macro syntax
refs #6392
2015-05-28 15:07:46 +02:00
Matthias Jentsch
60e5608b40 Rename ResolveMacroTest
refs #6392
2015-05-28 15:02:58 +02:00
Matthias Jentsch
37f58e55d8 Move macro resolcing functionality into separate class
Make macro resolving functionality available to all code, instead of depending on a view

resf #6392
2015-05-28 14:44:16 +02: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 338d067aba41dd6e9178cebec5433eecd614196e.
2015-02-03 16:16:26 +01:00
Eric Lippmann
338d067aba Add license header
fixes #7788
2015-02-03 15:51:04 +01:00
Johannes Meyer
5b1e9be316 Make command parameters with multiple lines work, again
fixes #6088
2014-12-18 15:41:35 +01:00
Johannes Meyer
7621f6642d Adjust usages of Icinga\Application\Config
refs #7147
2014-11-18 13:11:52 +01:00
Johannes Meyer
f8724c504b Use a subclass of Icinga\Application\Config to preset a module config
Implementing methods for just tests is discouraged
2014-11-06 10:07:57 +01:00
Johannes Meyer
c8bdb70d06 Remove command form tests
refs #5525
2014-09-09 09:27:04 +02:00
Johannes Meyer
c4d17a3509 Drop Zend_View_Helper_MonitoringProperties as it's not used anywhere 2014-09-03 10:27:24 +02:00
Marius Hein
6b6826f737 Bug7043Test: Fix test to run without ini configuration
fixes #7043
2014-09-01 15:53:32 +02:00
Marius Hein
160fc900d0 Backend: Set name if create default backend
fixes #7043
2014-09-01 14:46:06 +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 87a59675011a4cf284d8e44c4fb66042ad84c39f.

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
Thomas Gelf
51484ebf88 monitoring/Perfdata: ignore invalid min/max
key=23;0;0;0;0 and key=23;;;; lead to division by zero exceptions
This should fix this by ignoring empty strings for min/max (formerly
it got "converted" to float(0)) and also ignores min == max.

fixes #6828
2014-07-31 16:52:34 +02:00
Johannes Meyer
ec2d1daa6b Perfdata plugin should also have a knowledge about labels
Prior to this change the PerfdataSet only knew the labels of a performance
data value which prevented the Perfdata object from being used
individually.

refs #6515
2014-07-11 16:31:00 +02:00
Johannes Meyer
7eb0f3c472 Remove @codingStandardsIgnoreStart/-Stop annotations
refs #6091
2014-06-30 13:59:58 +02:00
Matthias Jentsch
85aed364b7 Fix typing error in 'threshold' 2014-06-25 15:02:04 +02:00
Matthias Jentsch
35a5431512 Revert "Refractor InlinePie and Perfdata helper"
This reverts commit f003c38abd969ac0a728749563727454cfc744f5.
2014-06-25 14:29:17 +02:00
Matthias Jentsch
f003c38abd Refractor InlinePie and Perfdata helper
Refractor InlinePie methods for better usability, fix several coding guideline
issues and fix some typos
2014-06-25 12:41:17 +02:00
Thomas Gelf
e3e6826d9d Icinga\Filter: remove 2014-06-17 13:26:57 +00:00