NRPE install on diskless boot
Posted: Thu Apr 03, 2014 11:20 am
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
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