#!/bin/bash
#----------------
# Testing nagios3
#----------------
set -e
result=$(python `dirname $0`/get_nagios_output.py /etc/nagios3/nagios.cfg 2>&1)

if [ "$result" == "0" ]; then
    echo "OK"
    exit 0
else
    echo $result
    exit 1
fi
