Commit graph

50 commits

Author SHA1 Message Date
Lord Hepipud
588c688701 Improves plugin check output and visibility 2019-10-30 18:17:39 +01:00
Lord Hepipud
a65b8bfc70 Add gigabyte (GB) unit for valid input 2019-10-30 17:52:53 +01:00
Lord Hepipud
d9f6d9d9e8 Improves performance data output by using lower case only 2019-10-30 17:51:58 +01:00
Lord Hepipud
69f71e1e26 Fixed crash on check execution while running in daemon mode 2019-10-06 10:46:11 +02:00
Lord Hepipud
3d5c7bc2b5 Executed checks will now store their value on daemon run within cache 2019-10-05 22:08:19 +02:00
Lord Hepipud
c1f38f729c Added support for check output stored differently on daemon execution 2019-10-05 22:01:15 +02:00
Lord Hepipud
85cd260561 Fixed CheckCommand callback to fetch executed command 2019-10-05 21:59:37 +02:00
Lord Hepipud
0d25d3a8dc Fixed duplicate Performance Data output 2019-10-05 21:50:49 +02:00
Lord Hepipud
bdae019171 Improved constructing of Performance Data 2019-10-05 21:50:13 +02:00
Lord Hepipud
84e36475b4 Prepared check plugin and perf-data output for daemon integration 2019-09-28 21:45:59 +02:00
Lord Hepipud
26e077ebd6 Fixed a crash on checks with identical naming 2019-09-19 11:56:06 +02:00
Lord Hepipud
41b7cfecc7 Added support to hide CheckPackage check output but keep perf data 2019-09-19 11:55:39 +02:00
Lord Hepipud
21953dd274 Added additional exception handling for EventLog Check 2019-09-18 12:42:20 +02:00
Lord Hepipud
b19f3a7168 Added proper exception handling for Cache write failures 2019-09-17 17:56:56 +02:00
Lord Hepipud
937614d797 Added EventLog Check Command and Provider 2019-09-17 17:24:39 +02:00
Lord Hepipud
d7eedea277 Added ability to force exception throwing 2019-09-17 17:12:06 +02:00
Lord Hepipud
203537da2b Added note to restart service for permission changes 2019-09-16 11:27:09 +02:00
Lord Hepipud
7d533513cb Added missing exception definitions 2019-09-14 16:12:59 +02:00
Lord Hepipud
96284f07a3 Improved exception handling on a more global state 2019-09-14 16:12:24 +02:00
Lord Hepipud
88c12ad240 Fixed and improved Perf Data handling
* Added proper sorting for checks, packages and check results by name
* Fixed perf data formating to be supported by Icinga 2
* Fixed label naming by removing all invalid characters
* Fixed displaying of values by rounding to 2 digits on floats
2019-09-13 20:44:15 +02:00
Lord Hepipud
e422cacb9d Fixed arguments to properly work on all Windows environments 2019-09-13 19:16:19 +02:00
Lord Hepipud
07efed717c Added first draft for permission exception handling 2019-09-13 19:04:27 +02:00
Lord Hepipud
4e6917e954 Changed Plugin Text Status to allow colored Icinga Web 2 output 2019-08-22 10:43:00 +02:00
Lord Hepipud
79606b70e5 Fixed Plugin Output for multiple check packages 2019-08-19 18:08:50 +02:00
Lord Hepipud
a506b0ae6a Fixed missing argument of check object for InitCheck 2019-08-19 18:07:51 +02:00
Lord Hepipud
d2b72d9496 Fixed $null code styling comparison 2019-07-24 17:21:10 +02:00
Lord Hepipud
c37a6cbfe2 Added support to translate check values to speaking values on output 2019-07-24 17:19:56 +02:00
Lord Hepipud
318966e392 Added support to check if objects exist on icinga checks 2019-07-24 17:10:16 +02:00
Lord Hepipud
da504cebe6 Removed no longer required variables from Check Package 2019-07-24 13:02:03 +02:00
Lord Hepipud
9b46d63fd0 Check Packages will now return Unknown if no check is assigned 2019-07-24 13:01:50 +02:00
Lord Hepipud
2f5f7ac1a1 Removed no longer required debug output 2019-07-23 12:21:45 +02:00
Lord Hepipud
09b9f23f7e Fixed check initialising for AddCheck() on Check Packages 2019-07-23 11:42:16 +02:00
Lord Hepipud
8f3183941f Replaced Silent argument for verbose on check packages 2019-07-22 18:03:19 +02:00
Lord Hepipud
596c5375b7 Fixed output for Check Results with checks only 2019-07-22 18:01:12 +02:00
Lord Hepipud
8ef18f97a9 Moved NoPerfData from switch to bool
This is required to properly pass the argument from a CheckCommand to the result handler
2019-07-22 13:16:14 +02:00
Lord Hepipud
850e8b4d3f Added support to add additional checks to package by code 2019-07-22 13:15:44 +02:00
Lord Hepipud
c82bdad7cc Fixed return values and NULL objects for OutOfRange comparison 2019-07-22 13:15:21 +02:00
Lord Hepipud
c5903114b2 Reworked entire Lib and Module loading
Modules are now automaticly loaded recursively for the spcified folder, allowing us to name modules into a "namespace", preventing our modules to interfear with possible installed modules.
2019-07-22 12:41:07 +02:00
Lord Hepipud
c2e3ff2131 Small code styling fix 2019-07-22 10:35:23 +02:00
Lord Hepipud
824dde7518 Fixed NoPerfData handling for Check Result function 2019-07-22 09:02:33 +02:00
Lord Hepipud
4392714da3 Added support to skip perfdata for single checks 2019-07-22 09:02:09 +02:00
Lord Hepipud
1093cd17dc Removed no longer required Output writing 2019-07-22 08:38:38 +02:00
Lord Hepipud
3078a0a937 Fixed spacing for multi-stack packages / checks in output 2019-07-22 08:37:54 +02:00
Lord Hepipud
9ffb9be1ad Renamed lib icinga\checkresult to icinga\plugin 2019-07-19 20:06:29 +02:00
Lord Hepipud
a32ec4f17c Removed perf data output for unknown return codes 2019-07-19 20:02:41 +02:00
Lord Hepipud
a05a41ca86 Added proper unknown handling for min / max operator config 2019-07-19 20:02:09 +02:00
Lord Hepipud
069ab8e4f8 Fixed broken plugin return code 2019-07-19 20:01:15 +02:00
Lord Hepipud
99825a4a57 Removed duplicate check outputs 2019-07-19 20:00:55 +02:00
Lord Hepipud
7fd9f35de0 Reworked Icinga Plugin Framework 2019-07-19 19:38:09 +02:00
Lord Hepipud
fafb102f0d First draft for Icinga Plugin Dev-Kit 2019-07-18 17:54:39 +02:00