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!

  • 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 […]
  • 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 […]
  • Keep your WordPress site secure!Keep your WordPress site secure! I work for a hosting company. On average, I’ll clean up at least 3-4 WordPress sites each month for our clients. Most of the time, they’re running on old versions of WordPress and have […]
  • Migrate WHM/cPanel from one server to a new one (script)!Migrate WHM/cPanel from one server to a new one (script)! We’ve started a site to house a script that will migrate your full WHM/cPanel server to new hosting. This takes the new WHM/cPanel backup files and will restore them including system […]
  • Import MySQL database from command lineImport MySQL database from command line You’ll need to import a database via command line from time to time – I’ll normally opt for this anyway. After seeing how easy it is, you’ll probably end up using the command line instead […]

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="">