work so far on nagios_server role.

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2014-07-07 17:09:38 +00:00
parent 4ee5939b13
commit 649108c0c3
118 changed files with 1100 additions and 627 deletions

View file

@ -49,7 +49,7 @@ CRITICAL)
2)
echo -n "Restarting rsyslog service (3rd soft critical state)..."
# Call the init script to restart the rsyslog server
echo "#fedora-noc $hostalias - Attempting to reload rsyslog. $servicedesc is $servicestate (2nd check)" | /usr/bin/nc -w 1 value03 5050
echo "#fedora-noc $hostalias - Attempting to reload rsyslog. $servicedesc is $servicestate (2nd check)" | /usr/bin/nc -w 1 value01 5050
/usr/lib/nagios/plugins/check_nrpe -H $remotehost -c service_rsyslog_reload
;;
esac
@ -62,7 +62,7 @@ CRITICAL)
# point (unless you disabled notifications for this service)
HARD)
echo -n "Restarting rsyslog service..."
echo "#fedora-noc $hostalias - Attempting to restart rsyslog. $servicedesc is $servicestate" | /usr/bin/nc -w 1 value03 5050
echo "#fedora-noc $hostalias - Attempting to restart rsyslog. $servicedesc is $servicestate" | /usr/bin/nc -w 1 value01 5050
# Call the init script to restart the HTTPD server
/usr/lib/nagios/plugins/check_nrpe -H $remotehost -c service_rsyslog_restart
;;