Commit graph

190 commits

Author SHA1 Message Date
Lord Hepipud
b95281a1d8 Check Commands will now return their Exit Code instead of exiting 2019-09-25 19:57:19 +02:00
Lord Hepipud
928602a2e6 Improved Check-Command config by adding a Base Command 2019-09-25 19:56:05 +02:00
Lord Hepipud
e8fb372546 Removed debug output for New-CheckCommand Cmdlet 2019-09-25 19:55:27 +02:00
Lord Hepipud
b6082745df Ensured custom_vars Variable Part is always identical 2019-09-25 19:30:02 +02:00
Lord Hepipud
632bb13d68 Fixed argument type of DisableTimeCache for EventLog check 2019-09-25 19:17:42 +02:00
Lord Hepipud
02bc344c20 Fixed issue on opening new check commands with default Editor 2019-09-19 16:22:05 +02:00
Lord Hepipud
2248e209a2 Added exception handling on creating cache files 2019-09-19 12:26:48 +02:00
Lord Hepipud
895e7f1631 Fixed missing EventLog Check input for count on value 2019-09-19 12:08:01 +02:00
Lord Hepipud
9c889d2210 Improved EventLog output 2019-09-19 11:56:32 +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
daa587e4d0 Fixed include message filtering on EventLog 2019-09-19 11:40:58 +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
5f4c788861 Added support to create and load cache data (prototype) 2019-09-17 17:17:38 +02:00
Lord Hepipud
d7eedea277 Added ability to force exception throwing 2019-09-17 17:12:06 +02:00
Lord Hepipud
13f7a7f0db Removed leading '_' from Total core 2019-09-16 18:07:57 +02:00
Lord Hepipud
41b10c69dd Improved performance for CPU plugin execution with digit detection 2019-09-16 18:02:41 +02:00
Lord Hepipud
5c683d95b2 Replaced 0 with space for digits and auto added spacing 2019-09-16 17:59:12 +02:00
Lord Hepipud
912f12dc1e Extended digit format with custom symbol 2019-09-16 17:53:29 +02:00
Lord Hepipud
1597b0afcf Added tool function to increase digit count
* Added new function Format-IcingaDigitCount to fill digits with leading 0 depending on missing values
* Added this function to CPU check
2019-09-16 17:32:25 +02:00
Lord Hepipud
4c0520aad0 Fixed default value for Verbose argument on Config generation 2019-09-16 17:02:13 +02:00
Lord Hepipud
f8b4472375 Fixed Verbose Argument duplication and DataList type 2019-09-16 16:31:15 +02:00
Lord Hepipud
8de1fdf8ef Improved Check-Command Config generation
* Switch arguments will now use boolean data types in Director
* Fixed an issue for Check Commands with integrated help, as arguments were not rendered properly
* Fixed an issue on datafield ID lookup and assigning
* Fixed an issue with assigning default values
2019-09-16 15:33:57 +02:00
Lord Hepipud
9cd97fbbd9 Fixed methods_execute variable naming 2019-09-16 12:06:05 +02:00
Lord Hepipud
d632b4ada0 Fixed invalid entry_value key name 2019-09-16 12:02:38 +02:00
Lord Hepipud
203537da2b Added note to restart service for permission changes 2019-09-16 11:27:09 +02:00
Lord Hepipud
49932ac17c Added first draft to create new CheckCommands over CLI 2019-09-14 16:14:24 +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
bcfd6b20b9 Merge branch 'testing' of https://github.com/LordHepipud/icinga-module-windows into testing 2019-09-13 17:04:09 +02:00
Lord Hepipud
7d4a5bef40 Fixed update list throwing unknown for 0 pending updates 2019-09-13 17:04:05 +02:00
Crited
e2b381e0c1 Fixed codestyling 2019-09-13 16:24:30 +02:00
Crited
33384531c6 Added missing description for documented plugin arguments 2019-09-13 16:23:34 +02:00
Crited
5888faef3d Fixed Codestyling 2019-09-13 16:01:46 +02:00
Crited
f17afed3d0 Added Description for Invoke-IcingaCheckService 2019-09-13 15:59:45 +02:00
Crited
2e960e3de9 Used Icinga-DSL for array-arg splitting 2019-09-13 15:59:22 +02:00
Crited
ed803b739e Changed Invoke-IcingaCheckService.psm1 to support multiple inputs 2019-09-13 14:29:38 +02:00
Crited
abe0992ccc Moved Get-IcingaCheckCommandConfig.psm1 to intended directory 2019-09-13 11:46:09 +02:00
Crited
e33b593ab0 Renamed Module; Code-Styling; Added Timestamp; Rewrote Commentbased Help; This is the supposedly last version that works (has worked) 2019-09-13 11:44:37 +02:00
Crited
61c23e49b9 Presumably finished Invoke-IcingaCheckCommandBasket Module 2019-09-13 09:22:27 +02:00
Crited
36093f302a Probably fixed ID issues 2019-09-13 08:18:31 +02:00
Crited
92bc0cc2d1 Changed DataLists to Array; Added Synopsis, Description, Examples, Parameter, Inputs, Outputs, Link in Comment-Based-Help; Fixed 'self-export'; Changed codestyling; Deleted unnecessary code; Deleted unnecessary comments and added new one as deemed necessary 2019-09-12 09:10:55 +02:00
Crited
428f98d32d Update CheckBasket 2019-09-11 16:07:52 +02:00
Crited
fc165c79af Pulled from testing, build basic IcingaCheckCommandBasket-Function 2019-09-11 15:08:30 +02:00
Lord Hepipud
20d9855364 Added Tool-Function to get Sha1 from String elements 2019-09-10 09:38:35 +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
2cf532d07e Added check for Windows Uptime 2019-08-20 17:02:58 +02:00
Lord Hepipud
a978a64c59 Added function to convert seconds to runtime 2019-08-20 17:01:20 +02:00
Lord Hepipud
7890b69e4c Extended Second conversion with Icinga threshold handling 2019-08-20 16:31:07 +02:00
Lord Hepipud
c37de3cfa1 Improved ConvertTo-Seconds Cmdlet 2019-08-20 15:09:43 +02:00
Lord Hepipud
eefa30df63 Added Pending Windows Update check 2019-08-19 18:14:29 +02:00
Lord Hepipud
2aff650c6d Improved organising for Pending Updates provider 2019-08-19 18:09:59 +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
47ac91608c Added error for missing argument on PerformanceCounters 2019-08-19 12:26:23 +02:00
Lord Hepipud
1edcec19a2 Added tool function to translate Icinga Args in PS Args 2019-08-19 12:14:02 +02:00
Lord Hepipud
6d2acd422d Improved Icinga Check User Plugin 2019-08-19 12:13:24 +02:00
Lord Hepipud
d8ffb04caf Added provider for logged in Windows users 2019-08-19 12:12:59 +02:00
Lord Hepipud
3b23cadf08 Improved code styling and small fixes for IcingaUsers 2019-08-19 12:12:11 +02:00
Niko Martini
01ebbaf085 WIP 2019-08-15 11:28:18 +02:00
Crited
5fd4838921 Added IcingaCheckUsers and Libraray for users 2019-07-26 13:01:51 +02:00
Niko Martini
3f646a29f2 List various MemoryUsage 2019-07-25 18:31:08 +02:00
Niko Martini
cb44cb81b3 List PerformanceCounter for Memory 2019-07-25 18:29:21 +02:00
Niko Martini
dac21673c1 Toolset for conversion 2019-07-25 18:16:33 +02:00
Niko Martini
4bda3003d3 Introduce new function for astoll 2019-07-25 17:48:19 +02:00
Niko Martini
3c15c73edb Fixed Code Styling 2019-07-25 16:19:38 +02:00
Niko Martini
bd418982fd Merge branch 'testing' of https://github.com/LordHepipud/icinga-module-windows into testing 2019-07-25 15:52:49 +02:00
Niko Martini
196ff3ba9b Fixed Code Styling 2019-07-25 15:51:31 +02:00
Lord Hepipud
d2b72d9496 Fixed $null code styling comparison 2019-07-24 17:21:10 +02:00
Lord Hepipud
75a5c32589 Merge branch 'testing' of https://github.com/LordHepipud/icinga-module-windows into testing 2019-07-24 17:20:02 +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
Crited
837fa32fc1 Added further options in ProcessCount-Check 2019-07-24 15:34:49 +02:00
Crited
6612fcd1aa added IcingaCheckProcessCount.psm1, modified Process-Provider to fit related Checks, deleted useless parameter in Checks 2019-07-24 15:02:58 +02:00
Lord Hepipud
c4bb5359a2 Removed not required arguments for Service check 2019-07-24 14:37:42 +02:00
Lord Hepipud
8b3fcaaa9c Updated Services Provider, Enums and Helper functions
* Added new function to get Service Name for Check output
* Added missing Service State enums
* Updated Service Status Code function to use existing Test-Numeric
* Update Service Check with new Cmdlets
2019-07-24 14:28:53 +02:00
Lord Hepipud
ac025da700 Merge branch 'testing' of https://github.com/LordHepipud/icinga-module-windows into testing 2019-07-24 13:13:31 +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
5840e0ca05 Fixed spacing for CPU error code enum 2019-07-24 12:44:49 +02:00
Lord Hepipud
63ef374223 Added Windows Uptime metadata to Windows provider 2019-07-24 12:44:02 +02:00
Crited
802f5b3205 Splitt into ConvertTo-ServiceStatusCode, to fit project structure, changed Free Space to Used Space 2019-07-24 11:44:33 +02:00
Crited
8cae29a79a Expanded upon lib/provider/services to support translated status values in Invoke-IcingaCheckService.psm1 2019-07-24 10:26:39 +02:00
Crited
0453398ca8 Added Icinga_ProviderServices, adjusted Invoke-IcingaCheckService accordingly 2019-07-24 10:01:34 +02:00
Crited
dcf6c86df8 Added Invoke-IcingaCheckFreePartition.psm1 2019-07-23 15:08:59 +02:00
Lord Hepipud
2f5f7ac1a1 Removed no longer required debug output 2019-07-23 12:21:45 +02:00
Lord Hepipud
291fc617b6 Merge branch 'testing' of https://github.com/LordHepipud/icinga-module-windows into testing 2019-07-23 11:42:20 +02:00
Lord Hepipud
09b9f23f7e Fixed check initialising for AddCheck() on Check Packages 2019-07-23 11:42:16 +02:00
Crited
96405fb5da Added FreeDiskSpace to Disk Provider, via Performance Counters 2019-07-23 10:50:58 +02:00
Lord Hepipud
ac838a1baa Fixed code spacing 2019-07-23 09:34:15 +02:00
Lord Hepipud
bfc62aa8ee Merge branch 'testing' of https://github.com/LordHepipud/icinga-module-windows into testing 2019-07-23 09:19:17 +02:00
Lord Hepipud
4774eb5723 Added first attempt for Bios Serial Number Check 2019-07-23 09:18:02 +02:00
Niko Martini
bed4efa4dc Fixed Code Styling 2019-07-23 09:16:43 +02:00
Niko Martini
f682384287 Fixed Code Styling 2019-07-23 08:03:32 +02:00
Lord Hepipud
8f3183941f Replaced Silent argument for verbose on check packages 2019-07-22 18:03:19 +02:00