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

Invoke-IcingaCheckMSSQLBackupStatus: [UNKNOWN] Warning threshold range is greater than Critical threshold #59

Open
fluxX04 opened this issue Mar 12, 2025 · 0 comments

Comments

@fluxX04
Copy link

fluxX04 commented Mar 12, 2025

icinga-powershell-mssql on version 1.5.0.

Since using the new icinga-powershell-framework on version v1.13.2. The check finishes as UNKNOWN.
This can be reproduced with the command (no parameters have been changed):

Invoke-IcingaCheckMSSQLBackupStatus -SqlUsername Icinga2 -SqlPassword (ConvertTo-IcingaSecureString 'password') -Verbosity 2

Output:

[UNKNOWN] MSSQL Backup (MSSQLSERVER) [UNKNOWN] db1, db2, db3, db4, db5, ....
\_ [UNKNOWN] db1
   \_ [OK] Age: 1h
   \_ [OK] Average Size: 38.82GiB
   \_ [OK] Execution Time: 0us
   \_ [OK] Log age: 0us
   \_ [OK] Size: 40.68TiB
   \_ [UNKNOWN] Status: Warning threshold range "6" is greater than Critical threshold range "5"
\_ [UNKNOWN] db2
   \_ [OK] Age: 1h
   \_ [OK] Average Size: 30.75GiB
   \_ [OK] Execution Time: 2m
   \_ [OK] Log age: 0us
   \_ [OK] Size: 30.75GiB
   \_ [UNKNOWN] Status: Warning threshold range "6" is greater than Critical threshold range "5"
\_ [UNKNOWN] db3
   \_ [OK] Age:1h
   \_ [OK] Average Size: 1001.43MiB
   \_ [OK] Execution Time: 0us
   \_ [OK] Log age: 0us
   \_ [OK] Size: 978.93GiB
   \_ [UNKNOWN] Status: Warning threshold range "6" is greater than Critical threshold range "5"
\_ [UNKNOWN] db4
   \_ [OK] Age: 1h
   \_ [OK] Average Size: 13.17GiB
   \_ [OK] Execution Time: 0us
   \_ [OK] Log age: 0us
   \_ [OK] Size: 12.88TiB
   \_ [UNKNOWN] Status: Warning threshold range "6" is greater than Critical threshold range "5"
\_ [UNKNOWN] db5
   \_ [OK] Age: 1h
   \_ [OK] Average Size: 1.60GiB
   \_ [OK] Execution Time: 0us
   \_ [OK] Log age: 0us
   \_ [OK] Size: 1.57TiB
   \_ [UNKNOWN] Status: Warning threshold range "6" is greater than Critical threshold range "5"
.....

Performance data for state: dbX::ifw_mssqlbackupstatus::state=0;6;5;;

Greetz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant