Developers Documentation

×

Warning

301 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=82873f9c9a1f5784b951644363f20ef8

User Tools

Site Tools


Adding more monitoring metrics

ClearGLASS uses the open-source monitoring agent Collectd to collect monitoring data from the machines. When collectd gets installed, we enable a number of plugins that monitor server metrics like CPU, disk and network usage. The list of all preinstalled metrics that you can enable, is available when you click on the Add Graph button on the machine's page.

[image]

But there are many more plugins that can be configured to monitor various metrics and applications like web servers and databases. Depending on the plugin, you might need to install extra libraries on your server. For most of them, editing the collectd configuration file is enough. For others, like the Apache plugin, you'll need to also edit apache's conf file to add support for mod_status. Let us see some examples:

Apache

This example is based on enabling monitoring for Apache on a server running Ubuntu 14.04. Steps for other servers should be similar. First, you have to add support for mod_status on apache.

ExtendedStatus on 

   SetHandler server-status

Once you've added the above snippet on your apache.conf, edit /opt/mistio-collectd/collectd.conf and add some configuration for the collectd apache plugin:

LoadPlugin "apache"

    
        URL "http://localhost/mod_status?auto"
        User "collectd"
        Password "hoh2Coo6"
    

That's it. Restart collectd by running:

# /opt/mistio-collectd/collectd.sh restart

Head over to ClearGLASS and you should see the apache-related graphs:

[image]

content/en_us/cg_add-metrics.txt · Last modified: 2018/03/14 06:29 by cjones

https://clearos.com/dokuwiki2/lib/exe/indexer.php?id=content%3Aen_us%3Acg_add-metrics&1710843191