How To Install pynag on Fedora 34

pynag is Python modules and utilities for Nagios plugins and configuration

Introduction

In this tutorial we learn how to install pynag on Fedora 34.

What is pynag

Python modules and utilities for pragmatically handling Nagios configuration file maintenance, status information, log file parsing and plug-in development.

We can use yum or dnf to install pynag on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install pynag.

Install pynag on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install pynag

Install pynag on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install pynag using yum by running the following command:

sudo yum -y install pynag

How To Uninstall pynag on Fedora 34

To uninstall only the pynag package we can use the following command:

sudo dnf remove pynag

pynag Package Contents on Fedora 34

/usr/bin/pynag
/usr/lib/python3.9/site-packages/pynag
/usr/lib/python3.9/site-packages/pynag-1.1.2-py3.9.egg-info
/usr/lib/python3.9/site-packages/pynag-1.1.2-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/pynag-1.1.2-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/pynag-1.1.2-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/pynag-1.1.2-py3.9.egg-info/requires.txt
/usr/lib/python3.9/site-packages/pynag-1.1.2-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/pynag/Control
/usr/lib/python3.9/site-packages/pynag/Control/Command
/usr/lib/python3.9/site-packages/pynag/Control/Command/__init__.py
/usr/lib/python3.9/site-packages/pynag/Control/Command/__pycache__
/usr/lib/python3.9/site-packages/pynag/Control/Command/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Control/Command/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Control/Command/__pycache__/autogenerated_commands.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Control/Command/__pycache__/autogenerated_commands.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Control/Command/autogenerated_commands.py
/usr/lib/python3.9/site-packages/pynag/Control/__init__.py
/usr/lib/python3.9/site-packages/pynag/Control/__pycache__
/usr/lib/python3.9/site-packages/pynag/Control/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Control/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Model
/usr/lib/python3.9/site-packages/pynag/Model/EventHandlers
/usr/lib/python3.9/site-packages/pynag/Model/EventHandlers/__init__.py
/usr/lib/python3.9/site-packages/pynag/Model/EventHandlers/__pycache__
/usr/lib/python3.9/site-packages/pynag/Model/EventHandlers/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Model/EventHandlers/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Model/__init__.py
/usr/lib/python3.9/site-packages/pynag/Model/__pycache__
/usr/lib/python3.9/site-packages/pynag/Model/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Model/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Model/__pycache__/all_attributes.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Model/__pycache__/all_attributes.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Model/__pycache__/macros.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Model/__pycache__/macros.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Model/all_attributes.py
/usr/lib/python3.9/site-packages/pynag/Model/macros.py
/usr/lib/python3.9/site-packages/pynag/Parsers
/usr/lib/python3.9/site-packages/pynag/Parsers/__init__.py
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/config_parser.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/config_parser.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/errors.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/errors.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/extra_opts.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/extra_opts.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/livestatus.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/livestatus.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/logs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/logs.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/main.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/main.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/multisite.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/multisite.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/object_cache.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/object_cache.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/retention_dat.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/retention_dat.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/ssh_config.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/ssh_config.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/status_dat.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/__pycache__/status_dat.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Parsers/config_parser.py
/usr/lib/python3.9/site-packages/pynag/Parsers/errors.py
/usr/lib/python3.9/site-packages/pynag/Parsers/extra_opts.py
/usr/lib/python3.9/site-packages/pynag/Parsers/livestatus.py
/usr/lib/python3.9/site-packages/pynag/Parsers/logs.py
/usr/lib/python3.9/site-packages/pynag/Parsers/main.py
/usr/lib/python3.9/site-packages/pynag/Parsers/multisite.py
/usr/lib/python3.9/site-packages/pynag/Parsers/object_cache.py
/usr/lib/python3.9/site-packages/pynag/Parsers/retention_dat.py
/usr/lib/python3.9/site-packages/pynag/Parsers/ssh_config.py
/usr/lib/python3.9/site-packages/pynag/Parsers/status_dat.py
/usr/lib/python3.9/site-packages/pynag/Plugins
/usr/lib/python3.9/site-packages/pynag/Plugins/__init__.py
/usr/lib/python3.9/site-packages/pynag/Plugins/__pycache__
/usr/lib/python3.9/site-packages/pynag/Plugins/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Plugins/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Plugins/__pycache__/classic_threshold_syntax.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Plugins/__pycache__/classic_threshold_syntax.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Plugins/__pycache__/new_threshold_syntax.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Plugins/__pycache__/new_threshold_syntax.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Plugins/classic_threshold_syntax.py
/usr/lib/python3.9/site-packages/pynag/Plugins/new_threshold_syntax.py
/usr/lib/python3.9/site-packages/pynag/Utils
/usr/lib/python3.9/site-packages/pynag/Utils/__init__.py
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/checkresult.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/checkresult.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/decorators.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/decorators.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/git.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/git.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/importer.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/importer.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/metrics.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/metrics.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/misc.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/misc.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/nsca.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/nsca.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/paths.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/paths.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/states.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/__pycache__/states.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/Utils/checkresult.py
/usr/lib/python3.9/site-packages/pynag/Utils/decorators.py
/usr/lib/python3.9/site-packages/pynag/Utils/git.py
/usr/lib/python3.9/site-packages/pynag/Utils/importer.py
/usr/lib/python3.9/site-packages/pynag/Utils/metrics.py
/usr/lib/python3.9/site-packages/pynag/Utils/misc.py
/usr/lib/python3.9/site-packages/pynag/Utils/nsca.py
/usr/lib/python3.9/site-packages/pynag/Utils/paths.py
/usr/lib/python3.9/site-packages/pynag/Utils/states.py
/usr/lib/python3.9/site-packages/pynag/__init__.py
/usr/lib/python3.9/site-packages/pynag/__pycache__
/usr/lib/python3.9/site-packages/pynag/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/__pycache__/errors.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pynag/__pycache__/errors.cpython-39.pyc
/usr/lib/python3.9/site-packages/pynag/errors.py
/usr/share/doc/pynag
/usr/share/doc/pynag/AUTHORS
/usr/share/doc/pynag/CHANGES
/usr/share/doc/pynag/LICENSE
/usr/share/doc/pynag/README.md
/usr/share/man/man1/pynag.1.gz
/usr/share/pynag

References

Summary

In this tutorial we learn how to install pynag on Fedora 34 using yum and dnf.