This guide is broken up into several sections and covers different Linux distributions and non- Linux operating systems.

Similar documents
Article Number: 602 Rating: Unrated Last Updated: Tue, Jan 2, 2018 at 5:13 PM

Article Number: 801 Rating: Unrated Last Updated: Tue, Mar 13, 2018 at 9:19 PM

This is sometimes necessary to free up disk space on a volume that cannot have extra disk space easily added.

Article Number: 569 Rating: 2.7/5 from 3 votes Last Updated: Tue, Sep 12, 2017 at 2:54 AM

There are separate firewall daemons for for IPv4 and IPv6 and hence there are separate commands which are provided below.

Purpose. Target Audience. Solution Overview NCPA. Using NCPA For Passive Checks

Article Number: 802 Rating: 4/5 from 1 votes Last Updated: Wed, Mar 7, 2018 at 5:20 PM

This documentation can used to generate a request that can be submitted to any of these CA types.

Article Number: 406 Rating: 3/5 from 2 votes Last Updated: Mon, Jun 5, 2017 at 3:08 AM. This document describes how to install NDOUtils from source.

Article Number: 513 Rating: 5/5 from 1 votes Last Updated: Tue, Jul 19, 2016 at 10:09 PM

Purpose. Target Audience. Install SNMP On The Remote Linux Machine. Nagios XI. Monitoring Linux Using SNMP

It is important to remember that an external worker needs all of the plugins installed on it so it can execute the checks that are handed to it.

Article Number: 549 Rating: Unrated Last Updated: Tue, May 30, 2017 at 11:02 AM

Digitizer operating system support

Offloading NDO2DB To Remote Server

OK: {C: 68% free / 99.51GB total} 'C: free'= g; ; ;0; 'C: free %'=68%;20;10;0;100

Article Number: 722 Rating: Unrated Last Updated: Thu, Jul 20, 2017 at 12:31 AM

Red Hat Ceph Storage 3

Server Monitoring. AppDynamics Pro Documentation. Version 4.1.x. Page 1

Argument 1 = A number (0, 1, 2, 3) that will be used as the exit code the script will exit with (this is how Nagios determines the status)

IOL INTACT Installation Guide

Arm Licence Server User Guide. Version 18.0

Red Hat Ceph Storage 3

Article Number: 38 Rating: Unrated Last Updated: Thu, Apr 28, 2016 at 9:49 PM

Applies to: SECURE WEB Version 1.3 and above

Installation of R Studio. Tushar B. Kute,

Downloading and installing Db2 Developer Community Edition on Red Hat Enterprise Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

Apache Manually Install Ubuntu On Windows 7 From Usb

Altova CbC Reporting Solution. Installation Guide

systemd: What to Know and How to Transition

Support Lifecycle Policy

Flush Dns Settings Linux Redhat 5 Step Step

Apache Install Instructions Win7 7 Php Mysql. Phpmyadmin Linux >>>CLICK HERE<<<

Zend Server Community Edition 5.1. Installation Guide. By Zend Technologies.

Manually Mount Usb Flash Drive Linux Command Line Redhat

Geneious Floating License Manager Version Biomatters Ltd

NRPE DOCUMENTATIOND. Copyright (c) Ethan Galstad. Last Updated: 17 November Contents

Getting Started with. Agents for Unix and Linux. Version

Orchid Core VMS Installation Guide

Introduction. What is Linux? What is the difference between a client and a server?

Linux Kung Fu. Stephen James UBNetDef, Spring 2017

Image Management Service. User Guide. Issue 03. Date

Howto disable the iptables firewall in Linux

VIRTUAL GPU SOFTWARE R384 FOR MICROSOFT WINDOWS SERVER

Fedora Linux Toolbox: Commands For Fedora, CentOS And Red Hat Power Users By Christopher Negus;Francois Caen READ ONLINE

CloudView NMS Agent User Guide. /multi-platform version/

Manual Install Package Rpm Linux Command Line

InstallAnywhere: Requirements

How to Install a DHCP Server in Ubuntu and Debian

Image Management Service. User Guide. Issue 08. Date

Installation Guide. Connection Broker. Advanced Capacity and Connection Management for Hybrid Clouds

Installing SmartSense on HDP

ZENworks Linux Management Version 6.5 Release Notes

SNMP Manager User s Manual

Qualys Release Notes

Logical Agent. Installation Guide

VIRTUAL GPU SOFTWARE R384 FOR MICROSOFT WINDOWS SERVER

Docker for HPC? Yes, Singularity! Josef Hrabal

Cloud Agent for Linux Installation Guide Agent Version , 2.0.2, 2.1. October 10, 2018

Unified Infrastructure Management Compatibility Matrix September 05, 2017

Altova CbC Reporting Solution. Installation Guide

Downloading and installing Db2 Developer Community Edition on Ubuntu Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

Geneious Floating License Manager Version Biomatters Ltd

Cloudera Manager Quick Start Guide

How To Manually Install Driver Ubuntu Server On Virtualbox

We have very limited time Won t cover extensive theory Won t cover writing SCAP policies - out of scope

How To Start Mysql Using Linux Command Line Client In Ubuntu

Zend Server Cluster Manager 5.5 Beta. Installation Guide. By Zend Technologies.

Parallels Virtuozzo Containers 4.6 for Linux Readme

Acronis Backup Version 11.5 Update 6 INSTALLATION GUIDE. For Linux Server APPLIES TO THE FOLLOWING PRODUCTS

Backing Up And Restoring Your Nagios XI System

Performing an ObserveIT Upgrade Using the Interactive Installer

Running Blockchain in Docker Containers Prerequisites Sign up for a LinuxONE Community Cloud trial account Deploy a virtual server instance

Orchid Fusion VMS Installation Guide

4 Installation from sources

4 Installation from sources

Dell EMC ME4 Series vsphere Client Plug-in

These instructions cover how to install and use pre-compiled binaries to monitor AIX 5.3 using NRPE.

Release Notes. Postgres Enterprise Manager v3.0. Table of Contents. I. Release Summary. II. New Features and Enhancements. A. Merge with pgadmin v1.

Acronis Backup & Recovery 11 Server for Linux

Deep Security 9.6 SP1. Supported Features by Platform

Red Hat Enterprise Linux 6.4 Security-enhanced. Linux User Guide >>>CLICK HERE<<<

How To Install Java Manually Linux Ubuntu Bit

INSTALLING INSTALLING INSTALLING

Manual Of Virtualbox Additions Ubuntu Server 12.04

Uninstalling And Manually Install Vmware Tools Ubuntu Guest

Veritas Storage Foundation Basic - Technical FAQ January 2009

Netop SecureM2M Software Gateway Installation and Configuration Guide

Install Oracle 11g Client On Linux Command Line

VIRTUAL GPU SOFTWARE R384 FOR RED HAT ENTERPRISE LINUX WITH KVM

HOW TO SECURELY CONFIGURE A LINUX HOST TO RUN CONTAINERS

NetVault Backup Compatibility Guide

Forces a physical drive offline. The drive enters the Failed state. Available in the Physical Device group on the maxview ribbon.

CS197U: A Hands on Introduction to Unix

Unified Infrastructure Management Compatibility Matrix June 26, 2015

Veritas NetBackup Enterprise Server and Server 6.x OS Software Compatibility List

Crontab To Run Every 5 Minutes In Hp-ux

INSTALLING INSTALLING INSTALLING

Course Wiki. Today s Topics. Web Resources. Amazon EC2. Linux. Apache PHP. Workflow and Tools. Extensible Networking Platform 1

Red Hat Enterprise Linux Atomic Host 7 Getting Started with Cockpit

Transcription:

NRPE - How To Uninstall NRPE Article Number: 741 Rating: Unrated Last Updated: Fri, Aug 11, 2017 at 1:02 AM Unins t a lling NRPE This document describes how to unins ta ll NRPE that is installed from source. The installation could have been performed using the linux- nrpe- agent that ships with Nagios XI OR directly from the source files. This KB article does not apply if you have installed NRPE using your operating system (OS) package manager like yum. The s teps in this KB artic le c o uld lead to unexpec ted res ults if yo u are no t familiar with the c o mmands being exec uted. If yo u are uns ure abo ut the s teps being pro vided it is rec o mmended to s eek advic e fro m the Nagio s Suppo rt Fo rums befo re pro c eeding. Na gio s XI D O NO T fo llo w this pro c edure o n yo ur Nagio s XI s erver! NRPE is a part o f Nagio s XI and perfo rming the c o mmands in this KB artic le c an res ult in a bro ken Nagio s XI s erver. This guide is broken up into several sections and covers different Linux distributions and non- Linux operating systems. It is assumed that you are logged onto the machine as the ro o t user, or a user with sufficient privileges. Some OS's like Ubuntu and SUSE have stricter user permissions, in those cases the listed commands have sudo in front of them to ensure you are able to complete the steps. A best effort has been made to ensure if you follow all the relevant steps you will completely remove NRPE. Please select your OS: Red Hat Enterprise Linux (RHEL) CentOS Oracle Linux Ubuntu SUSE SLES opensuse Leap Debian Raspbian Fedora Arch Linux

Gentoo FreeBSD Solaris Apple OS X RHEL C e nt O S O r a c le Linux Ide nt if y NRPE Dae mo n NRPE can be running as a dedicated service or via the XINETD daemon. You must identify this as the steps to stop and remove the service will be different. To identify if you are using XINETD execute the following command: file /etc/xinetd.d/nrpe This output indicates that you are using XINETD: /etc/xinetd.d/nrpe: ASCII text Follow the XINETD steps below. This output indicates that you are NOT using XINETD and hence must be using a dedicated service: /etc/xinetd.d/nrpe: cannot open `/etc/xinetd.d/nrpe' (No such file or directory) Follow the dedicated daemon steps below. St o p And Re mo ve XINETD Dae mo n Execute these commands to stop XINETD from running NRPE. Delete the configuration file: rm -f /etc/xinetd.d/nrpe Restart the XINETD daemon depending on your operating system version: ===== CentOS 5.x / 6x RHEL 5.x / 6x Oracle Linux 5.x / 6x ===== service xinetd restart ===== CentOS 7.x RHEL 7.x Oracle Linux 7.x ===== systemctl restart xinetd.service

Execute these commands to stop, disable and remove the NRPE service, depending on your operating system version: ===== CentOS 5.x RHEL 5.x Oracle Linux 5.x ===== service nrpe stop chkconfig nrpe off rm -f /etc/init.d/nrpe ===== CentOS 6.x RHEL 6.x Oracle Linux 6.x ===== stop nrpe rm -f /etc/init/nrpe.conf ===== CentOS 7.x RHEL 7.x Oracle Linux 7.x ===== systemctl stop nrpe.service systemctl disable nrpe.service rm -f /usr/lib/systemd/system/nrpe.service systemctl daemon-reload rm -f /usr/local/nagios/bin/nrpe* rm -f /usr/local/nagios/etc/nrpe* rm -f /usr/local/nagios/libexec/*nrpe* userdel nagios groupdel nagios

Ubunt u Ide nt if y NRPE Dae mo n NRPE can be running as a dedicated service or via the XINETD daemon. You must identify this as the steps to stop and remove the service will be different. To identify if you are using XINETD execute the following command: file /etc/xinetd.d/nrpe This output indicates that you are using XINETD: /etc/xinetd.d/nrpe: ASCII text Follow the XINETD steps below. This output indicates that you are NOT using XINETD and hence must be using a dedicated service: /etc/xinetd.d/nrpe: cannot open `/etc/xinetd.d/nrpe' (No such file or directory) Follow the dedicated daemon steps below. St o p And Re mo ve XINETD Dae mo n Execute these commands to stop XINETD from running NRPE. Delete the configuration file: sudo rm -f /etc/xinetd.d/nrpe Restart the XINETD daemon depending on your operating system version: ===== Ubuntu 13.x / 14.x ===== sudo service xinetd restart ===== Ubuntu 15.x / 16.x / 17.x ===== sudo systemctl restart xinetd Execute these commands to stop, disable and remove the NRPE service, depending on your operating system version:

===== Ubuntu 13.x / 14.x ===== sudo stop nrpe sudo rm -f /etc/init/nrpe.conf ===== Ubuntu 15.x / 16.x / 17.x ===== sudo systemctl stop nrpe.service sudo systemctl disable nrpe.service sudo rm -f /lib/systemd/system/nrpe.service sudo systemctl daemon-reload sudo rm -f /usr/local/nagios/bin/nrpe* sudo rm -f /usr/local/nagios/etc/nrpe* sudo rm -f /usr/local/nagios/libexec/*nrpe* sudo userdel nagios sudo groupdel nagios S US E S LES o pe ns US E Le a p Ide nt if y NRPE Dae mo n NRPE can be running as a dedicated service or via the XINETD daemon. You must identify this as the steps to stop and remove the service will be different. To identify if you are using XINETD execute the following command: file /etc/xinetd.d/nrpe

This output indicates that you are using XINETD: /etc/xinetd.d/nrpe: ASCII text Follow the XINETD steps below. This output indicates that you are NOT using XINETD and hence must be using a dedicated service: /etc/xinetd.d/nrpe: cannot open `/etc/xinetd.d/nrpe' (No such file or directory) Follow the dedicated daemon steps below. St o p And Re mo ve XINETD Dae mo n Execute these commands to stop XINETD from running NRPE. Delete the configuration file: sudo rm -f /etc/xinetd.d/nrpe Restart the XINETD daemon depending on your operating system version: ===== SUSE SLES 11.x ===== sudo /sbin/service xinetd restart ===== SUSE SLES 12.x opensuse ===== sudo systemctl restart xinetd Execute these commands to stop, disable and remove the NRPE service, depending on your operating system version: ===== SUSE SLES 11.x ===== sudo /sbin/service nrpe stop sudo rm -f /etc/init.d/nrpe ===== SUSE SLES 12.x opensuse ===== sudo systemctl stop nrpe.service sudo systemctl disable nrpe.service sudo rm -f /usr/lib/systemd/system/nrpe.service sudo systemctl daemon-reload

sudo rm -f /usr/local/nagios/bin/nrpe* sudo rm -f /usr/local/nagios/etc/nrpe* sudo rm -f /usr/local/nagios/libexec/*nrpe* ===== SUSE SLES 11.x ===== sudo /usr/sbin/userdel nagios sudo /usr/sbin/groupdel nagios ===== SUSE SLES 12.x opensuse ===== sudo userdel nagios sudo groupdel nagios De bia n Ra s pbia n All steps on Debian require to run as root. To become root simply run: Debian su Raspbian sudo -i All commands from this point onwards will be as root.

Ide nt if y NRPE Dae mo n NRPE can be running as a dedicated service or via the XINETD daemon. You must identify this as the steps to stop and remove the service will be different. To identify if you are using XINETD execute the following command: file /etc/xinetd.d/nrpe This output indicates that you are using XINETD: /etc/xinetd.d/nrpe: ASCII text Follow the XINETD steps below. This output indicates that you are NOT using XINETD and hence must be using a dedicated service: /etc/xinetd.d/nrpe: cannot open `/etc/xinetd.d/nrpe' (No such file or directory) Follow the dedicated daemon steps below. St o p And Re mo ve XINETD Dae mo n Execute these commands to stop XINETD from running NRPE. Delete the configuration file: rm -f /etc/xinetd.d/nrpe Restart the XINETD daemon depending on your operating system version: ===== Debian 7.x ===== service xinetd restart ===== Debian 8.x / 9.x ===== systemctl restart xinetd.service Execute these commands to stop, disable and remove the NRPE service, depending on your operating system version: ===== Debian 7.x ===== service nrpe stop update-rc.d nrpe disable rm -f /etc/init.d/nrpe

===== Debian 8.x / 9.x ===== systemctl stop nrpe.service systemctl disable nrpe.service rm -f /lib/systemd/system/nrpe.service systemctl daemon-reload rm -f /usr/local/nagios/bin/nrpe* rm -f /usr/local/nagios/etc/nrpe* rm -f /usr/local/nagios/libexec/*nrpe* userdel nagios groupdel nagios Fe do r a Ide nt if y NRPE Dae mo n NRPE can be running as a dedicated service or via the XINETD daemon. You must identify this as the steps to stop and remove the service will be different. To identify if you are using XINETD execute the following command: file /etc/xinetd.d/nrpe This output indicates that you are using XINETD: /etc/xinetd.d/nrpe: ASCII text

Follow the XINETD steps below. This output indicates that you are NOT using XINETD and hence must be using a dedicated service: /etc/xinetd.d/nrpe: cannot open `/etc/xinetd.d/nrpe' (No such file or directory) Follow the dedicated daemon steps below. St o p And Re mo ve XINETD Dae mo n Execute these commands to stop XINETD from running NRPE and restart the XINETD daemon. rm -f /etc/xinetd.d/nrpe systemctl restart xinetd.service Execute these commands to stop, disable and remove the NRPE service: systemctl stop nrpe.service systemctl disable nrpe.service rm -f /usr/lib/systemd/system/nrpe.service systemctl daemon-reload rm -f /usr/local/nagios/bin/nrpe* rm -f /usr/local/nagios/etc/nrpe* rm -f /usr/local/nagios/libexec/*nrpe* userdel nagios groupdel nagios

Ar c h Linux Execute these commands to stop, disable and remove the NRPE service: systemctl stop nrpe.service systemctl disable nrpe.service rm -f /usr/lib/systemd/system/nrpe.service systemctl daemon-reload rm -f /usr/local/nagios/bin/nrpe* rm -f /usr/local/nagios/etc/nrpe* rm -f /usr/local/nagios/libexec/*nrpe* userdel nagios groupdel nagios G e nt o o Execute these commands to stop, disable and remove the NRPE service, depending on your operating system init system: ===== init =====

service nrpe stop rc-update del nrpe default rm -f /etc/init.d/nrpe ===== systemd ===== systemctl stop nrpe.service systemctl disable nrpe.service rm -f /usr/lib/systemd/system/nrpe.service systemctl daemon-reload rm -f /usr/local/nagios/bin/nrpe* rm -f /usr/local/nagios/etc/nrpe* rm -f /usr/local/nagios/libexec/*nrpe* userdel nagios groupdel nagios Fr e e BS D Execute these commands to stop, disable and remove the NRPE service: service nrpe stop sed -i '' '/nrpe start/d' /etc/rc.local rm -f /etc/rc.d/nrpe

rm -f /usr/local/nagios/bin/nrpe* rm -f /usr/local/nagios/etc/nrpe* rm -f /usr/local/nagios/libexec/*nrpe* pw user del nagios pw group del nagios S o la r is Execute these commands to stop, disable and remove the NRPE service: svcadm disable nrpe svccfg delete svc:/network/nagios/nrpe:default rm -f /usr/local/nagios/bin/nrpe* rm -f /usr/local/nagios/etc/nrpe* rm -f /usr/local/nagios/libexec/*nrpe*

userdel nagios groupdel nagios Apple O S X Execute these commands to stop, disable and remove the NRPE service: sudo launchctl stop org.nagios.nrpe sudo launchctl remove org.nagios.nrpe sudo rm -f /Library/LaunchDaemons/org.nagios.nrpe.plist sudo rm -f /usr/local/nagios/bin/nrpe* sudo rm -f /usr/local/nagios/etc/nrpe* sudo rm -f /usr/local/nagios/libexec/*nrpe* sudo dscl localhost delete /Local/Default/Users/nagios sudo dscl localhost delete /Local/Default/Groups/nagios

Fina l Tho ught s For any support related questions please visit the Nagios Support Forums at: http://support.nagios.com/forum/ Posted by: tle a - Thu, Aug 10, 2017 at 8:05 PM. This article has been viewed 4449 times. Online URL: https://support.nagios.com/kb/article/nrpe- how- to- uninstall- nrpe- 741.html