Home » Categories » Multiple Categories

Nagios XI - Upgrading The Linux NRPE Agent

Overview

This KB article explains how to upgrade the Linux NRPE Agent for Nagios XI that has been previously installed following these instructions.

Documentation - Installing The Linux Agent

 

Upgrade Steps

An upgrade to NRPE v3.x is completed by running the fullinstall script explained in the documentation linked above. The fullinstall script will save a copy of the following existing config files:

/usr/local/nagios/etc/nrpe.cfg as /usr/local/nagios/etc/nrpe.cfg.saved

/usr/local/nagios/etc/nrpe/asterisk.cfg as /usr/local/nagios/etc/nrpe/asterisk.cfg.saved

/usr/local/nagios/etc/nrpe/common.cfg as /usr/local/nagios/etc/nrpe/common.cfg.saved

 

The fullinstall script will replace the existing config files with the default files that come with the installer. These saved copies will allow you to take any custom commands you have defined and add them back into the running configuration.

 

Recommendations

If you are affected by the upgrade due to your custom commands being replaced, you can future proof this from happening again when a newer version of NRPE is installed. They key to this is with the following directive defined in the nrpe.cfg file:

include_dir=/usr/local/nagios/etc/nrpe

 

Any file in this directory that has the .cfg extension will be read by NRPE when it starts. This allows you to have a file that contains your custom commands and will not be touched by the NRPE installer script script in the future.

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Monitoring Windows With SNMP
Viewed 7765 times since Tue, Jul 18, 2017
Nagios XI - Introduction: Getting Started with Nagios XI - NWC14
Viewed 3317 times since Thu, Feb 4, 2016
Nagios XI - Passive Monitoring With NRDS_Win
Viewed 3569 times since Thu, Jan 28, 2016
Nagios XI - Monitoring Performance Counters in Nagios Using NCPA
Viewed 7481 times since Thu, Mar 31, 2016
Nagios XI - Using the Negate Plugin
Viewed 5200 times since Thu, Jan 28, 2016
NRPE - Packet Size Explained
Viewed 23273 times since Thu, Jun 30, 2016
NRPE - How to install NRPE from source without xinetd on CentOS 6.
Viewed 10586 times since Wed, Apr 15, 2015
NRPE - How to install NRPE
Viewed 86482 times since Wed, Dec 17, 2014
Nagios XI - Using The SNMP Walk Wizard
Viewed 5040 times since Mon, Jul 17, 2017
Monitoring Office 365 Subscription Services
Viewed 4892 times since Fri, Dec 4, 2020