How To Install python3-nagiosplugin on CentOS 8

In this tutorial we learn how to install python3-nagiosplugin on CentOS 8. python3-nagiosplugin is Library for writing Nagios (Icinga) plugins

Introduction

In this tutorial we learn how to install python3-nagiosplugin on CentOS 8.

What is python3-nagiosplugin

nagiosplugin is a Python class library which helps writing Nagios (or Icinga) compatible plugins easily in Python. It cares for much of the boilerplate code and default logic commonly found in Nagios checks, including - Nagios 3 Plugin API compliant parameters and output formatting - Full Nagios range syntax support - Automatic threshold checking - Multiple independend measures - Custom status line to communicate the main point quickly - Long output and performance data - Timeout handling - Persistent “cookies” to retain state information between check runs - Resume log file processing at the point where the last run left

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

Install python3-nagiosplugin on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install python3-nagiosplugin

Install python3-nagiosplugin on CentOS 8 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install python3-nagiosplugin

How To Uninstall python3-nagiosplugin on CentOS 8

To uninstall only the python3-nagiosplugin package we can use the following command:

sudo dnf remove python3-nagiosplugin

References

Summary

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