Ejemplo n.º 1
0
        private void LoadEntryDetails()
        {
            LinuxProcessEntry currentEntry = (LinuxProcessEntry)SelectedEntry;

            if (currentEntry == null)
            {
                currentEntry = new LinuxProcessEntry();
            }
            sshConnectionDetails  = currentEntry.SSHConnection;
            txtSSHConnection.Text = Linux.SSHConnectionDetails.FormatSSHConnection(sshConnectionDetails);

            txtName.Text = currentEntry.Name;
            cboProcessCheckOption.SelectedIndex = (int)currentEntry.ProcessCheckOption;
            topProcessCountUpDown.SaveValueSet(currentEntry.TopProcessCount);
            topXCPUPercWarnNumericUpDown.SaveValueSet(currentEntry.CPUPercWarningValue);
            topXCPUPercErrNumericUpDown.SaveValueSet(currentEntry.CPUPercErrorValue);
            topXMemPercWarnNumericUpDown.SaveValueSet(currentEntry.MemPercWarningValue);
            topXMemPercErrNumericUpDown.SaveValueSet(currentEntry.MemPercErrorValue);

            lvwProcesses.Items.Clear();
            if (currentEntry.SubItems != null && currentEntry.SubItems.Count > 0)
            {
                foreach (LinuxProcessSubEntry specific in currentEntry.SubItems)
                {
                    ListViewItem lvi = new ListViewItem(specific.ProcessName);
                    lvi.SubItems.Add(specific.CPUPercWarningValue.ToString());
                    lvi.SubItems.Add(specific.CPUPercErrorValue.ToString());
                    lvi.SubItems.Add(specific.MemPercWarningValue.ToString());
                    lvi.SubItems.Add(specific.MemPercErrorValue.ToString());
                    lvi.Tag = specific;
                    lvwProcesses.Items.Add(lvi);
                }
            }
        }
Ejemplo n.º 2
0
        private void EditSSHConnection()
        {
            EditSSHConnection editor = new Collectors.EditSSHConnection();

            editor.SSHConnectionDetails = sshConnectionDetails;
            if (editor.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                sshConnectionDetails  = editor.SSHConnectionDetails;
                txtSSHConnection.Text = Linux.SSHConnectionDetails.FormatSSHConnection(sshConnectionDetails);
            }
        }
Ejemplo n.º 3
0
        private void LoadEntryDetails()
        {
            LinuxMemoryEntry currentEntry = (LinuxMemoryEntry)SelectedEntry;

            if (currentEntry == null)
            {
                currentEntry = new LinuxMemoryEntry();
            }
            sshConnectionDetails             = currentEntry.SSHConnection;
            txtSSHConnection.Text            = Linux.SSHConnectionDetails.FormatSSHConnection(sshConnectionDetails);
            cboLinuxMemoryType.SelectedIndex = (int)currentEntry.LinuxMemoryType;
            warningNumericUpDown.SaveValueSet((decimal)currentEntry.WarningValue);
            errorNumericUpDown.SaveValueSet((decimal)currentEntry.ErrorValue);
        }
Ejemplo n.º 4
0
        private void LoadEntryDetails()
        {
            LinuxCPUEntry currentEntry = (LinuxCPUEntry)SelectedEntry;

            if (currentEntry == null)
            {
                currentEntry = new LinuxCPUEntry();
            }
            sshConnectionDetails  = currentEntry.SSHConnection;
            txtSSHConnection.Text = Linux.SSHConnectionDetails.FormatSSHConnection(sshConnectionDetails);

            chkUseOnlyTotalCPUvalue.Checked = currentEntry.UseOnlyTotalCPUvalue;
            nudMSSampleDelay.SaveValueSet(currentEntry.MSSampleDelay);
            warningNumericUpDown.SaveValueSet((decimal)currentEntry.WarningValue);
            errorNumericUpDown.SaveValueSet((decimal)currentEntry.ErrorValue);
        }
        private void LoadEntryDetails()
        {
            LinuxSSHCommandEntry currentEntry = (LinuxSSHCommandEntry)SelectedEntry;

            if (currentEntry == null)
            {
                currentEntry = new LinuxSSHCommandEntry();
            }
            sshConnectionDetails  = currentEntry.SSHConnection;
            txtSSHConnection.Text = Linux.SSHConnectionDetails.FormatSSHConnection(sshConnectionDetails);

            txtName.Text                      = currentEntry.Name;
            txtCommandText.Text               = currentEntry.CommandString;
            optEWG.Checked                    = currentEntry.ValueReturnCheckSequence == CollectorAgentReturnValueCheckSequence.EWG;
            cboReturnType.SelectedIndex       = (int)currentEntry.ValueReturnType;
            cboSuccessMatchType.SelectedIndex = (int)currentEntry.SuccessMatchType;
            txtGoodValueOrMacro.Text          = currentEntry.SuccessValueOrMacro;
            cboWarningMatchType.SelectedIndex = (int)currentEntry.WarningMatchType;
            txtWarningValueOrMacro.Text       = currentEntry.WarningValueOrMacro;
            cboErrorMatchType.SelectedIndex   = (int)currentEntry.ErrorMatchType;
            txtErrorValueOrMacro.Text         = currentEntry.ErrorValueOrMacro;
        }
Ejemplo n.º 6
0
        private void LoadEntryDetails()
        {
            LinuxDiskIOEntry currentEntry = (LinuxDiskIOEntry)SelectedEntry;

            if (currentEntry == null)
            {
                currentEntry = new LinuxDiskIOEntry();
            }
            sshConnectionDetails  = currentEntry.SSHConnection;
            txtSSHConnection.Text = Linux.SSHConnectionDetails.FormatSSHConnection(sshConnectionDetails);

            foreach (LinuxDiskIOSubEntry dsse in currentEntry.SubItems)
            {
                ListViewItem lvi = new ListViewItem()
                {
                    Text = dsse.Disk
                };
                lvi.SubItems.Add(dsse.WarningValue.ToString());
                lvi.SubItems.Add(dsse.ErrorValue.ToString());
                lvi.Tag = dsse;
                lvwDisks.Items.Add(lvi);
            }
        }