Install nrpe on XenServer

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!

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