Hello, I've installed Nagios Core 4.0.4 on a PC with CentOS 6.4 and gotten communication to it from the web interface. This node (the monitoring host) manages the network boot sequence for another ~20 diskless boot PC's (remote hosts) using, i believe, the /tftpboot/rootfs.gz image.
I want to monitor CPU loading on the remote hosts and so need to install NRPE and the plugins package to the boot image of the monitoring host. I am running into errors while attempting installation within the boot image. When logged into the "headnode" (monitoring host) as root:
cd /tftpboot
gzip rootfs64.gz -d
mount -o loop rootfs64 /mnt
i then copy the "nrpe-2.0.tar.gz" and "nagios-plugins-2.0.tar.gz" to the /mnt/tmp folder and tar them
cd /mnt/tmp
tar xzf nrpe-2.15.tar.gz
tar xzf nagios-plugins-2.0.tar.gz
Then change root to /mnt
chroot /mnt
cd /tmp/nagios-plugins-2.0
./configure
When issuing the ./configure command, the following error repeats:
./configure: line 464: expr: command not found
./configure.lineno: line 464: expr: command not found
./configure.lineno: line 464: expr: command not found
./configure.lineno: line 464: expr: command not found
./configure.lineno: line 464: expr: command not found
./configure.lineno: line 464: expr: command not found
etc
I expect this has something to do with the available installation programs. echo $PATH is:
/usr/local/sbin: /usr/local/sbin:/sbin:/bin:/usr/sbin/usr/bin:/root/bin
However, almost no programs are available from within chroot (yum, tar, etc). Does anyone have experience with installing NRPE on network (diskless) boot centOS systems? advise or direction is greatly appreciated
Tony
NRPE install on diskless boot
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: NRPE install on diskless boot
Honestly, I would highly suggest building them on an alternative system that has all the build tools, and copying them into the correct locations on your systems, or using the offline nrpe build changes that I had done a while ago.
http://assets.nagios.com/downloads/nagi ... ine.tar.gz
If you don't mind using xinetd, ./fullinstall -p will create a tar with all the built binaries, that you can untar and use ./fullinstall -o to install to the correct locations on your boot image.
You will then have to build the nagios plugins stuff, which should basically go like:
Move those to your build image and untar.
In both cases, you will need to be sure library and some tool dependencies exist like net-snmp and openssl. But otherwise that should be about it.
http://assets.nagios.com/downloads/nagi ... ine.tar.gz
If you don't mind using xinetd, ./fullinstall -p will create a tar with all the built binaries, that you can untar and use ./fullinstall -o to install to the correct locations on your boot image.
You will then have to build the nagios plugins stuff, which should basically go like:
Code: Select all
./tools/setup
./configure
make; make install
tar czf plugins.tar.gz /usr/local/nagios/libexec/In both cases, you will need to be sure library and some tool dependencies exist like net-snmp and openssl. But otherwise that should be about it.
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.