Commit graph

504 commits

Author SHA1 Message Date
Lord Hepipud
ee4e890d2e Fixes Icinga API being disabled after cert install 2020-11-12 14:33:42 +01:00
Lord Hepipud
c7a7172191 Updates help for certificate installation 2020-11-10 11:02:16 +01:00
Lord Hepipud
37c0824be5 Experimental: Adds code caching for faster loading 2020-11-06 16:06:38 +01:00
Lord Hepipud
67c7d3c8e0
Merge pull request #60 from Icinga/feature/network_routes
Bugfix: Handle multiple network interfaces on discovery and add support for Windows 2008 R2

* Fixes issue on hosts with mulitple interfaces that provide virtual interfaces, causing problems on Director Self-Service creation
* Adds support for Windows 2008 R2
2020-11-06 15:23:27 +01:00
Lord Hepipud
162f8102fb Fixes multi interface support on interface discover
* Fixes issue on hosts with mulitple interfaces that provide virtual
interfaces, causing problems on Director Self-Service creation
* Adds support for Windows 2008 R2
2020-11-06 15:21:10 +01:00
Yonas Habteab
9a42c9efa1 Check whether or not a specific wmi class exists
Tests if a specific WMI class including the Namespace can be accessed
and returns status codes for possible errors/exceptions taht might
occure. Returns binary operator values for easier comparison. In case
no errors occured it will return $TestIcingaWindowsInfoEnums.TestIcingaWindowsInfo.Ok
2020-11-05 15:53:44 +01:00
Lord Hepipud
49d9c6000d Adds generic Cmdlet to convert Icinga Thresholds 2020-11-03 13:39:13 +01:00
Lord Hepipud
70def91d9d Fixes version fetching for unloaded modules 2020-11-02 12:58:54 +01:00
Lord Hepipud
4bc03b6bfa Fixing value overflow for Convert-Bytes 2020-10-30 09:56:33 +01:00
Yonas Habteab
06aad754a7 Compare current time with DateTime object 2020-10-29 15:33:55 +01:00
Lord Hepipud
854b7fd997 Fixes uncatched invisible output 2020-09-15 15:46:33 +02:00
Lord Hepipud
e2d58ba182 Adds Windows Terminal integration 2020-08-28 15:24:48 +02:00
Lord Hepipud
000ab6e12e Improves msg for permssion error on CIM/WMI access 2020-08-26 13:38:05 +02:00
Lord Hepipud
88048dc0a0 Adds function to fetch help of Performance Counter 2020-08-22 15:11:54 +02:00
Lord Hepipud
2e2cc3e604
Merge pull request #104 from Icinga:fix/perfdata_values_output
Fix perf data output on variable overflow

This will resolve the issue on performance data being printed like "6.3E-05" and causing wrong metrics and errors within the log files
2020-08-21 11:16:14 +02:00
Lord Hepipud
edee954cf4 Improves Performance Counter docs and features 2020-08-20 14:28:11 +02:00
Lord Hepipud
044ba4bf03 Fix perfdata value output on variable overflow 2020-08-20 10:13:09 +02:00
Lord Hepipud
8076a373f5 Adds support for SecureString handling on plugins
Fixes #98
2020-08-13 15:45:13 +02:00
Lord Hepipud
cdab7f0b5a Fix error on basket render forillegal ValidateSet
Fixes #83
2020-08-12 10:38:07 +02:00
Lord Hepipud
c2ad2b6564 Fix value digit count for Performance Counters
Fixes #97
2020-08-08 14:43:49 +02:00
Christian Stein
4ada0d69f9 Adds Performance Counter cache
Implements #96
2020-08-07 15:17:19 +02:00
Christian Stein
47272bd243 Fixes permission error on EventLog registration by printing proper error message
Fixes #81
2020-08-06 19:06:59 +02:00
Christian Stein
22f341bd26 Adds additional notes for new check configuration handling
#95
2020-08-06 18:40:38 +02:00
Christian Stein
da5ee1b8b7 Improves error handling for Framework initialising and plugin execution
Fixes #95
2020-08-06 17:46:29 +02:00
Christian Stein
01badf1c6d Merge branch 'master' of https://github.com/LordHepipud/icinga-module-windows 2020-08-06 09:02:42 +02:00
Lord Hepipud
4898009e86 Fixes issue on show timer while no default timer was started on ShowAll 2020-08-06 00:17:17 +02:00
Lord Hepipud
dcafde1ea7 Adds support to show all timers with Show-IcingaTimers 2020-08-06 00:03:17 +02:00
Lord Hepipud
f3bebdbdbc Fixes missing Name argument for Test-IcingaTimer 2020-08-06 00:02:26 +02:00
Lord Hepipud
00be110554 Adds Namespace argument for Get-IcingaWindowsInformation for additional filtering
Fixes #94
2020-08-05 19:48:18 +02:00
Christian Stein
9ece8d805f Fixes code styling for New-IcingaPerformanceCounterArray 2020-08-04 15:37:35 +02:00
Christian Stein
3e5a97d52b Fix assignment indentation for variables/objects 2020-08-04 15:13:04 +02:00
Christian Stein
ac02ec7e3e Fixes various code stylings, whitespaces, line handling, and so on 2020-08-04 14:48:32 +02:00
Lord Hepipud
3bf87c2f2a Adds timer functionality for performance analysis
Implements #88
2020-08-03 20:56:16 +02:00
Lord Hepipud
7d2cfc64dc Fixes Set-IcingaAcl errors on older Windows systems
Fixes #92
2020-08-03 19:37:19 +02:00
Lord Hepipud
7d5986c504 Fixes wrong argument defaults set by Icinga Director Self-Service
Fixes #91
2020-08-03 19:21:55 +02:00
Lord Hepipud
6a36a8ba5e Fixes type question during Agent installation on Windows 2012 R2
Fixes #90
2020-08-03 19:13:29 +02:00
Lord Hepipud
8798ad890d Fix type inpurt question duing Get-IcingaCheckCommandConfig
Fixes #89
2020-08-03 17:50:19 +02:00
Christian Stein
39df724157 Merge branch 'master' of https://github.com/LordHepipud/icinga-module-windows 2020-07-31 10:20:56 +02:00
Christian Stein
0ba6fd35f4 Fixes TLS error on WebRequests for endpoints using TLS 1.2
Fixes #86
2020-07-31 10:20:53 +02:00
Lord Hepipud
a3074739c0 Adds debug output for performance counter initialising 2020-07-29 15:35:10 +02:00
Lord Hepipud
b282bcfa3a Fix incorrect SecureString handling for empty service user password
Fixes #85
2020-07-29 14:36:59 +02:00
Lord Hepipud
15e5e1efef Adds support to check for required .NET Framework 4.6.0 version
Fixes #76
2020-07-29 14:28:28 +02:00
Lord Hepipud
5a064078b2 Adds new Cmdlet Show-IcingaPerformanceCounterInstances 2020-07-29 11:03:19 +02:00
Christian Stein
aa8d712152 Fix conversion error on ConvertTo-Seconds while input is $null
Fixes #84
2020-07-28 17:53:40 +02:00
Christian Stein
f26acf1e7a Fixes another issue with MSI package fetching for 'release' argument
Fixes #78
2020-07-28 17:04:26 +02:00
Christian Stein
d346dcb09d Fix exception on unregistered 'Icinga for Windows' EventLog on first run
Fixes #81
Fixes #82
2020-07-28 12:13:41 +02:00
Christian Stein
2d7cb5ea34 Adds attempt to provide proper error handling for WMI exceptions
Implements #80
2020-07-28 09:26:12 +02:00
Lord Hepipud
dce7789d91 Adds WMI/CIM wrapper permission error and WMI code handling
Implements #80
2020-07-27 12:38:57 +02:00
Lord Hepipud
b2ee1d9315 Adds switch to force WMI usage over CIM
Implements #80
2020-07-27 11:47:22 +02:00
Lord Hepipud
5ba5261c8b Updates framework to use new WMI/Cim wrapper
Implements #80
2020-07-27 11:45:02 +02:00
Lord Hepipud
64a7724340 Adds wrapper for WMI and CIM fetching with error handling
Implements #80
2020-07-27 11:32:36 +02:00
Christian Stein
c7a2660969 Fixes ConvertTo-SecondsFromIcingaThreshold on default int values
Fixes #79
2020-07-23 15:32:05 +02:00
Christian Stein
1cfb15166b Fix Icinga Agent package fetching for x86 architecture
Fixes #78
2020-07-23 11:24:19 +02:00
Lord Hepipud
bc18053856
Merge pull request #73 from n35k3nd1r/master
Update Start-IcingaAgentInstallWizard.psm1
2020-06-25 11:34:30 +02:00
Lord Hepipud
1f86a213b3 Disables notification feature after Icinga Agent installation
Fixes #75
2020-06-24 10:32:03 +02:00
Lord Hepipud
7b9d8df5b4 Fixes issue while trying to disable last enabled Agent feature element
Fixes #74
2020-06-24 09:57:22 +02:00
Alexander Plate
d30a18346f Update Start-IcingaAgentInstallWizard.psm1 2020-06-23 12:37:20 +02:00
Lord Hepipud
7542cd92c3
Merge pull request #72 from n35k3nd1r/master
fix Problem with existing 'InstallDir' while running Install-IcingaAgent
2020-06-18 10:22:48 +02:00
Christian Stein
06d5966a34 Fixex multiple endpoint handling and IP conversion with Director Self Service
Fixes #70
2020-06-18 10:14:01 +02:00
Alexander Plate
92d5bdd025 Update Install-IcingaAgent.psm1 2020-06-17 21:58:48 +02:00
Lord Hepipud
152a088fe0 Fixes unhandled $null directory value on Test-IcingaAcl 2020-06-02 15:51:01 +02:00
Lord Hepipud
48eca11826 Improves Agent question prompt 2020-06-02 13:02:09 +02:00
Lord Hepipud
591555f2c1 Improves Agent installation/uninstallation stability
Fixes #69
2020-05-30 14:42:31 +02:00
Lord Hepipud
7551233f0b Improves error handling during certificate generation 2020-05-30 14:19:34 +02:00
Lord Hepipud
f961a854cc Fixes debug console output being printed while debugging is disabled 2020-05-30 12:11:30 +02:00
Lord Hepipud
73fe3aac31 Adds support for handling authentication requests with basic auth 2020-05-29 18:02:30 +02:00
Lord Hepipud
6838933bd5 Improves and standardizes the wizard even further 2020-05-29 14:49:34 +02:00
Lord Hepipud
6e50603b30 Replaces 'latest' version with 'release' and standardizes is 2020-05-29 14:02:43 +02:00
Christian Stein
b86242cf72 Adds examples for value comparison 2020-05-28 17:30:06 +02:00
Christian Stein
80d0e5c94f Adds tool function to compare value for minimum/maximum 2020-05-28 17:26:53 +02:00
Lord Hepipud
b315bad062
Merge branch 'master' into feature/rest_daemon 2020-05-22 16:50:31 +02:00
Lord Hepipud
77b8c1bae5
Merge pull request #68 from Icinga/feature/wizard-improvement
Feature/wizard improvement
2020-05-22 16:42:41 +02:00
Lord Hepipud
971e09dc43 Fixes and improves various messages, handlings and severities for wizard 2020-05-22 16:34:18 +02:00
Lord Hepipud
987a52c418 Improves console output for certain commands 2020-05-22 13:42:23 +02:00
Lord Hepipud
882ce624a0 Changes error for service installation to warning on missing path 2020-05-22 13:41:24 +02:00
Lord Hepipud
c6a7154686 Renames Default: to Defaults: on setup wizard 2020-05-22 13:22:41 +02:00
Lord Hepipud
5aa7e8259d Fixes argument parsing and prompt for IP conversion 2020-05-22 13:20:41 +02:00
Lord Hepipud
eeb7406382 Improves IP conversion by returning unresolved name only 2020-05-22 13:20:03 +02:00
Lord Hepipud
4a869458cc Improves connection conversion wizard handling 2020-05-22 12:55:39 +02:00
Lord Hepipud
2ac3de5267 Fixes FQDN to IP wizard conversion question 2020-05-22 12:55:39 +02:00
Lord Hepipud
7961a0d0d1 Adds defaults to certain steps and FQDN to IP conversion 2020-05-22 12:55:39 +02:00
Lord Hepipud
d983f6f767 Adds support to fully uninstall the Icinga 2 agent including ProgramData
Fixes #67
2020-05-22 12:19:03 +02:00
Lord Hepipud
84975a4759 Adds help for several Cmdlets 2020-05-22 09:52:48 +02:00
Lord Hepipud
2b740785fe Replaces Write-Host calls with custom console writes 2020-05-13 16:53:15 +02:00
Lord Hepipud
efdca87b7e Improves wizard argument escaping, duplicates and arg conversion
Fix #61
2020-05-12 18:33:50 +02:00
Lord Hepipud
d205989007 Fixes performance data by converting boolean to integer
Fixes #66
2020-05-12 16:37:08 +02:00
Lord Hepipud
5cb885dc14 Adds tool function for easily creating basic auth headers 2020-04-30 13:48:45 +02:00
Lord Hepipud
c0e006640a Adds support to restore original config after using old PS module
Fixes #65
2020-04-28 17:05:57 +02:00
Lord Hepipud
96733eb791 Fix URL building for Agent MSI packages
Fixes #64
2020-04-28 16:39:38 +02:00
Lord Hepipud
00990c52e1 Adds documentation for several Cmdlets 2020-04-28 14:06:43 +02:00
Lord Hepipud
09d7bf9050 Fixes missing port argument for save-cert Icinga 2 command
Fixes #63
2020-04-28 14:04:34 +02:00
Lord Hepipud
4f8b51ce78 Handle deprecated argument --key for Icinga Agent save-cert cmd
Fixes #62
2020-04-28 14:00:05 +02:00
Lord Hepipud
9e7ab31608 Adds documentation for several Cmdlets 2020-04-28 13:52:32 +02:00
Lord Hepipud
429db105a8 Handle deprecated argument --key for Icinga Agent save-cert cmd
Fixes #62
2020-04-28 13:48:15 +02:00
Lord Hepipud
bde0005203 Fixes Icinga Agent MSI package fetching by ignoring RC packages
Fixes #58
2020-04-13 16:31:55 +02:00
Lord Hepipud
a4dfee6f8b Improves plugin creation Cmdlet, releasing plugins as separate modules 2020-04-01 09:07:42 +02:00
Christian Stein
2fca1d3e2f Adds function to deserialize PSObject properties into name/value keypair 2020-03-30 09:32:54 +02:00
Christian Stein
0081641bd6 Fixes spelling in eventlog message 2020-03-27 17:16:17 +01:00
Christian Stein
470e5cc036 Adds error handling for SSLStreams and adds eventlog pre-defined messages 2020-03-27 16:43:18 +01:00
Christian Stein
dff16d8f0d Adds support to store debugmode state in config and make it globally available 2020-03-27 16:39:47 +01:00
Christian Stein
e8f2152010 Adds unified debug message output with object parsing ability 2020-03-27 16:37:44 +01:00
Christian Stein
699137a97c Adds support to securely fetch elements from hashtables with default values 2020-03-27 16:36:25 +01:00
Christian Stein
7dce37717a Adds generic PowerShell component installer and improved usability 2020-03-26 19:43:37 +01:00
Christian Stein
7a732de5f4 Fixes debug messages being written while no debug option was defined 2020-03-25 22:12:17 +01:00
Christian Stein
eb948d8d22 Adds support for simple setup and fetching of internal check scheduler data 2020-03-25 22:03:31 +01:00
Christian Stein
2e225e1ce5 Adds support for generic call of wildcard functions for fetching multi data 2020-03-25 17:51:53 +01:00
Christian Stein
935c497a7d Extends eventlog write function for pre-defined messages and object dump 2020-03-25 17:50:56 +01:00
Christian Stein
e56861d858 Adds generic support for sending TCP client and REST network messages 2020-03-25 17:48:49 +01:00
Christian Stein
a78ac014be Adds improved handling for error messages and later doc on website 2020-03-25 08:35:29 +01:00
Christian Stein
9831e9319c Fixes certificate subject name fetching 2020-03-25 07:48:55 +01:00
Christian Stein
d97bc8aeb8 Moves Read REST message function into proper module folder 2020-03-24 20:11:24 +01:00
Christian Stein
9221cb050d Adds function to fetch local Icinga 2 Agent host certificate 2020-03-24 20:10:41 +01:00
Christian Stein
df7be4a317 Add debug output for starting new thread instances 2020-03-24 20:09:50 +01:00
Christian Stein
9b947dc069 Adds additional eventlog write functions 2020-03-24 20:07:34 +01:00
Alexander Stoll
e6b46b84f7
Fix codestyling 2020-03-24 18:43:27 +01:00
Alexander Stoll
50133d22f2
Create Read-IcingaRESTMessage.psm1
First draft of Read-IcingaRESTMessage.psm1

#57 Regarding parsing
2020-03-24 18:40:33 +01:00
Christian Stein
b947f71f3a Add support to write into Windows Event Log (debug only for now) 2020-03-24 14:04:41 +01:00
Christian Stein
edd8b4b6ed Added basiic TCP Cmdlets and handling 2020-03-24 12:42:14 +01:00
Christian Stein
a040873e31 Fix Self-Service API key input prompt during install wizard, even if key is set
Fixes #52
2020-03-11 17:46:01 +01:00
Christian Stein
66eda2d71b Fixes handling for LocalSystem account if set as service user
Fixes #51
2020-03-11 13:01:54 +01:00
Christian Stein
77ebfc431f Fix crash while trying to update with identical current and target version
Fixes #50
2020-03-10 17:28:22 +01:00
Christian Stein
a45d0e2fbb Use NETBIOS name for non-domain hosts instead of hostname
Fixes #49
2020-03-10 17:01:43 +01:00
NeverUsedID
0eccbd9ba2
Fixed: ServiceUser can't be changed on Server 2008
Added a space to fix sc.exe not changing user on Windows Server 2008 because it expects a space between 'password=' and '"{2}"'
2020-03-04 15:18:13 +01:00
Christian Stein
96314bfe8c Fixes service exit code fetching 2020-02-18 13:36:46 +01:00
Christian Stein
9e52d16a3d Adds service exclude and service exit code data fetching 2020-02-18 12:27:47 +01:00
Christian Stein
90a8fab9cb Merge branch 'bugfix/interface_detection' 2020-02-14 09:34:41 +01:00
Christian Stein
3e86748dd0 Fixes plugin installation if wizard arguments are set
Fixes #46
2020-02-13 16:28:06 +01:00
Christian Stein
cfd28f30e2 Fixes broken datalist data type configuration on Basket generation
Fixes #45
2020-02-13 14:16:42 +01:00
Christian Stein
d0dcc0c128 Adds Icinga Agent object list wrapper implementation
Fixes #44
2020-02-13 12:32:56 +01:00
Christian Stein
714827bc0a Adds script termination in case Agent is not installed for Agent Binary fetching 2020-02-13 10:19:23 +01:00
Christian Stein
401ac2ed53 Fixes tail command with read limit
Fixes #43
2020-02-13 10:12:57 +01:00
Alexander Stoll
e07f7f1482 Add first draft unit determination tools 2020-02-07 15:07:29 +01:00
Christian Stein
58d2aa7403 Fixes TLS error on old PowerShell versions for GitHub connections
Fixes #41
2020-02-07 11:21:53 +01:00
Christian Stein
9b6941c4b9 Fixes exceptions during interface discovery
Fix #38
2020-02-07 11:06:57 +01:00
Christian Stein
a724f486f8 Fixes missing error message from Icinga Director Self-Service API on Wizard 2020-02-04 09:34:01 +01:00
Christian Stein
80975bee24 Fixes naming of byte data types and functions 2020-02-04 09:33:27 +01:00
Christian Stein
499af2b92e Fixes PetaByte unit short name 2020-02-03 18:09:03 +01:00
Christian Stein
ff06ea5f13 Fixes unit naming for byte related types 2020-02-03 18:03:40 +01:00
Christian Stein
bec3459231 Adds proper handling for invalid inputs on byte conversion for plugin usage 2020-02-03 17:56:34 +01:00
Christian Stein
ac98e88626 Fixes broken switch arguments in basket configurator
Fixes #39
2020-02-03 17:28:31 +01:00
Christian Stein
edacccd75a Improve interface detection for multi IP hosts
Possibly Fix #38
2020-01-15 15:25:10 +01:00
Christian Stein
9733bde88b Fixes wrong Url for stable Plugin Release
Fixes #36
2019-12-17 17:19:48 +01:00
Christian Stein
4b87a68b58 Add Cmdlets to Show / Remove SelfService Api Key
Fixes #35
2019-12-12 16:00:39 +01:00
Christian Stein
b978ee6574 Add support for Host-Address for Director Register
Fixes #31
2019-12-12 15:49:56 +01:00
Christian Stein
ce9257a30d Improved code styling 2019-12-12 14:19:37 +01:00
Crited
9adfe087d8 Create first draft: Interface Detection and Sub-Tools 2019-12-11 16:14:35 +01:00
Christian Stein
4c839e0b19 Create Plugin Directory during installation
Fixes #34
2019-12-10 14:20:21 +01:00
Alexander Stoll
9ab979f83b Fix missing const NodeName #33 2019-12-10 13:14:00 +01:00
Christian Stein
58c6d0fd7d Improved stability for Director Wizard
Fixes #27
2019-12-06 20:28:09 +01:00
Christian Stein
c7c2ef8c22 Add Cmdlet to uninstall PowerShell service
Fixes #32
2019-12-06 19:33:14 +01:00