How To Install munin-plugins-java on Ubuntu 18.04

In this tutorial we learn how to install munin-plugins-java on Ubuntu 18.04. munin-plugins-java is network-wide graphing framework (java plugins for node)

Introduction

In this tutorial we learn how to install munin-plugins-java on Ubuntu 18.04.

What is munin-plugins-java

munin-plugins-java is:

Munin is a highly flexible and powerful solution used to create graphs of virtually everything imaginable throughout your network, while still maintaining a rattling ease of installation and configuration.

This package contains the java based plugins that are used by munin-node to monitor Java Management Extensions (JMX).

Munin is written in Perl, and relies heavily on Tobi Oetiker’s excellent RRDtool. To see a real example of Munin in action, you can follow a link from http://munin-monitoring.org/ to a live installation.

There are three methods to install munin-plugins-java on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install munin-plugins-java Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install munin-plugins-java using apt-get by running the following command:

sudo apt-get -y install munin-plugins-java

Install munin-plugins-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install munin-plugins-java using apt by running the following command:

sudo apt -y install munin-plugins-java

Install munin-plugins-java 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install munin-plugins-java using aptitude by running the following command:

sudo aptitude -y install munin-plugins-java

How To Uninstall munin-plugins-java on Ubuntu 18.04

To uninstall only the munin-plugins-java package we can use the following command:

sudo apt-get remove munin-plugins-java

Uninstall munin-plugins-java And Its Dependencies

To uninstall munin-plugins-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove munin-plugins-java

Remove munin-plugins-java Configurations and Data

To remove munin-plugins-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge munin-plugins-java

Remove munin-plugins-java configuration, data, and all of its dependencies

We can use the following command to remove munin-plugins-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge munin-plugins-java

References

Summary

In this tutorial we learn how to install munin-plugins-java package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.