Added syntax check and nagios restart. Now the script works as a stand-alone cron job.

Signed-off-by: Stefanie Forrester <sedgar@redhat.com>