mirror of https://github.com/Icinga/icinga2.git
parent
06dbef5bfb
commit
a1d80418db
|
@ -280,6 +280,9 @@ set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
|
||||||
include(InstallRequiredSystemLibraries)
|
include(InstallRequiredSystemLibraries)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
file(DOWNLOAD http://files.nsclient.org/released/NSCP-0.4.3.143-Win32.msi ${CMAKE_CURRENT_BINARY_DIR}/NSCP-Win32.msi)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/NSCP-Win32.msi DESTINATION ${CMAKE_INSTALL_SBINDIR})
|
||||||
|
|
||||||
install(
|
install(
|
||||||
PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
|
PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
|
||||||
${OPENSSL_INCLUDE_DIR}/../bin/libeay32.dll ${OPENSSL_INCLUDE_DIR}/../bin/ssleay32.dll
|
${OPENSSL_INCLUDE_DIR}/../bin/libeay32.dll ${OPENSSL_INCLUDE_DIR}/../bin/ssleay32.dll
|
||||||
|
|
|
@ -38,6 +38,9 @@
|
||||||
this.lblConfigStatus = new System.Windows.Forms.Label();
|
this.lblConfigStatus = new System.Windows.Forms.Label();
|
||||||
this.prgConfig = new System.Windows.Forms.ProgressBar();
|
this.prgConfig = new System.Windows.Forms.ProgressBar();
|
||||||
this.tabParameters = new System.Windows.Forms.TabPage();
|
this.tabParameters = new System.Windows.Forms.TabPage();
|
||||||
|
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.chkAcceptConfig = new System.Windows.Forms.CheckBox();
|
||||||
|
this.chkAcceptCommands = new System.Windows.Forms.CheckBox();
|
||||||
this.txtTicket = new System.Windows.Forms.TextBox();
|
this.txtTicket = new System.Windows.Forms.TextBox();
|
||||||
this.lblTicket = new System.Windows.Forms.Label();
|
this.lblTicket = new System.Windows.Forms.Label();
|
||||||
this.txtInstanceName = new System.Windows.Forms.TextBox();
|
this.txtInstanceName = new System.Windows.Forms.TextBox();
|
||||||
|
@ -75,12 +78,11 @@
|
||||||
this.txtError = new System.Windows.Forms.TextBox();
|
this.txtError = new System.Windows.Forms.TextBox();
|
||||||
this.lblError = new System.Windows.Forms.Label();
|
this.lblError = new System.Windows.Forms.Label();
|
||||||
this.picBanner = new System.Windows.Forms.PictureBox();
|
this.picBanner = new System.Windows.Forms.PictureBox();
|
||||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
this.chkInstallNSCP = new System.Windows.Forms.CheckBox();
|
||||||
this.chkAcceptCommands = new System.Windows.Forms.CheckBox();
|
|
||||||
this.chkAcceptConfig = new System.Windows.Forms.CheckBox();
|
|
||||||
this.tabFinish.SuspendLayout();
|
this.tabFinish.SuspendLayout();
|
||||||
this.tabConfigure.SuspendLayout();
|
this.tabConfigure.SuspendLayout();
|
||||||
this.tabParameters.SuspendLayout();
|
this.tabParameters.SuspendLayout();
|
||||||
|
this.groupBox3.SuspendLayout();
|
||||||
this.groupBox2.SuspendLayout();
|
this.groupBox2.SuspendLayout();
|
||||||
this.groupBox1.SuspendLayout();
|
this.groupBox1.SuspendLayout();
|
||||||
this.tbcPages.SuspendLayout();
|
this.tbcPages.SuspendLayout();
|
||||||
|
@ -89,7 +91,6 @@
|
||||||
this.grpX509Fields.SuspendLayout();
|
this.grpX509Fields.SuspendLayout();
|
||||||
this.tabError.SuspendLayout();
|
this.tabError.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.picBanner)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.picBanner)).BeginInit();
|
||||||
this.groupBox3.SuspendLayout();
|
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// btnBack
|
// btnBack
|
||||||
|
@ -189,6 +190,38 @@
|
||||||
this.tabParameters.Text = "Agent Parameters";
|
this.tabParameters.Text = "Agent Parameters";
|
||||||
this.tabParameters.UseVisualStyleBackColor = true;
|
this.tabParameters.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// groupBox3
|
||||||
|
//
|
||||||
|
this.groupBox3.Controls.Add(this.chkInstallNSCP);
|
||||||
|
this.groupBox3.Controls.Add(this.chkAcceptConfig);
|
||||||
|
this.groupBox3.Controls.Add(this.chkAcceptCommands);
|
||||||
|
this.groupBox3.Location = new System.Drawing.Point(308, 359);
|
||||||
|
this.groupBox3.Name = "groupBox3";
|
||||||
|
this.groupBox3.Size = new System.Drawing.Size(301, 111);
|
||||||
|
this.groupBox3.TabIndex = 5;
|
||||||
|
this.groupBox3.TabStop = false;
|
||||||
|
this.groupBox3.Text = "Advanced Options";
|
||||||
|
//
|
||||||
|
// chkAcceptConfig
|
||||||
|
//
|
||||||
|
this.chkAcceptConfig.AutoSize = true;
|
||||||
|
this.chkAcceptConfig.Location = new System.Drawing.Point(9, 47);
|
||||||
|
this.chkAcceptConfig.Name = "chkAcceptConfig";
|
||||||
|
this.chkAcceptConfig.Size = new System.Drawing.Size(190, 17);
|
||||||
|
this.chkAcceptConfig.TabIndex = 1;
|
||||||
|
this.chkAcceptConfig.Text = "Accept config updates from master";
|
||||||
|
this.chkAcceptConfig.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// chkAcceptCommands
|
||||||
|
//
|
||||||
|
this.chkAcceptCommands.AutoSize = true;
|
||||||
|
this.chkAcceptCommands.Location = new System.Drawing.Point(9, 24);
|
||||||
|
this.chkAcceptCommands.Name = "chkAcceptCommands";
|
||||||
|
this.chkAcceptCommands.Size = new System.Drawing.Size(171, 17);
|
||||||
|
this.chkAcceptCommands.TabIndex = 0;
|
||||||
|
this.chkAcceptCommands.Text = "Accept commands from master";
|
||||||
|
this.chkAcceptCommands.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// txtTicket
|
// txtTicket
|
||||||
//
|
//
|
||||||
this.txtTicket.Location = new System.Drawing.Point(98, 45);
|
this.txtTicket.Location = new System.Drawing.Point(98, 45);
|
||||||
|
@ -559,36 +592,15 @@
|
||||||
this.picBanner.TabIndex = 1;
|
this.picBanner.TabIndex = 1;
|
||||||
this.picBanner.TabStop = false;
|
this.picBanner.TabStop = false;
|
||||||
//
|
//
|
||||||
// groupBox3
|
// chkInstallNSCP
|
||||||
//
|
//
|
||||||
this.groupBox3.Controls.Add(this.chkAcceptConfig);
|
this.chkInstallNSCP.AutoSize = true;
|
||||||
this.groupBox3.Controls.Add(this.chkAcceptCommands);
|
this.chkInstallNSCP.Location = new System.Drawing.Point(9, 70);
|
||||||
this.groupBox3.Location = new System.Drawing.Point(308, 359);
|
this.chkInstallNSCP.Name = "chkInstallNSCP";
|
||||||
this.groupBox3.Name = "groupBox3";
|
this.chkInstallNSCP.Size = new System.Drawing.Size(149, 17);
|
||||||
this.groupBox3.Size = new System.Drawing.Size(301, 111);
|
this.chkInstallNSCP.TabIndex = 6;
|
||||||
this.groupBox3.TabIndex = 5;
|
this.chkInstallNSCP.Text = "Install/Update NSClient++";
|
||||||
this.groupBox3.TabStop = false;
|
this.chkInstallNSCP.UseVisualStyleBackColor = true;
|
||||||
this.groupBox3.Text = "Advanced Settings";
|
|
||||||
//
|
|
||||||
// chkAcceptCommands
|
|
||||||
//
|
|
||||||
this.chkAcceptCommands.AutoSize = true;
|
|
||||||
this.chkAcceptCommands.Location = new System.Drawing.Point(9, 24);
|
|
||||||
this.chkAcceptCommands.Name = "chkAcceptCommands";
|
|
||||||
this.chkAcceptCommands.Size = new System.Drawing.Size(171, 17);
|
|
||||||
this.chkAcceptCommands.TabIndex = 0;
|
|
||||||
this.chkAcceptCommands.Text = "Accept commands from master";
|
|
||||||
this.chkAcceptCommands.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// chkAcceptConfig
|
|
||||||
//
|
|
||||||
this.chkAcceptConfig.AutoSize = true;
|
|
||||||
this.chkAcceptConfig.Location = new System.Drawing.Point(9, 47);
|
|
||||||
this.chkAcceptConfig.Name = "chkAcceptConfig";
|
|
||||||
this.chkAcceptConfig.Size = new System.Drawing.Size(190, 17);
|
|
||||||
this.chkAcceptConfig.TabIndex = 1;
|
|
||||||
this.chkAcceptConfig.Text = "Accept config updates from master";
|
|
||||||
this.chkAcceptConfig.UseVisualStyleBackColor = true;
|
|
||||||
//
|
//
|
||||||
// SetupWizard
|
// SetupWizard
|
||||||
//
|
//
|
||||||
|
@ -614,6 +626,8 @@
|
||||||
this.tabConfigure.PerformLayout();
|
this.tabConfigure.PerformLayout();
|
||||||
this.tabParameters.ResumeLayout(false);
|
this.tabParameters.ResumeLayout(false);
|
||||||
this.tabParameters.PerformLayout();
|
this.tabParameters.PerformLayout();
|
||||||
|
this.groupBox3.ResumeLayout(false);
|
||||||
|
this.groupBox3.PerformLayout();
|
||||||
this.groupBox2.ResumeLayout(false);
|
this.groupBox2.ResumeLayout(false);
|
||||||
this.groupBox2.PerformLayout();
|
this.groupBox2.PerformLayout();
|
||||||
this.groupBox1.ResumeLayout(false);
|
this.groupBox1.ResumeLayout(false);
|
||||||
|
@ -628,8 +642,6 @@
|
||||||
this.tabError.ResumeLayout(false);
|
this.tabError.ResumeLayout(false);
|
||||||
this.tabError.PerformLayout();
|
this.tabError.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.picBanner)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.picBanner)).EndInit();
|
||||||
this.groupBox3.ResumeLayout(false);
|
|
||||||
this.groupBox3.PerformLayout();
|
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -685,6 +697,7 @@
|
||||||
private System.Windows.Forms.GroupBox groupBox3;
|
private System.Windows.Forms.GroupBox groupBox3;
|
||||||
private System.Windows.Forms.CheckBox chkAcceptConfig;
|
private System.Windows.Forms.CheckBox chkAcceptConfig;
|
||||||
private System.Windows.Forms.CheckBox chkAcceptCommands;
|
private System.Windows.Forms.CheckBox chkAcceptCommands;
|
||||||
|
private System.Windows.Forms.CheckBox chkInstallNSCP;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -176,6 +176,17 @@ namespace Icinga
|
||||||
|
|
||||||
private void ConfigureService()
|
private void ConfigureService()
|
||||||
{
|
{
|
||||||
|
if (chkInstallNSCP.Checked)
|
||||||
|
{
|
||||||
|
SetConfigureStatus(0, "Waiting for NSClient++ installation to complete...");
|
||||||
|
|
||||||
|
Process proc = new Process();
|
||||||
|
proc.StartInfo.FileName = "msiexec.exe";
|
||||||
|
proc.StartInfo.Arguments = "/i \"" + Program.Icinga2InstallDir + "\\sbin\\NSCP-Win32.msi\"";
|
||||||
|
proc.Start();
|
||||||
|
proc.WaitForExit();
|
||||||
|
}
|
||||||
|
|
||||||
SetConfigureStatus(0, "Updating configuration files...");
|
SetConfigureStatus(0, "Updating configuration files...");
|
||||||
|
|
||||||
string output;
|
string output;
|
||||||
|
|
Loading…
Reference in New Issue