Wrote Nagios event controller