Guard Checkmk service renames during updates

This commit is contained in:
2026-08-10 18:06:00 +02:00
parent d408419c5f
commit 8fe1b57173
9 changed files with 192 additions and 23 deletions
+15 -7
View File
@@ -12,6 +12,7 @@ namespace BizTalkCheckmkPulse.Setup
private readonly TextBox password = new TextBox();
private readonly ComboBox environment = new ComboBox();
private readonly CheckBox gmsa = new CheckBox();
private readonly CheckBox allowServiceNameChange = new CheckBox();
private readonly Button install = new Button();
private readonly Button uninstall = new Button();
private readonly TextBox status = new TextBox();
@@ -20,8 +21,8 @@ namespace BizTalkCheckmkPulse.Setup
{
this.engine = engine;
Text = "BizTalk Checkmk Pulse Setup";
ClientSize = new Size(650, 485);
MinimumSize = new Size(666, 524);
ClientSize = new Size(650, 535);
MinimumSize = new Size(666, 574);
StartPosition = FormStartPosition.CenterScreen;
Font = new Font("Segoe UI", 9F);
@@ -68,18 +69,23 @@ namespace BizTalkCheckmkPulse.Setup
if (gmsa.Checked) password.Clear();
};
install.Location = new Point(190, 267);
allowServiceNameChange.Location = new Point(190, 262);
allowServiceNameChange.Size = new Size(420, 34);
allowServiceNameChange.Text = "Service-Rename ist beabsichtigt; Checkmk Service Discovery ist eingeplant";
allowServiceNameChange.Enabled = engine.IsInstalled;
install.Location = new Point(190, 306);
install.Size = new Size(200, 34);
install.Text = "Installieren / aktualisieren";
install.Click += async delegate { await InstallAsync(); };
uninstall.Location = new Point(410, 267);
uninstall.Location = new Point(410, 306);
uninstall.Size = new Size(200, 34);
uninstall.Text = "Deinstallieren";
uninstall.Click += async delegate { await UninstallAsync(); };
status.Location = new Point(22, 320);
status.Size = new Size(588, 135);
status.Location = new Point(22, 359);
status.Size = new Size(588, 146);
status.Multiline = true;
status.ReadOnly = true;
status.ScrollBars = ScrollBars.Vertical;
@@ -89,7 +95,7 @@ namespace BizTalkCheckmkPulse.Setup
Controls.AddRange(new Control[]
{
title, description, account, password, environment, gmsa, install, uninstall, status
title, description, account, password, environment, gmsa, allowServiceNameChange, install, uninstall, status
});
AcceptButton = install;
}
@@ -114,6 +120,7 @@ namespace BizTalkCheckmkPulse.Setup
collectorPassword,
collectorIsGmsa,
environmentName,
allowServiceNameChange.Checked,
Report));
password.Clear();
Report("Installation abgeschlossen. Der Provider-Task wurde einmalig gestartet.");
@@ -166,6 +173,7 @@ namespace BizTalkCheckmkPulse.Setup
account.Enabled = !busy;
environment.Enabled = !busy;
gmsa.Enabled = !busy;
allowServiceNameChange.Enabled = !busy && engine.IsInstalled;
password.Enabled = !busy && !gmsa.Checked;
UseWaitCursor = busy;
if (message != null) Report(message);