Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit243df8e

Browse files
authored
Merge pull request#64 from Icinga:fix/empty_backups_cause_unknown_on_package
Fixes MSSQL backup check to not throw unknown if no backup existFixes MSSQL backup check which threw `UNKNOWN` on MSSQL instances which have had no backups yet
2 parents1517fbd +6cd50f4 commit243df8e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎doc/31-Changelog.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1111

1212
[Issue and PRs](https://github.com/Icinga/icinga-powershell-mssql/milestone/10?closed=1)
1313

14+
##1.6.1 (2025-11-06)
15+
16+
[Issue and PRs](https://github.com/Icinga/icinga-powershell-mssql/milestone/11?closed=1)
17+
18+
*[#64](https://github.com/Icinga/icinga-powershell-mssql/pull/64) Fixes MSSQL backup check which threw`UNKNOWN` on MSSQL instances which have had no backups yet
19+
1420
##1.6.0 (2025-09-23)
1521

1622
[Issue and PRs](https://github.com/Icinga/icinga-powershell-mssql/milestone/8?closed=1)

‎plugins/Invoke-IcingaCheckMSSQLBackupStatus.psm1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function Invoke-IcingaCheckMSSQLBackupStatus
140140
$SqlConnection=Open-IcingaMSSQLConnection-Username$SqlUsername-Password$SqlPassword-Address$SqlHost-IntegratedSecurity:$IntegratedSecurity-Port$SqlPort;
141141
$BackupSet=Get-IcingaMSSQLBackupOverallStatus-SqlConnection$SqlConnection-IncludeDatabase$IncludeDatabase-IncludeDays$IncludeDays;
142142
$InstanceName=Get-IcingaMSSQLInstanceName-SqlConnection$SqlConnection;
143-
$CheckPackage=New-IcingaCheckPackage-Name ([string]::Format('MSSQL Backup ({0})',$InstanceName))-OperatorAnd-Verbose$Verbosity;
143+
$CheckPackage=New-IcingaCheckPackage-Name ([string]::Format('MSSQL Backup ({0})',$InstanceName))-OperatorAnd-Verbose$Verbosity-IgnoreEmptyPackage;
144144

145145
Close-IcingaMSSQLConnection-SqlConnection$SqlConnection;
146146

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp