Commit graph

228 commits

Author SHA1 Message Date
Lord Hepipud
317c42daef Added SecureString convertion functions 2019-10-17 09:57:16 +02:00
Lord Hepipud
64410ea00a Improved Agent Install Wizard for global zone config 2019-10-17 08:44:48 +02:00
Lord Hepipud
392ca62038 Fixed duplicate '__' in Perf Data output 2019-10-07 16:30:55 +02:00
Lord Hepipud
a8d8269599 Added helper function to test for administrative shell 2019-10-07 00:06:15 +02:00
Lord Hepipud
843359d64b Added proper support for custom plugins / lib elements 2019-10-07 00:04:30 +02:00
Lord Hepipud
1f15eee19b Added Performance Counter Check Command 2019-10-06 20:16:05 +02:00
Lord Hepipud
22d0ed33b5 Improved code styling 2019-10-06 18:06:41 +02:00
Lord Hepipud
f41b029afa Added Cmdlet to update registered Service Check config 2019-10-06 17:10:39 +02:00
Lord Hepipud
b6a1d91d78 Added Cmdlets to talk to Icinga Director Self-Service API 2019-10-06 16:56:59 +02:00
Lord Hepipud
09a681609d Added help funtion to test for PSObjects members 2019-10-06 16:56:24 +02:00
Lord Hepipud
993defec04 Fixed error on removing hashtable cache content 2019-10-06 16:07:12 +02:00
Lord Hepipud
04af3a8503 Improved stability for service check execution daemon 2019-10-06 10:48:12 +02:00
Lord Hepipud
7e23ea76df Fixed crash on check execution while running in daemon mode 2019-10-06 10:46:11 +02:00
Lord Hepipud
0e1940325a Fixed flushing of not required cached entries 2019-10-05 22:32:44 +02:00
Lord Hepipud
1c3f7bd73e Executed checks will now store their value on daemon run within cache 2019-10-05 22:08:19 +02:00
Lord Hepipud
921dd8074b Added support for background daemon and check execution 2019-10-05 22:07:02 +02:00
Lord Hepipud
ae978b1d7c Added support to remove registered service checks 2019-10-05 22:06:10 +02:00
Lord Hepipud
084453e722 Added support to register checks to run in background 2019-10-05 22:02:17 +02:00
Lord Hepipud
6d15aa47a0 Added support for check output stored differently on daemon execution 2019-10-05 22:01:15 +02:00
Lord Hepipud
a2afbbe5fc Fixed CheckCommand callback to fetch executed command 2019-10-05 21:59:37 +02:00
Lord Hepipud
16f5c5fe13 Added support and management of threads 2019-10-05 21:59:03 +02:00
Lord Hepipud
7150fd1236 Added support to manage framework config 2019-10-05 21:56:23 +02:00
Lord Hepipud
298ad37c83 Added helper functions for Arrays and Hashtables 2019-10-05 21:51:39 +02:00
Lord Hepipud
3e98e659bb Fixed duplicate Performance Data output 2019-10-05 21:50:49 +02:00
Lord Hepipud
d722ae9932 Improved constructing of Performance Data 2019-10-05 21:50:13 +02:00
Lord Hepipud
af8b896303 Added first beta for CLI guided install wizard for the Agent 2019-09-30 00:35:29 +02:00
Lord Hepipud
6c85fc6f8c Added missing tool function to start processes 2019-09-30 00:34:01 +02:00
Lord Hepipud
b0875a6a2b Improved output while trying to enable/disable features 2019-09-30 00:33:17 +02:00
Lord Hepipud
9bd709f0da Changed AllowUpdate type for easier programmable use on Agent installation 2019-09-30 00:32:45 +02:00
Lord Hepipud
411cfec4d4 Fixed code styling 2019-09-29 23:02:00 +02:00
Lord Hepipud
25dc0031b0 Added Icinga Agent management Cmdlets 2019-09-29 18:25:40 +02:00
Lord Hepipud
63a2054aa3 Added tool function to split IP and Port from strings 2019-09-29 18:18:31 +02:00
Lord Hepipud
460beb2d4f Added tool function to get Unix Time 2019-09-28 21:47:44 +02:00
Lord Hepipud
13a54bd117 Prepared check plugin and perf-data output for daemon integration 2019-09-28 21:45:59 +02:00
Lord Hepipud
1c0844e5e7 Added more details for new Check Plugin Command as starting point 2019-09-25 20:18:27 +02:00
Lord Hepipud
59236ee0ec Added exit statement for command execution 2019-09-25 20:02:42 +02:00
Lord Hepipud
95cfaf4638 Added Service User to Service provider for each service 2019-09-25 19:58:37 +02:00
Lord Hepipud
bbaca8d45b Fixed code styling 2019-09-25 19:57:31 +02:00
Lord Hepipud
e105136b25 Check Commands will now return their Exit Code instead of exiting 2019-09-25 19:57:19 +02:00
Lord Hepipud
98c5704c16 Improved Check-Command config by adding a Base Command 2019-09-25 19:56:05 +02:00
Lord Hepipud
9096a3d0f6 Removed debug output for New-CheckCommand Cmdlet 2019-09-25 19:55:27 +02:00
Lord Hepipud
b6e1d67d31 Ensured custom_vars Variable Part is always identical 2019-09-25 19:30:02 +02:00
Lord Hepipud
d8fdea903f Fixed argument type of DisableTimeCache for EventLog check 2019-09-25 19:17:42 +02:00
Lord Hepipud
0e92b47ffa Fixed issue on opening new check commands with default Editor 2019-09-19 16:22:05 +02:00
Lord Hepipud
f5d6f152ce Added exception handling on creating cache files 2019-09-19 12:26:48 +02:00
Lord Hepipud
d5e3e78cbe Fixed missing EventLog Check input for count on value 2019-09-19 12:08:01 +02:00
Lord Hepipud
67587940b9 Improved EventLog output 2019-09-19 11:56:32 +02:00
Lord Hepipud
290748e6dc Fixed a crash on checks with identical naming 2019-09-19 11:56:06 +02:00
Lord Hepipud
7903724376 Added support to hide CheckPackage check output but keep perf data 2019-09-19 11:55:39 +02:00
Lord Hepipud
4c3c867839 Fixed include message filtering on EventLog 2019-09-19 11:40:58 +02:00
Lord Hepipud
e4f3de9321 Added additional exception handling for EventLog Check 2019-09-18 12:42:20 +02:00
Lord Hepipud
2d9dae4b64 Added proper exception handling for Cache write failures 2019-09-17 17:56:56 +02:00
Lord Hepipud
dc65f8d3a7 Added EventLog Check Command and Provider 2019-09-17 17:24:39 +02:00
Lord Hepipud
4d3bdfd332 Added support to create and load cache data (prototype) 2019-09-17 17:17:38 +02:00
Lord Hepipud
2c04a1ff64 Added ability to force exception throwing 2019-09-17 17:12:06 +02:00
Lord Hepipud
17d8308e1f Removed leading '_' from Total core 2019-09-16 18:07:57 +02:00
Lord Hepipud
977ca3c37d Improved performance for CPU plugin execution with digit detection 2019-09-16 18:02:41 +02:00
Lord Hepipud
66d007f476 Replaced 0 with space for digits and auto added spacing 2019-09-16 17:59:12 +02:00
Lord Hepipud
c27df29aeb Extended digit format with custom symbol 2019-09-16 17:53:29 +02:00
Lord Hepipud
60e7a52986 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
eecf27782e Fixed default value for Verbose argument on Config generation 2019-09-16 17:02:13 +02:00
Lord Hepipud
d3a84d2e67 Fixed Verbose Argument duplication and DataList type 2019-09-16 16:31:15 +02:00
Lord Hepipud
fae69a3e69 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
516b915472 Fixed methods_execute variable naming 2019-09-16 12:06:05 +02:00
Lord Hepipud
10001cc84d Fixed invalid entry_value key name 2019-09-16 12:02:38 +02:00
Lord Hepipud
10fdea7660 Added note to restart service for permission changes 2019-09-16 11:27:09 +02:00
Lord Hepipud
f5269014b1 Added first draft to create new CheckCommands over CLI 2019-09-14 16:14:24 +02:00
Lord Hepipud
ccca2e591f Added missing exception definitions 2019-09-14 16:12:59 +02:00
Lord Hepipud
49dc3849e5 Improved exception handling on a more global state 2019-09-14 16:12:24 +02:00
Lord Hepipud
2c96a60e6d 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
7d5a1b786e Fixed arguments to properly work on all Windows environments 2019-09-13 19:16:19 +02:00
Lord Hepipud
2172ce2506 Added first draft for permission exception handling 2019-09-13 19:04:27 +02:00
Lord Hepipud
806e6909e2 Merge branch 'testing' of https://github.com/LordHepipud/icinga-module-windows into testing 2019-09-13 17:04:09 +02:00
Lord Hepipud
035fbb8d49 Fixed update list throwing unknown for 0 pending updates 2019-09-13 17:04:05 +02:00
Alexander Stoll
ae241b6109 Fixed codestyling 2019-09-13 16:24:30 +02:00
Alexander Stoll
d7c1e27f84 Added missing description for documented plugin arguments 2019-09-13 16:23:34 +02:00
Alexander Stoll
4b8f73afb0 Fixed Codestyling 2019-09-13 16:01:46 +02:00
Alexander Stoll
f0267ada70 Added Description for Invoke-IcingaCheckService 2019-09-13 15:59:45 +02:00
Alexander Stoll
3d854da218 Used Icinga-DSL for array-arg splitting 2019-09-13 15:59:22 +02:00
Alexander Stoll
c525ba8ed2 Changed Invoke-IcingaCheckService.psm1 to support multiple inputs 2019-09-13 14:29:38 +02:00
Alexander Stoll
b97329f20c Moved Get-IcingaCheckCommandConfig.psm1 to intended directory 2019-09-13 11:46:09 +02:00
Alexander Stoll
ddcc508a83 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
Alexander Stoll
ab9805e522 Presumably finished Invoke-IcingaCheckCommandBasket Module 2019-09-13 09:22:27 +02:00
Alexander Stoll
b38c9c8197 Probably fixed ID issues 2019-09-13 08:18:31 +02:00
Alexander Stoll
a60034a5fc 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
Alexander Stoll
7732b7942d Update CheckBasket 2019-09-11 16:07:52 +02:00
Alexander Stoll
22ca274be6 Pulled from testing, build basic IcingaCheckCommandBasket-Function 2019-09-11 15:08:30 +02:00
Lord Hepipud
f0b86ec346 Added Tool-Function to get Sha1 from String elements 2019-09-10 09:38:35 +02:00
Lord Hepipud
e2de8e6bfd Changed Plugin Text Status to allow colored Icinga Web 2 output 2019-08-22 10:43:00 +02:00
Lord Hepipud
f865a3d663 Added check for Windows Uptime 2019-08-20 17:02:58 +02:00
Lord Hepipud
f300348c6f Added function to convert seconds to runtime 2019-08-20 17:01:20 +02:00
Lord Hepipud
56a1126166 Extended Second conversion with Icinga threshold handling 2019-08-20 16:31:07 +02:00
Lord Hepipud
6a2e4b94e5 Improved ConvertTo-Seconds Cmdlet 2019-08-20 15:09:43 +02:00
Lord Hepipud
49b1beee5a Added Pending Windows Update check 2019-08-19 18:14:29 +02:00
Lord Hepipud
7426ce0be2 Improved organising for Pending Updates provider 2019-08-19 18:09:59 +02:00
Lord Hepipud
79b4518189 Fixed Plugin Output for multiple check packages 2019-08-19 18:08:50 +02:00
Lord Hepipud
73ce2aa8e5 Fixed missing argument of check object for InitCheck 2019-08-19 18:07:51 +02:00
Lord Hepipud
8de71663a3 Added error for missing argument on PerformanceCounters 2019-08-19 12:26:23 +02:00
Lord Hepipud
8f6b7ea3e7 Added tool function to translate Icinga Args in PS Args 2019-08-19 12:14:02 +02:00
Lord Hepipud
1f52a05289 Improved Icinga Check User Plugin 2019-08-19 12:13:24 +02:00