content/integrate/nagios-with-redis-enterprise/_index.md
{{<banner-article>}} The Nagios plugin has been retired as of Redis Software version 7.2.4. {{</banner-article>}}
The Redis Software (RS) Nagios plugin enables you to monitor the status of RS related objects and alerts. The RS alerts can be related to the cluster, nodes, or databases.
The alerts that can be monitored via Nagios are the same alerts that can be configured in the RS UI in the Settings > Alerts page, or the specific Database > Configuration page.
All alert configurations (active / not active, setting thresholds, etc') can only be done through the RS UI, they cannot be configured in Nagios. Through Nagios you can only view the status and information of the alerts.
The full list of alerts can be found in the plugin package itself (in "/rlec_obj/rlec_services.cfg" file, more details below).
RS Nagios plugin support API password retrieval from Gnome keyring, KWallet, Windows credential vault, Mac OS X Keychain, if present, or otherwise Linux Secret Service compatible password store. With no keyring service available, the password is saved with base64 encoding, under the user home directory.
In order to configure the Nagios plugin you need to copy the files that come with the package into your Nagios environment and place them in a Nagios configuration directory. Or, alternatively you can copy parts of the package configuration into your existing Nagios configuration.
If Keyring capabilities are needed to store the password, python keyring package should be installed and used by following the below steps from the operating system CLI on Nagios machine:
Then, you need to update the local parameters, such as hostnames, addresses, and object IDs, to the values relevant for your RS deployment.
Finally, you need to set the configuration for each node and database you would like to monitor. More details below.
The RS Nagios package includes two components:
Below is the list of files included in these packages and instructions regarding what updates need to be made to these flies.
Note : The instructions below assume you are running on Ubuntu, have a clean Nagios installation, and the base Nagios directory is "/usr/local/nagios/"
Copy the folder named "libexec" from the plugin folder and its contents to "/usr/local/nagios/"
These files included in it are:
Note : The check_rlec_alert, check_rlec_node, check_rlec_bdb files are the actual plugin implementation. You can run each of them with a "h" switch in order to retrieve their documentation and their expected parameters.
Add the following lines to your "nagios.cfg":
Copy the configuration files along with their folders to "/usr/local/nagios/etc" and make the required updates, as detailed below.
rladmin status]({{< relref "/operate/rs/references/cli-utilities/rladmin/status" >}}) command output.rladmin status]({{< relref "/operate/rs/references/cli-utilities/rladmin/status" >}}) command output.