How To Install collectd-web on CentOS 8

collectd-web is Contrib web interface to viewing rrd files

Introduction

In this tutorial we learn how to install collectd-web on CentOS 8.

What is collectd-web

This package will allow for a simple web interface to view rrd files created by collectd.

We can use yum or dnf to install collectd-web on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install collectd-web.

Install collectd-web on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install collectd-web using dnf by running the following command:

sudo dnf -y install collectd-web

Install collectd-web on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install collectd-web using yum by running the following command:

sudo yum -y install collectd-web

How To Uninstall collectd-web on CentOS 8

To uninstall only the collectd-web package we can use the following command:

sudo dnf remove collectd-web

collectd-web Package Contents on CentOS 8

/etc/collection.conf
/etc/httpd/conf.d/collectd.conf
/usr/share/collectd/collection3
/usr/share/collectd/collection3/README
/usr/share/collectd/collection3/bin
/usr/share/collectd/collection3/bin/.htaccess
/usr/share/collectd/collection3/bin/graph.cgi
/usr/share/collectd/collection3/bin/index.cgi
/usr/share/collectd/collection3/bin/json.cgi
/usr/share/collectd/collection3/etc
/usr/share/collectd/collection3/etc/.htaccess
/usr/share/collectd/collection3/etc/collection.conf
/usr/share/collectd/collection3/lib
/usr/share/collectd/collection3/lib/.htaccess
/usr/share/collectd/collection3/lib/Collectd
/usr/share/collectd/collection3/lib/Collectd/Config.pm
/usr/share/collectd/collection3/lib/Collectd/Graph
/usr/share/collectd/collection3/lib/Collectd/Graph/Common.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Config.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type
/usr/share/collectd/collection3/lib/Collectd/Graph/Type.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type/ArcCounts.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type/Df.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type/GenericIO.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type/GenericStacked.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type/JavaMemory.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type/Load.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type/PsCputime.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type/TableSize.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/Type/Wirkleistung.pm
/usr/share/collectd/collection3/lib/Collectd/Graph/TypeLoader.pm
/usr/share/collectd/collection3/share
/usr/share/collectd/collection3/share/.htaccess
/usr/share/collectd/collection3/share/navigate.js
/usr/share/collectd/collection3/share/shortcut-icon.png
/usr/share/collectd/collection3/share/style.css
/usr/share/collectd/collection3/test.px

References

Summary

In this tutorial we learn how to install collectd-web on CentOS 8 using yum and dnf.