Nagios on XenServer 5.5
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Nagios on XenServer 5.5
Good Morning,
I have nagios set-up on a xenserver host and receive this w/in Nagios for diskspace and raid.
CHECK_NRPE: Error - Could not complete SSL handshake.
nagios version 3.2.3
using nrpe on xen servers.
Im sure this is just a minor configuration issue.. any help would be greatly appreciated!
Thanks
I have nagios set-up on a xenserver host and receive this w/in Nagios for diskspace and raid.
CHECK_NRPE: Error - Could not complete SSL handshake.
nagios version 3.2.3
using nrpe on xen servers.
Im sure this is just a minor configuration issue.. any help would be greatly appreciated!
Thanks
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios on XenServer 5.5
Did you compile on both systems with ssl enabled? This would be done with ./configure --enable-ssl. Otherwise have you checked the configuration to be sure the hosts are allowed on the remote system side?
nano /usr/local/nagios/etc/nrpe.cfg
nano /etc/xinetd.d/nrpe
nano /usr/local/nagios/etc/nrpe.cfg
Code: Select all
Change:
allowed_hosts=127.0.0.1
To:
allowed_hosts=127.0.0.1,<nagios server ip>
Code: Select all
Change:
only_from = 127.0.0.1
To:
only_from = 127.0.0.1 <Nagios server ip>
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: Nagios on XenServer 5.5
Thanks for the reply..
I have 2 other xenservers utilizing nagios and reporting just fine.. but I am guessing the SSL is the issue
will running ./configure --enable-ssl enable ssl on the xenserver w/o interrupting production?
Thank You
Brian
I have 2 other xenservers utilizing nagios and reporting just fine.. but I am guessing the SSL is the issue
will running ./configure --enable-ssl enable ssl on the xenserver w/o interrupting production?
Thank You
Brian
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios on XenServer 5.5
Configure and installing should not effect the host machine its self. However it will stop the nrpe service while it installs.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: Nagios on XenServer 5.5
Im sorry I dont understand what you mean when you say installing? will enabling SSL just enable the default xen certificate? or is there an install that I need to do as well?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios on XenServer 5.5
You are just making and installing nrpe again, as it was not configured with ssl. The full commands are :
cd /tmp/nrpe-2.14
./configure --enable-ssl
make all
make install
This will overwrite existing nrpe binaries and correctly enable you to have ssl connections with it. It does not work off of internal certificates or have much to do with the xen server files itself.
cd /tmp/nrpe-2.14
./configure --enable-ssl
make all
make install
This will overwrite existing nrpe binaries and correctly enable you to have ssl connections with it. It does not work off of internal certificates or have much to do with the xen server files itself.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: Nagios on XenServer 5.5
I took this project over, and now see that there are no files w/in /tmp/ for nrpe
will i just need to DL the rmp package and place there?
will i just need to DL the rmp package and place there?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios on XenServer 5.5
Actually you will need the tar.gz file found here. Just run the following commands, then finish with the ones above:
Code: Select all
wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.14/nrpe-2.14.tar.gz/download
tar -xzf nrpe-2.14.tar.gz
cd nrpe-2.14
[run rest of commands from configure on]Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: Nagios on XenServer 5.5
when I run ./configure --enable-ssl i receive this
[root@XenHost8 nrpe-2.14]# ./configure --enable-ssl
bash: ./configure: Permission denied
I AM running this as root...
[root@XenHost8 nrpe-2.14]# ./configure --enable-ssl
bash: ./configure: Permission denied
I AM running this as root...
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: Nagios on XenServer 5.5
just changed the permissions on configure and now received this
[root@XenHost8 nrpe-2.14]# ./configure --enable-ssl
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/opt/nrpe-2.14/nrpe-2.14':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@XenHost8 nrpe-2.14]#
[root@XenHost8 nrpe-2.14]# ./configure --enable-ssl
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/opt/nrpe-2.14/nrpe-2.14':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@XenHost8 nrpe-2.14]#