How To Install pynag-examples on Fedora 36
Introduction
In this tutorial we learn how to install pynag-examples
on Fedora 36.
What is pynag-examples
Example scripts which manipulate Nagios configuration files. Provided are scripts which list services, do network discovery among other tasks.
We can use yum
or dnf
to install pynag-examples
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pynag-examples.
Install pynag-examples on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install pynag-examples
using dnf
by running the following command:
sudo dnf -y install pynag-examples
Install pynag-examples on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install pynag-examples
using yum
by running the following command:
sudo yum -y install pynag-examples
How To Uninstall pynag-examples on Fedora 36
To uninstall only the pynag-examples
package we can use the following command:
sudo dnf remove pynag-examples
pynag-examples Package Contents on Fedora 36
/usr/share/doc/pynag-examples
/usr/share/doc/pynag-examples/README
/usr/share/pynag/examples
/usr/share/pynag/examples/Model
/usr/share/pynag/examples/Model/edit_service.py
/usr/share/pynag/examples/Model/list_all_hostgroups.py
/usr/share/pynag/examples/Model/list_all_services.py
/usr/share/pynag/examples/Model/list_services_for_one_host.py
/usr/share/pynag/examples/Model/parse-configmain.py
/usr/share/pynag/examples/Model/remove_empty_configfiles.py
/usr/share/pynag/examples/Model/restructure_config_files.py
/usr/share/pynag/examples/Model/working_with_fields.py
/usr/share/pynag/examples/Parsers
/usr/share/pynag/examples/Parsers/find_orphans.py
/usr/share/pynag/examples/Parsers/get_command.py
/usr/share/pynag/examples/Parsers/get_contact.py
/usr/share/pynag/examples/Parsers/get_contactgroup.py
/usr/share/pynag/examples/Parsers/get_host.py
/usr/share/pynag/examples/Parsers/get_hostgroup.py
/usr/share/pynag/examples/Parsers/get_service.py
/usr/share/pynag/examples/Parsers/get_service_info.py
/usr/share/pynag/examples/Parsers/get_servicegroup.py
/usr/share/pynag/examples/Parsers/get_timeperiod.py
/usr/share/pynag/examples/Parsers/list_hosts_groups.py
/usr/share/pynag/examples/Parsers/list_services.py
/usr/share/pynag/examples/Parsers/optimize_config.py
/usr/share/pynag/examples/Parsers/parse_files.py
/usr/share/pynag/examples/Parsers/remove_host.py
/usr/share/pynag/examples/Parsers/remove_host_from_group.py
/usr/share/pynag/examples/Parsers/suggest_optimizations.py
/usr/share/pynag/examples/Plugins
/usr/share/pynag/examples/Plugins/check_cpu.py
/usr/share/pynag/examples/Plugins/check_dns.py
/usr/share/pynag/examples/Plugins/check_load.py
/usr/share/pynag/examples/Plugins/check_stuff.py
/usr/share/pynag/examples/Utils
References
Summary
In this tutorial we learn how to install pynag-examples
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).