Let me guess: You have been using UCM Collector to monitor your server infrastructure, and everything is going great. Except for one minor issue: Whenever a new server spins up, you need to spend 2 to 3 minutes to install the collector agent on the new server. And sometimes, you forget to install the UCM Collector on a new server, and your monitoring has gaps that you are not even aware of.

This blog talks about a nifty little UCM feature that many users are not aware of. Did you know that you can automate the installation process for UCM Collector for Linux, Windows or Mac servers? You can write scripts to ensure that the UCM Collector is installed and monitoring is automatically started as soon as a new server gets added to your environment.

Free up your time and also be 100% confident that nothing has slipped through the gaps causing a monitoring black hole that you are not even aware of.

Prerequisites

Uptime Cloud Monitor from IDERA offers a SAAS based out-of-the-box monitoring solution for MySQL that is easy to set up. If you are not familiar with the concept of custom metrics as used in Uptime Cloud Monitor, please go through Custom Metrics information once before continuing with this document.

  1. Uptime Cloud Monitor account.
    If you do not already have an account, you can sign up for a 14 day FREE TRIAL of Uptime Cloud Monitor here (no Credit Card required).
  2. Servers up and running in your environment (this can be on your server or virtual machines on the cloud).
  3. For Windows server all the servers in infrastructure must be accessible through any of the following authentication mechanism:
    1. Windows Domain
    2. Workgroup
  4. For Linux Server chef must be configured for all the servers in an infrastructure.
  5. Root access to the server to install the server monitoring agent.

Monitor Servers in bulk using server monitoring agent from Uptime Cloud Monitor

UCM provides support for monitoring for Linux and Windows servers in bulk.

For Windows Servers

To install windows collector on multiple windows servers, windows servers in the infrastructure must be accessible either by Workgroup connection or Active Directory.

For Linux Servers

Uptime provides support for Chef. If you are using chef to manage your infrastructure, you can monitor all of your servers by merely adding cookbook supplied by UCM to your run list of your chef-workstation.

Steps to monitor Windows Servers in bulk

There are a few steps that you need to do to install collector in multiple windows servers:

  1. Go to ‘add server’ option in UCM Servers tab.
  2. Select ‘Windows’ option.

    Figure 1: Add server page.
  3. Scroll down to option for install Uptime Cloud Monitor in bulk.

    Figure 2: Add Windows servers in bulk option.
  4. Copy the script using the copy icon available in the right.
  5. Run the script in PowerShell with administrative access.
  6. New PowerShell instance will open and asks for the following inputs.

    Figure 3: Set configuration options.
    Inputs required:
    1. (A) Are you using .NET version less than 4.6? (Yes/No)
    2. Do you use Windows Domain (Yes/No)
      Enter ‘yes’ if your Windows servers in infrastructure are accessible by Active Directory.
    3. (B) Do you use windows workgroup connectivity (Yes/No)
      Enter ‘yes’ if your windows servers in infrastructure are accessible by workgroup connection.
    4. (C) Absolute path of the file containing a list of servers in the format specified by the installer.
      Create a list of servers and their details as in format specified, and provide the absolute path of the file to the installer.
  7. For installing on workgroup accessible Windows servers
    1. Set ‘yes’ for workgroup connection
    2. Provide the absolute path of the file containing a list of all the servers to be monitored by UCM (as mentioned in 6-(C) point) with credentials.
      The basic format of the file is
      ServerName-1 UserName1 Password1
      ServerName-2 UserName2 Password2
      (and so on)
      Separated with spaces in between.
  8. For installing on Active Directory accessible Windows servers
    1. Set 'yes' for Active Directory Connection
    2. Enter Active Directory details as asked

      Figure 4: Set configuration options.
      Options:
      1. (D) Choose 1 for connection using domain controller username and password
      2. (E) Choose 2 for Individual server username and passwords
      3. (F) Absolute path of the file containing a list of servers in the format specified by the installer.
      4. Then enter Active Directory details.
  9. For Connection using domain controller username and password
    1. Provide the username and password of the domain controller.
    2. Provide the absolute path of the file containing the list of all the servers to be monitored by UCM (as mentioned in step 8F).
      The general format of the necessary file is:
      ServerName-1
      ServerName-2
      (and so on)
      With one server name in each line
  10. For connection using individual servers username and password
    1. Provide the absolute path of the file containing a list of all the servers to be monitored by UCM (as mentioned in 6-(C) point ) with credentials.
      The basic format of the file is:
      ServerName-1 UserName1 Password1
      ServerName-2 UserName2 Password2
      (and so on)
      Separated with spaces in between.
  11. Sample file for a list of all servers in the above mentioned format with credentials.

    Figure 5: Sample input file for the server list.
  12. The script will install UCM Collector to all the servers listed in the file provided to the installer.
  13. Now UCM will start monitoring all your servers in which installation is completed.

Steps to monitor Linux Servers in bulk

There are few steps that you need to do to install collector to multiple Linux servers:

  1. Go to ‘add server’ option to UCM Servers tab.

    Figure 6: Add server page.
  2. Scroll down to Deployment Models and select Chef.
  3. Follow the instructions mentioned on the screen to monitor servers.

    Figure 7: Instructions to run Chef.
  4. Download the Uptime Cloud Monitor cookbook to your chef-workstations.
  5. Replace YOUR_USER_API_KEY in attributes file with your userapi key.
  6. Add this to run_list and run chef-client on nodes.
  7. The collector will be installed on all your Linux servers to be monitored by UCM.
  8. Now UCM will start monitoring your servers, and you will be able to see your servers and their stats on UCM servers Dashboard if the installation is successful.

Uptime Cloud Monitor Free Trial! Sign up today!

Sign up for a 14 day FREE TRIAL of Uptime Cloud Monitor (no Credit Card required).

You can find more information about Uptime Cloud Monitor pricing options here.

We charge only $0.08 per month per metric!

Sign up today!

Anonymous