check_uptime_nagios
This is an old revision of the document!
Install check_uptime
Note: You should really create an RPM :)
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.1389812754.txt.gz · Last modified: 2014/01/15 19:05 by admin