We use Nagios to send emails when a machine goes down. This works well. We have a self-made alerting system that has an API for issuing alerts. I would like to program against the Nagios alerts and would prefer not to have to parse emails.
Can Nagios logs alerts it sees into a file, or can be configured to run a script when it sees an alert? I could then write a program against this to hook into my alerter.
Thanks!