Preparing server devices

This section describes how to prepare Linux and Windows servers for monitoring.

Preparing Linux servers for monitoring

Resource Manager uses SNMP or SSH to monitor Linux servers.

For SNMP monitoring, install an SNMP package on the server (for example, Net-SNMP) and start the agent.

For SSH monitoring:
  • Install an SSH server package (for example, OpenSSH) and start the SSH daemon.
  • Monitoring Linux servers requires the ability to run the pvs, vgs, lvs, systemctl, initctl, and service commands remotely on your Linux server(s) using SSH. By default, most of these commands are only allowed to be run locally by the root user. If you want the root user to remotely run these commands, perform the following:
    1. Install the sudo package on your server.
    2. Allow the root user to execute commands via SSH without a TTY.
      1. Edit the /etc/sudoers file.
      2. Find the line containing root ALL=(ALL) ALL.
      3. Add the following line beneath it:
        Defaults:root !requiretty
      4. Save the changes and exit.
    Alternately, you can also set up a non-root user to remotely run these commands. Perform the following:
    1. Create a user named zenmonitor on your Linux servers for monitoring purposes.
    2. Install the sudo package on your server.
    3. Allow the zenmonitor user to run the commands via SSH without a TTY.
      1. Edit /etc/sudoers.d/zenoss or /etc/sudoers, if sudoers.d is not supported and add the following lines to the bottom of the file:
        Defaults:zenmonitor !requiretty
        Cmnd_Alias ZENOSS_LVM_CMDS = /sbin/pvs, /sbin/vgs, /sbin/lvs, \
            /usr/sbin/pvs, /usr/sbin/vgs, /usr/sbin/lvs
        Cmnd_Alias ZENOSS_SVC_CMDS = /bin/systemctl list-units *, \
            /bin/systemctl status *, /sbin/initctl list, /sbin/service --status-all, \
            /usr/sbin/dmidecode
        zenmonitor ALL=(ALL) NOPASSWD: ZENOSS_LVM_CMDS, ZENOSS_SVC_CMDS
      2. Save the changes, ensuring all the paths for these commands are correct.

Preparing Windows servers for monitoring

Resource Manager uses SNMP or WinRM to monitor Microsoft Windows systems as follows:

  • Microsoft Windows Server 2106 - WinRM only.

    SNMP support does not exist for Windows Server 2106.

  • Microsoft Windows Server 2012 and 2012 R2 - WinRM only.

    SNMP support does not exist for Windows Server 2012 .

  • Microsoft Windows Server 2008 R2 - SNMP v1/v2 or WinRM.

    SNMP v3 support does not exist for Windows Server 2008 R2.

To prepare a Windows 2008 system for SNMP monitoring, start the SNMP service.

To prepare a Windows system for WinRM monitoring, refer to the support article that describes the options and provides the procedures for configuring your systems.

To prepare a Windows system for WinRM monitoring, refer to the appendix, "Preparing Windows Systems."