Commit graph

203 commits

Author SHA1 Message Date
Alexander Aleksandrovič Klimov
d4ddf6734c Get-IcingaCheckCommandConfig: set vars.ifw_api_command in all commands
Useful in case someone renames the commands in Director.

Otherwise, in this case, all commands would be broken with ifw-api as vars.ifw_api_command defaults to $command.name$.
2023-07-25 15:15:25 +02:00
xGitJojo
be29d7dbd5
Feature: Adds option for formatted, colored console prints (#638)
* Adds feature for colored console prints
2023-07-24 23:28:22 +02:00
LordHepipud
4c7012b8da Fixes config generator custom variable too long message 2023-07-24 23:20:35 +02:00
Lord Hepipud
6de511c9fb Adds new plugin data provider handling and cpu data 2023-07-24 18:44:36 +02:00
Lord Hepipud
a11e6405d3 Adds docs and adds plain config writer for ifw-api support 2023-07-24 11:16:34 +02:00
Alexander A. Klimov
e17adcce54 Get-IcingaCheckCommandConfig: provide vars.ifw_api_arguments in each command
to properly support just importing the ifw-api command.
That command e.g. takes DSL/JSON arrays [], not PS ones @(). Similar with strings.
Therefore set vars.ifw_api_arguments as ifw-api expects.
2023-06-06 14:52:32 +02:00
Alexander Aleksandrovič Klimov
3aab2dd83a
Get-IcingaCheckCommandConfig: fix copy&paste error
Pass -NoLogo and -NoProfile once, not -NoLogo twice.
2023-06-01 12:11:30 +02:00
Lord Hepipud
7942e38d8c Fixes plugin failure for switch args with ThresholdInterval 2023-05-05 16:18:48 +02:00
Lord Hepipud
5135989169 Fixes config generator to not use set_if = true 2023-03-08 13:49:24 +01:00
Lord Hepipud
891be452c5 Fixes service exclude filter 2023-01-14 10:43:05 +01:00
Lord Hepipud
6b4263d440 Fixes unintended PS path change 2022-12-19 14:06:14 +01:00
Lord Hepipud
c199fb594a Fixes cmd aliases not evaluated on plugin run 2022-12-19 13:17:36 +01:00
Lord Hepipud
b1ee7bc30a Fixes wrong regex for threshold detection 2022-11-21 11:57:04 +01:00
Lord Hepipud
73dd3648d3 Fixes stacktrace in plugin output, when pkugin is not installed
Caused by newly introduces Get-Help check to fetch arguments
2022-08-28 11:29:59 +02:00
Lord Hepipud
72b5d3d223 Fixes byte unit Icinga threshold exception 2022-08-24 17:16:55 +02:00
Lord Hepipud
4c5eeaf50b
Merge pull request #550 from Icinga:fix/negative_thresholds_interpreted_as_argument
Fix: Negative thresholds interpreted as argument

Fixes negative thresholds being interpreted wrongly as argument instead of an value for an argument
2022-08-24 16:50:28 +02:00
Lord Hepipud
786fa9f411
Merge pull request #555 from Icinga:fix/plugin_thresholds_invalid_conversion
Fix: Wrong conversion of certain threshold values

Fixes wrong conversion of values for `Convert-IcingaPluginThresholds`, which did not properly handle string values containing certain units inside the string itself
2022-08-24 16:50:04 +02:00
Lord Hepipud
ae01dbeb0a Rewrite PerfData Labels for multi output 2022-08-24 16:26:27 +02:00
Lord Hepipud
116eaa02f3 Fixes wrong conversion of certain threshold values 2022-08-24 09:57:30 +02:00
Lord Hepipud
8c5f9b5f21 Fixes negative thresholds interpreted as argument 2022-08-22 17:15:25 +02:00
Lord Hepipud
787500c452 Fixes UTF8 encoding for plugin execution 2022-08-17 17:13:00 +02:00
Lord Hepipud
f126065cad Adds DSL parser to string arguments, fixing errors 2022-08-17 17:00:36 +02:00
RincewindsHat
4e182ca8ea Fix the creation of powershell arrays in Icinga2 configuration 2022-08-17 16:04:58 +02:00
Lord Hepipud
f908d5b2bd Adds function for easier include/exclude filtering 2022-07-12 13:33:02 +02:00
Lord Hepipud
9a2e793be8 Fix GC collection on every REST connection 2022-04-06 13:59:31 +02:00
Lord Hepipud
ecc11128cb Fixes errors while dynamically compiling Add-Type 2022-02-09 12:16:18 +01:00
Lord Hepipud
c96d49551e Fixes Get-IcingaService StartType with wildcards 2022-01-27 22:05:32 +01:00
Lord Hepipud
586b55adc0 Improves show commands and extends Show-Icinga 2022-01-27 21:06:13 +01:00
Lord Hepipud
71269705cf Adds feature to sort arrays without ScriptBlocks 2022-01-27 19:37:40 +01:00
Lord Hepipud
cf52e6372e Fixes progress status writer by reworking 2022-01-27 15:34:17 +01:00
Lord Hepipud
4ef55bddb4 Fixes lots of code styling, spelling and script analyzer
Disabling UseConsistentIndentation because it is not
properly working for multi-line commands with arguments
and array/hashtable objects
2022-01-14 22:26:53 +01:00
Lord Hepipud
5ed5f0b5e2 Fixes Icinga for Windows memory leak 2021-12-09 17:22:48 +01:00
Lord Hepipud
32c4541397 Improves testing if Add-Type is already loaded 2021-11-25 13:12:57 +01:00
Lord Hepipud
cf2125d7a2 Use alias for args name on config generation 2021-10-28 17:28:41 +02:00
Lord Hepipud
6cb7743954 Fixes check command generator for aliases 2021-10-28 16:13:35 +02:00
Lord Hepipud
34b5d2a249 Fixes long lookups for users on large AD 2021-09-09 15:48:01 +02:00
Lord Hepipud
c8afe4ed4c Adds various IMC improvements 2021-09-02 13:44:17 +02:00
Lord Hepipud
eb8ea9a497 Adds support for JEA profiles 2021-09-02 09:23:10 +02:00
Lord Hepipud
c7ff7f14ad Fixes non string values for file writer 2021-08-21 14:13:49 +02:00
Lord Hepipud
ce35afe19b Fixes file writer, which did not create files 2021-08-21 13:44:24 +02:00
Lord Hepipud
59830d9b01 Fixes config and file writer corruption 2021-08-21 13:29:13 +02:00
Lord Hepipud
63be379368 Adds improvements to IMC including cmd preview 2021-08-19 17:23:07 +02:00
Lord Hepipud
15f0090c8b Adds mmc list view, kickstart filter, spelling fix 2021-08-18 18:42:47 +02:00
Lord Hepipud
e3c9396c59 Fix module import on non PS folders 2021-08-17 09:30:42 +02:00
Lord Hepipud
db2b7a745b Adds repository management 2021-08-13 22:06:22 +02:00
Lord Hepipud
3afbce090e Adds array thresholds and date time support 2021-08-13 16:54:32 +02:00
Lord Hepipud
e9ba8747f8 Remove legacy import from files 2021-08-07 14:27:17 +02:00
Lord Hepipud
57e55ecada Fix exception on negative values 2021-07-27 14:56:37 +02:00
Lord Hepipud
23041ef59f Add test function for add type 2021-07-16 11:04:13 +02:00
Lord Hepipud
8be9bf00a7 Fixes creation of default threshold values 2021-06-09 16:04:16 +02:00