Install nrpe on XenServer

Rob —  June 11, 2013 — 3 Comments

If you are using nagios in your hosting environment and need to install nrpe on your XenServer servers, here’s a good way to do it.
I’m using XenServer 6.1 (latest version).

First, install the epel repo and disable it by default:

Next, install nrpe:

If you get an error like this:

Then disable the Citrix repo by changing ‘enabled=1’ to ‘enabled=0’ in /etc/yum.repos.d/Citrix.repo and try again.

 

Set it to start automagically on boot:

Install Nagios plugins – these are some that we use..

Next, add the following line to the iptables config just before the REJECT line at the bottom:
(Found here: /etc/sysconfig/iptables – this will allow your nagios server to connect to your XenServer)

Next, restart the firewall:

Start nrpe:

Edit the nrpe config file (/etc/nagios/nrpe.cfg) and take a look at the check commands at the bottom. If you have any questions about how to get it set up further feel free to comment on this post!

Related posts from Linux Brigade!

  • Install XenServer via usb flash driveInstall XenServer via usb flash drive USB Flash drives are getting cheaper and cheaper lately. I just picked up few at staples – 16GB flash drives for just under $8. I like to use them to install Linux – I always seem to […]
  • Run fsck on a XenServer Virtual MachineRun fsck on a XenServer Virtual Machine You hope that you won’t ever need to, but you may one day need to run fsck on a Linux XenServer VM that won’t boot.. no worries, attach the storage from that VM on another VM and run it […]
  • Migrate mail from one server to another with imapsyncMigrate mail from one server to another with imapsync Have you been in the situation where you needed to move everyone’s mail from one provider to another?  It’s a pain to do using the mail client one at a time, but with this guide, you’ll be […]
  • Understanding cron job timesUnderstanding cron job times Often, you’ll want to use cron to schedule daily, weekly, hourly (etc…) tasks on your linux system(s). cPanel has a little GUI for it, but since I don’t trust GUIs very often, I like […]
  • Send mail via the command lineSend mail via the command line During your stint as a Linux administrator, you’ll likely want to send mail from the server you are working on. Whether its sending a quick test message or emailing yourself a file, it can […]

3 responses to Install nrpe on XenServer

  1. Yes! Man, you are on a roll! I’ve been missing my alerts, and this post came right on time. Thank you so much for these no-muss, no fuss directions. I’m pretty new to server maintenance and I swear some of so-called “Easy to Follow” instructions that I find are written for rocket scientists.

  2. Thanks for that. A very detailed and thorough explanation. I will give it a try using your guide and if I have any issues I wil post here for your help if you don’t mind. Very kind of you to offer to help anyone having trouble.

Trackbacks and Pingbacks:

  1. Links 12/6/2013: Linux 3.11 Previews, KDE Working in Wayland | Techrights - June 12, 2013

    […] Install nrpe on XenServer […]

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url=""> 

*