Ben Stienstra

Linux, Unix, network, radio and more...

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: 2014/06/10 14:19 by admin