How To Install collectdmon on Kali Linux

In this guide, we’ll discuss How To Install collectdmon on Kali Linux. Also, we will demonstrate how to uninstall and update collectdmon.

One-liner install command

For those in a hurry, here's a one-line installation command:

sudo apt-get update && sudo apt -y install collectd-core

But if you are interested in the detailed steps with descriptions, the following information is for you.

What is collectdmon and what are the ways to install it?

Before beginning this tutorial, you will need access to a server or computer running Kali Linux. This guide was written specifically with a server running Kali Linux in mind, although it should also work on older, supported versions of the operating system.

Also, make sure you are running a regular, non-root user with sudo privileges configured on your server. When you have an account available, log in as your non-root user to begin.

There are several ways to install collectdmon on Kali Linux. You can use (links are clickable):

In the following sections, we will describe each method in detail. You can choose one of them or refer to the recommended one.

Install collectdmon using apt-get

First, update apt database with apt-get using the following command.

sudo apt-get update

After updating apt-get database, You can install collectdmon using apt by running the following command:

sudo apt -y install collectd-core

Install collectdmon using apt

Because collectdmon is available in Kali Linux’s default repositories, it is possible to install it from these repositories using the apt packaging system.

To begin, update apt database with apt using the following command.

sudo apt update

After updating apt database, You can install collectdmon using apt by running the following command:

sudo apt -y install collectd-core

Install collectdmon using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating aptitude database, You can install collectdmon by running the following command:

sudo aptitude -y install collectd-core

How to upgrade (update) a single package collectdmon using apt-get?

First, you will need to update packages index. Run update command as usual:

sudo apt-get update

Next, to upgrade only the collectdmon, e.g. single package, you should use the following format with the apt-get command/apt command:

sudo apt-get --only-upgrade install collectd-core

Note that this command will not install any new packages! If you wish to install the package if it doesn't exist you may leave out --only-upgrade part.

How To Uninstall collectdmon from Kali Linux

To uninstall only the collectdmon package you can execute the following command:

sudo apt-get remove collectd-core

Uninstall collectdmon and all its dependencies

To uninstall collectdmon and its dependencies that are no longer needed by Kali Linux, you can use the command below:

sudo apt-get -y autoremove collectd-core

Remove collectdmon with all configurations and data

To remove collectdmon configuration and data from your system you can run the following purge command:

sudo apt-get -y purge collectd-core

Remove collectdmon completely (configurations, data and all of its dependencies)

And lastly, you can run the next command to remove absolutely everything related to collectdmon package, e.g.: configurations, data and all of its dependencies. Just use this command:

sudo apt-get -y autoremove --purge collectd-core

Extra info and code examples

collectd is a small daemon which collects system information periodically and provides mechanisms to monitor and store the values in a variety of ways. Since the daemon doesn't need to startup every time it wants to update the values it's very fast and easy on the system. Also, the statistics are very fine grained since the files are updated every 10 seconds by default. The collected information can be used to find current performance bottlenecks (performance analysis) and predict future system load (capacity planning). This package contains the main program file and the plugins listed below (some of those plugins require additional libraries - for more details see /usr/share/doc/collectd-core/README.Debian.plugins) but no configuration. For a full installation (including configuration), see the "collectd" package. This package allows sites to, e.g., provide customizations (like a custom default configuration) on top of it without having to modify the "collectd" package. * AMQP output plugin: amqp * Apache and lighttpd statistics provided by mod_status: apache * APC UPS's charge, load, input/output/battery voltage, etc.: apcups * Ascent server statistics: ascent * Bosch and Freescale barometers: barometer * battery status: battery * bind9 name-server and zone statistics: bind * Ceph distributed storage system statitics: ceph * CGroups resource usage: cgroups * Chrony daemon statistics: Local clock drift, offset to peers: chrony * connection tracking table size: conntrack * number of context switches done by the operating system: contextswitch * CPU utilization: cpu * CPU frequency: cpufreq * CPU sleep: Time spent in suspend : cpusleep * output to comma separated values (CSV) files: csv * parse statistics from websites: curl * parse JSON files: curl_json * parse XML data: curl_xml * query data from a relational database: dbi * disk space usage: df * disk and partition throughput: disk * DNS traffic information: dns * DPDK link status and keep alive events: dpdkevents * DPDK interface statistics: dpdkstat * Distributed Replicated Block Device status: drbd * E-Mail statistics (count, traffic, spam scores and checks): email * amount of available entropy: entropy * execution of external programs: exec * count the number of open file handles: fhcount * count the number of files in directories: filecount * Linux file-system based caching framework statistics: fscache * Monitor gps related data through gpsd: gps * Send or receive values over the network using the gRPC framework: grpc * query data from Java processes using JMX: GenericJMX (Java based plugin) * receive and interpret Ganglia multicast traffic: gmond * harddisk temperature: hddtemp * Report the number of used and free hugepages: hugepages * Intel Resource Director Technology statistics: intel_rdt * network traffic: interface * IPC statistics: ipc * IPMI sensors information: ipmi * iptables statistics: iptables * IPVS connection statistics: ipvs * IRQ counters: irq * embedded Java Virtual Machine: java * system load averages: load * logging to files, STDOUT and STDERR: logfile * logging in logstash's JSON event format: log_logstash * embedded Lua interpreter: lua * Machine Check Exceptions notifications: mcelog * Atheros wireless LAN chipset statistics: madwifi * motherboard monitor: mbmon * query and parse data from a memcache daemon: memcachec * statistics of the memcached distributed caching system: memcached * memory usage: memory * read values from Modbus/TCP enabled devices: modbus * statistics from mon.itor.us: Monitorus (Perl based plugin) * Publishes and subscribes to MQTT topics: mqtt * multimeter statistics: multimeter * MySQL statistics provided by MySQL's "show status" command: mysql * detailed Linux network interface and routing statistics: netlink * IO via the network: network * NFS utilization: nfs * Nginx (a HTTP and E-Mail server/proxy) statistics: nginx * send desktop notifications to a notification daemon: notify_desktop * send notification E-mails: notify_email * send notifications to nagios: notify_nagios * NTP daemon's local clock drift, offset to peers, etc.: ntpd * UPS information: nut * Optimized Link State Routing daemon statistics: olsrd * OpenLDAP's cn=Monitor statistics: openldap * OpenVPN traffic and compression statistics: openvpn * OpenVZ statistics: OpenVZ (Perl based plugin) * Open vSwitch link state events: ovs_events * Open vSwitch bridge / interface statistics: ovs_stats * embedded Perl interpreter: perl * timing values from Pinba: pinba * network latency statistics: ping * PostgreSQL database statistics: postgresql * PowerDNS name server statistics: powerdns * number of processes: processes * information about network protocols: protocols * embedded Python interpreter: python * Redis server statistics: redis * write data via the RRD accelerator daemon: rrdcached * output to RRD files: rrdtool * lm_sensors information (e.g. CPU temperature, fan speeds): sensors * serial port traffic: serial * values from SNMP enabled network devices: snmp * receive and handle queries from SNMP master agent: snmp_agent * aggregate values received with the StatsD protocol: statsd * SMART statistics: smart * swap usage: swap * Linux synproxy statistics: synproxy * logging to syslog: syslog * parse table-like structured files: table * incremental parsing of logfiles: tail * incremental parsing of CSV files: tail_csv * number of TCP connections to specific ports: tcpconns * TeamSpeak2 server statistics: teamspeak2 * power consumption measurements from "The Energy Detective" (TED): ted * Linux ACPI thermal zone information: thermal * check thresholds and for missing values: threshold * statistics from Intel turbo-capable processors: turbostat * Tokyo Tyrant server statistics: tokyotyrant * external runtime interface: unixsock * system uptime: uptime * number of users logged into the system: users * set the hostname to an unique identifier: uuid * Varnish HTTP accelerator daemon statistics: varnish * CPU, disk, network statistics of guest systems: virt * detailed virtual memory statistics: vmem * system resources used by Linux-VServers: vserver * wireless network stats: wireless * send collected values to a graphite server: write_graphite * send collected values to a web-server: write_http * send collected values to an Apache Kafka message broker: write_kafka * send collected values to the logging subsystem: write_log * send collected values to MongoDB, a NoSQL database: write_mongodb * publish collected values as a Prometheus exporter: write_prometheus * send collected values to a Redis server: write_redis * send collected values to a Riemann server: write_riemann * send collected values to a Sensu client: write_sensu * send collected values to an OpenTSDB server: write_tsdb * XEN Hypervisor CPU stats: xencpu * ZFS's Adaptive Replacement Cache statistics: zfs_arc * data from Zookeeper's MNTR command: zookeeper

Conclusion

You now have a full guide on how to install collectdmon using apt, apt-get and aptitude tools. Also, we showed how to update as a single package and different ways to uninstall the collectdmon from Kali Linux.

See also:

How To Install collectdmon on CentOS 8

How To Install collectdmon on Ubuntu 22.04

How To Install collectdmon on Ubuntu 21.04

How To Install collectdmon on Kali Linux

How To Install collectdmon on Debian 11

How To Install collectdmon on Fedora 34

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z