How To Install collectd on Rocky Linux 8
Introduction
In this tutorial we learn how to install collectd
on Rocky Linux 8.
What is collectd
collectd is a daemon which collects system performance statistics periodically and provides mechanisms to store the values in a variety of ways, for example in RRD files.
We can use yum
or dnf
to install collectd
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install collectd.
Install collectd on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install collectd
using dnf
by running the following command:
sudo dnf -y install collectd
Install collectd on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install collectd
using yum
by running the following command:
sudo yum -y install collectd
How To Uninstall collectd on Rocky Linux 8
To uninstall only the collectd
package we can use the following command:
sudo dnf remove collectd
collectd Package Contents on Rocky Linux 8
/etc/collectd.conf
/etc/collectd.d
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/bc086eda35795bb87f30c76e9e20d68ecc1b4b
/usr/lib/.build-id/06
/usr/lib/.build-id/06/42d862531c5c60db3299091e50ad0bf2481d4c
/usr/lib/.build-id/08
/usr/lib/.build-id/08/38ea55e80783fad10c9163332990784d057c5f
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/326f058ef4186a48f2ec8ad67c011d3749e5e2
/usr/lib/.build-id/14
/usr/lib/.build-id/14/aa5c6cf8e6abb1427a7a5cbcb081dec5c0926d
/usr/lib/.build-id/15
/usr/lib/.build-id/15/f269d444cbf302af94471545b9983d007fd81e
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/2639b72382f27e83bbc730afbf5c16c293f5cc
/usr/lib/.build-id/22
/usr/lib/.build-id/22/c9cc12553184f0c60941297e9d5e45ea19847d
/usr/lib/.build-id/24
/usr/lib/.build-id/24/8def5720ea7262abfd7f01313a27614b8b4328
/usr/lib/.build-id/25
/usr/lib/.build-id/25/7d994cd8b13ace05d2a8289fb5cd8c49acac49
/usr/lib/.build-id/28
/usr/lib/.build-id/28/37c5e0aea28c368d9160b336249a5e0b3b6662
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/3b160a62f9ad6d5e72d5152eef18ed5e3ec112
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/2e1a403bf39ccbb7ee31599593fad79f5eb906
/usr/lib/.build-id/30
/usr/lib/.build-id/30/df5d02ebe96984519fe5716475154a59debdbe
/usr/lib/.build-id/31
/usr/lib/.build-id/31/d73f44412198623c6d6d081680bee61dcdfee3
/usr/lib/.build-id/32
/usr/lib/.build-id/32/2360cc193d6be7be51114d3f16530932a58927
/usr/lib/.build-id/32/633282217c162184bfa1150bbb7a196ceaee2d
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/858e281a646a9cc27b63d0ec9e50acf789cc24
/usr/lib/.build-id/40
/usr/lib/.build-id/40/3b0df6f656aea8ae99b75cdd36fb12d42627e1
/usr/lib/.build-id/47
/usr/lib/.build-id/47/caf43c98674a9bb071d69f2f069a4ea310ca19
/usr/lib/.build-id/49
/usr/lib/.build-id/49/13553a3d99671192eae3c0e65c9c825f405ab6
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/8d7e36bf49fdf32ea3c27f1592651384b2d83e
/usr/lib/.build-id/52
/usr/lib/.build-id/52/4007f395bebe01b300e0fcebdb8f6d4a072247
/usr/lib/.build-id/54
/usr/lib/.build-id/54/67b5202ab82b17dc6a5e150ad53e73d22616b8
/usr/lib/.build-id/56
/usr/lib/.build-id/56/4aa1a32d827415d6950188ce1f69791abaea3c
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/1f318e6ef3e2f6def87432f0890aed2badd92a
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/d4f09319afc8cf7922bb76e646018ec8eec57a
/usr/lib/.build-id/63
/usr/lib/.build-id/63/424d40cb09f0c1f8b30ebeb37c9436f692fc7b
/usr/lib/.build-id/65
/usr/lib/.build-id/65/1dc89b83e9cae7dcedf6d6f4eb1549fe1858c3
/usr/lib/.build-id/69
/usr/lib/.build-id/69/31e5aa4b35db006e14ee7292e878e5a47e2c6b
/usr/lib/.build-id/79
/usr/lib/.build-id/79/c851e41e86bbdf891a1c9945aef02cdfdc340f
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/0c1a097bd566e60e7098234c792b0c9d9181ea
/usr/lib/.build-id/82
/usr/lib/.build-id/82/806b2cb089a0fd7120b866e705b3ae627c9cd0
/usr/lib/.build-id/82/a4745606b40f04d117f63eb60e4a37c5b2670b
/usr/lib/.build-id/83
/usr/lib/.build-id/83/36a2d45f5c7d2cf0e56eec090d31e143603500
/usr/lib/.build-id/87
/usr/lib/.build-id/87/c766908a32d85c77431342484f72a36644812c
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/148b1c080340f8c7632c7e4ffcdb2c3f1655a4
/usr/lib/.build-id/90
/usr/lib/.build-id/90/e3a215fe825419f48358b6607ac893180f1e06
/usr/lib/.build-id/91
/usr/lib/.build-id/91/ecb741cf668fb93b0e04435baa177d1d9eaa48
/usr/lib/.build-id/93
/usr/lib/.build-id/93/18920df0abbd633659b58a6e7a68dd1d8d3208
/usr/lib/.build-id/96
/usr/lib/.build-id/96/67dfacf3eb5a56d97288de19b8ef3cbc321ece
/usr/lib/.build-id/98
/usr/lib/.build-id/98/7e6990cb95e1baeadb3662fe71f3624a91cc4a
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/44069e90a19010bc9bfd6cd5f304d1854d1d77
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/275bd0f0d4d57d1a15e7bdb5aa67f8da712728
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/0a5e7a2c7786c43e343c9cc12251781b76b384
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/b20015eddbe407c7e538300bf9aa07d8d1f0d5
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/186d142059296136fbaa366e5f6ee87f9e4a60
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/0c4d2dd4e2b69a4a63aa618d56d02b1554349d
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/dcb1a93387f166db7391c1f83f323f26b153df
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/1aaf97de063b877e694c860adcd09382153249
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/112ae45bc3a859166299f7eb75af5ff6312aa6
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/1779a9b826f7990cb9abd91d6d1c163edc4f7a
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/63ee17a0332a254e619b6ab6ebc90206991634
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/13a2ea0f164ce62aa403e5c980568351df2ef6
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/9e427790765b658ac2c8b803243a52750838ea
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/f47075010bfb3a64be276f5d7d1f457d267b70
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/8c94560bc860baa3a33abe6e4e9304e7c3655b
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/231f17c7654727bec6bca36eaa288d119b7d9d
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/271b4e158d4dcb07ba625b4342ce40886662d8
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/34c803c016708bb0f7046bd77fe87121d40775
/usr/lib/.build-id/d3/afbda9e473612c37b0f2e35c7763a2e403a4fb
/usr/lib/.build-id/da
/usr/lib/.build-id/da/a43546a11ca21f94529c383d019c306256ed0b
/usr/lib/.build-id/df
/usr/lib/.build-id/df/06a1af4c3ba7f011e76c9db924af07ba3b30f3
/usr/lib/.build-id/df/b9fdf3de1bc5094924f49bc62b301129ef854b
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/0ad078efb5219077ed0687372d9b94fdbff8da
/usr/lib/.build-id/e0/bd52f60100bb82294fa8d4c66371a7e01b4a67
/usr/lib/.build-id/e0/c966d78201cc4cb2186be48e419637f39a9817
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/a73c8cd104e57638bd0478708f9297471251cb
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/a851b3c8cf9d6b9a28619071f45a58c72443d8
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/d805d986f98b937b183f8ce598851441c9d3fc
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/97104d84c36111b4ae0cff14427504947393d1
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/5ffe015e7ef68ab57579e47a6f7ce925fc3c96
/usr/lib/.build-id/f0/93718ae9aada818120a9f226a3a3895274af70
/usr/lib/.build-id/f0/b295533ab28161be90e407704b306efc8b5738
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/4be3e5f45aa9fb74791096db94631b9de4c61d
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/d168bf62e7489554eff2fe06e680ebafbc5c1b
/usr/lib/systemd/system/collectd.service
/usr/lib64/collectd
/usr/lib64/collectd/aggregation.so
/usr/lib64/collectd/apcups.so
/usr/lib64/collectd/battery.so
/usr/lib64/collectd/cgroups.so
/usr/lib64/collectd/conntrack.so
/usr/lib64/collectd/contextswitch.so
/usr/lib64/collectd/cpu.so
/usr/lib64/collectd/cpufreq.so
/usr/lib64/collectd/cpusleep.so
/usr/lib64/collectd/csv.so
/usr/lib64/collectd/df.so
/usr/lib64/collectd/entropy.so
/usr/lib64/collectd/ethstat.so
/usr/lib64/collectd/exec.so
/usr/lib64/collectd/fhcount.so
/usr/lib64/collectd/filecount.so
/usr/lib64/collectd/fscache.so
/usr/lib64/collectd/hddtemp.so
/usr/lib64/collectd/interface.so
/usr/lib64/collectd/ipc.so
/usr/lib64/collectd/irq.so
/usr/lib64/collectd/load.so
/usr/lib64/collectd/logfile.so
/usr/lib64/collectd/madwifi.so
/usr/lib64/collectd/match_empty_counter.so
/usr/lib64/collectd/match_hashed.so
/usr/lib64/collectd/match_regex.so
/usr/lib64/collectd/match_timediff.so
/usr/lib64/collectd/match_value.so
/usr/lib64/collectd/mbmon.so
/usr/lib64/collectd/md.so
/usr/lib64/collectd/memcached.so
/usr/lib64/collectd/memory.so
/usr/lib64/collectd/multimeter.so
/usr/lib64/collectd/network.so
/usr/lib64/collectd/nfs.so
/usr/lib64/collectd/notify_nagios.so
/usr/lib64/collectd/ntpd.so
/usr/lib64/collectd/numa.so
/usr/lib64/collectd/olsrd.so
/usr/lib64/collectd/openvpn.so
/usr/lib64/collectd/pcie_errors.so
/usr/lib64/collectd/powerdns.so
/usr/lib64/collectd/processes.so
/usr/lib64/collectd/protocols.so
/usr/lib64/collectd/serial.so
/usr/lib64/collectd/statsd.so
/usr/lib64/collectd/swap.so
/usr/lib64/collectd/syslog.so
/usr/lib64/collectd/table.so
/usr/lib64/collectd/tail.so
/usr/lib64/collectd/tail_csv.so
/usr/lib64/collectd/target_notification.so
/usr/lib64/collectd/target_replace.so
/usr/lib64/collectd/target_scale.so
/usr/lib64/collectd/target_set.so
/usr/lib64/collectd/target_v5upgrade.so
/usr/lib64/collectd/tcpconns.so
/usr/lib64/collectd/teamspeak2.so
/usr/lib64/collectd/ted.so
/usr/lib64/collectd/thermal.so
/usr/lib64/collectd/threshold.so
/usr/lib64/collectd/unixsock.so
/usr/lib64/collectd/uptime.so
/usr/lib64/collectd/users.so
/usr/lib64/collectd/uuid.so
/usr/lib64/collectd/vmem.so
/usr/lib64/collectd/vserver.so
/usr/lib64/collectd/wireless.so
/usr/lib64/collectd/write_graphite.so
/usr/lib64/collectd/write_log.so
/usr/lib64/collectd/write_stackdriver.so
/usr/lib64/collectd/write_syslog.so
/usr/lib64/collectd/zfs_arc.so
/usr/sbin/collectd
/usr/sbin/collectdmon
/usr/share/collectd
/usr/share/collectd/types.db
/usr/share/doc/collectd
/usr/share/doc/collectd/AUTHORS
/usr/share/doc/collectd/ChangeLog
/usr/share/doc/collectd/README
/usr/share/licenses/collectd
/usr/share/licenses/collectd/COPYING
/usr/share/man/man1/collectd.1.gz
/usr/share/man/man1/collectdmon.1.gz
/usr/share/man/man5/collectd-exec.5.gz
/usr/share/man/man5/collectd-threshold.5.gz
/usr/share/man/man5/collectd-unixsock.5.gz
/usr/share/man/man5/collectd.conf.5.gz
/usr/share/man/man5/types.db.5.gz
/var/lib/collectd
References
Summary
In this tutorial we learn how to install collectd
on Rocky Linux 8 using yum and dnf.