Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddSummaryHeader in nested IcingaCheckPackages #399

Open
audiocoach opened this issue Apr 21, 2024 · 0 comments
Open

AddSummaryHeader in nested IcingaCheckPackages #399

audiocoach opened this issue Apr 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Investigation The team is looking into the cause of the issue

Comments

@audiocoach
Copy link

The IcingaCheckPackage argument AddSummaryHeader is not working correctly for nested IcingaCheckPackages. In nested IcingaCheckPackages only the number of checks which are ok is shown.
For testing I manually added the AddSummaryHeader to Invoke-IcingaCheckCPU and the output is as follows:

PS C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework> icinga -developermode { Invoke-IcingaCheckCPU -Warning 38 -NoPerfData -Verbosity 2}
[WARNING] CPU Load: 1 Warning 1 Ok [WARNING] Socket #0
_ [OK] Overall Load: 16.425046%
_ [WARNING] Socket #0: 4 Ok
_ [OK] Core 0: 10.336600%
_ [OK] Core 1: 7.720328%
_ [WARNING] Core 2: 40.083440% is greater than threshold 38%
_ [OK] Core 3: 7.559818%
_ [OK] Core Total: 16.425046%
1

I expected

PS C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework> icinga -developermode { Invoke-IcingaCheckCPU -Warning 38 -NoPerfData -Verbosity 2}
[WARNING] CPU Load: 1 Warning 1 Ok [WARNING] Socket #0
_ [OK] Overall Load: 16.425046%
_ [WARNING] Socket #0: 1 Warning 4 Ok [WARNING] Core 2: 40.083440% is greater than threshold 38%
_ [OK] Core 0: 10.336600%
_ [OK] Core 1: 7.720328%
_ [WARNING] Core 2: 40.083440% is greater than threshold 38%
_ [OK] Core 3: 7.559818%
_ [OK] Core Total: 16.425046%
1

@LordHepipud LordHepipud self-assigned this May 15, 2024
@LordHepipud LordHepipud added bug Something isn't working Investigation The team is looking into the cause of the issue labels May 15, 2024
@LordHepipud LordHepipud added this to the v1.13.0 milestone May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Investigation The team is looking into the cause of the issue
Projects
None yet
Development

No branches or pull requests

2 participants