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 […]
  • Delete cPanel account error_log filesDelete cPanel account error_log files If you have a large number of accounts on your server, you may also be wasting a lot of space with the error_log files in each account. Some can get very large – and while you want to […]
  • Lock down your phpMyAdmin access! There are a couple of ways that I lock it down.. I won’t get into specifics because I don’t want you (or you!) trying to find it, but I can’t count the number of times I’ve seen an old […]
  • Can’t afford a full time Linux admin?Can’t afford a full time Linux admin? If you’re just starting out, it’s tough being able to afford full time Linux support.  Why not employ Hosting Support Services instead?  We’re Red Hat certified, fluent with Red […]

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

*