Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


check_uptime_nagios

Nagios - check-uptime

Install check_uptime

Note: You should really create an RPM :)

Download sourcecode

Install development tools

yum groupinstall "Development tools"

Compile uptime check

./configure
make
make install

Configure SELinux

yum install policycoreutils-python
semanage fcontext -a -t bin_t "/usr/local/nagios/libexec(/.*)?"
restorecon -Rv /usr/local/nagios/

Configure NRPE

echo "command[check_uptime]=/usr/local/nagios/libexec/check_uptime -c15: -w30:" >/etc/nrpe.d/uptime.cfg
service nrpe restart
check_uptime_nagios.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1