{{tag>[nagios monitoring centos6.5]}} =====Nagios - check-uptime===== ====Install check_uptime==== **Note:** You should really create an RPM :) [[http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_uptime-with-full-support-for-notifications/details|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