Developers Documentation



301 error for file:

User Tools

Site Tools

Quick Start Guide

Setting up management and monitoring of your infrastructure is a matter of a few, simple steps. Let's go through them:

Step 1: Installation

On your ClearOS system, install the ClearGLASS app from the Marketplace. Once installation is complete, navigate to 'System' > 'Management' > 'ClearGLASS'. You'll then click on the link 'Go To ClearGLASS' as shown below.


Step 2: Registration

Register for an account. cg_createaccount.jpg Once you complete the form, you’ll get a confirmation e-mail. Click on the confirmation link and you’ll be transferred back and logged in to ClearGLASS.

If your machine cannot send e-mails to the outside world, you can still see your registration link. From the command line, issue the command “mailq” to pick up the message id then do “postcat -vq [message-id]”. You will be able to see the link there. Then all e-mails can then be deleted with “postsuper -d ALL”

Step 3: Adding your servers

If you’re adding cloud-based servers, you’ll need your API keys or your username and password, depending on the provider. If you want to add a bare-metal server, you’ll need the server’s IP and your username. If you are not sure where to find them, we’ve put together instructions for each provider to help you. To add your servers, click on the Add cloud button, choose your provider (or other server) and fill in the details.

Step 4: Making your servers connectable by ClearGLASS

ClearGLASS works better if you connect it to your servers using SSH in order to help you with setting up monitoring and enable the web shell. If SSH access is not possible or desirable, you can choose to manually install the collectd monitoring agent (as explained in the next section) but you'll be missing some features. To connect your server, first head over to the keys section and click on the Add button to set up your keypairs.

If you already have a private SSH key that you use to connect to the server, you can import it in ClearGLASS by pasting your private key on the text dialog or by uploading the key file.

If you want to create a new keypair, click on the Generate button to create a new SSH key and then on Add to add it to ClearGLASS. On the Keys section click on the key you created and copy the Public Key. Paste the public key on your server's ~/.ssh/authorized_keys file. For example, if you want to deploy this key on a server for the root user, you will need to paste the public key on file /root/.ssh/authorized_keys. If the /root/.ssh folder does not exist, you have to create it and set the correct permissions. Then paste the public key

# mkdir /root/.ssh # chmod -R 700 /root/.ssh # cat > /root/.ssh/authorized_keys … Once you have a key pair set up, it is time to associate it with your server. Head over to Machines section and then on your server's page. On the top right, click on keys, and then on Add key and select your newly added key. ClearGLASS will try to connect to the server on port 22 as the root user. If it succeeds your key will be added on the list. If it fails it will prompt you to provide an alternative username and port.

From now on, ClearGLASS can deploy your key automatically on any new servers created through the service. You can find more information regarding key management here.

Step 5: Enabling monitoring

a) If you've set up SSH access

If your server is connectable by ClearGLASS, you’ll see a blue bar appearing next to it on your machine list, indicating your server’s load. Click on the machine to go to the detailed view and then on the Enable button in the Monitoring section. ClearGLASS will then install the collectd open source agent and you'll start seeing the monitoring graphs once it is done.

b) Manual installation

If you don't want to give SSH access to ClearGLASS, you can always install the monitoring agent manually. Click on Enable Monitoring on your server and ClearGLASS will open a popup with a command that you can run on your server to install the agent.

If you are wondering what the command does, it downloads and runs a python script with two arguments, a uuid and a password. This will be provided to collectd in order to encrypt the packages containing monitoring data, so that ClearGLASS knows what server it talks to. The script ( will create a python virtual environment that will install ansible open source configuration management library inside the virtual environment and then run an ansible playbook ( that will install on the system collectd open source agent, and set it's configuration on /opt/mistio-collectd. Only dependency for the monitoring to function is that Python 2 is available on the system.

Step 6: Setting up alerting

Once monitoring is enabled, a graph will appear. Click on the Add Rule button just below the graph to set up your first alerting rule. E.g. if you want to get an email once the load exceeds 4, your rule should look like this:

Assuming you have a process that’s leaking memory, you can set up ClearGLASS to restart that process once your memory usage exceeds 95%.

That's it. You’ve successfully set up monitoring for your server and added your first alerting rules.

It is important that the ClearGLASS server's IP address can be resolved from its FQDN by each of the machines you are monitoring

If ClearGLASS is running on a server with a self-signed certificate, you will need to import its CA certificate onto the machines you are monitoring before starting the monitoring agent. See Trusting the Certificate Authority of ClearOS in Servers and Workstations for details.

content/en_us/cg_setting-up-clearglass.txt · Last modified: 2019/03/20 10:29 by NickH