The company I work for uses Trac quite heavily, and I was recently tasked with getting Nagios up and running to replace our current monitoring system, I was wondering if anyone had done any kind of trac/nagios integration that would allow creation of a trac ticket from a nagios alert? I did some searching but didn't come up with anything.
There seems to be an email2ticket script, and it would seem easy to make nagios have an alert in the right format. I'm not sure what you want to do is wise, though - we have nagios monitoring a lot of stuff and get alerts that don't need tickets (load spikes, upstream ISP is out for a few minutes and comes back, distant host goes off the net (we watch so we are aware of issues, even if they aren't ours to fix). So you'll have to be careful, and also maybe think about a way to have tickets closed and reopened when nagios sees a recovery. Perhaps you have a 24x7 NOC an want to be really on top of things, in which case this would make sense. If you write a nagios plugin that can connect to a trac, log in, and do a ticket query, and error if the server isn't running, that would be great - it's on my group's todo list and I'll share when it works, but it's not going to happen soon. The problem is that apache, even with ssl can be fine but trac can be hosed because of mod_python leaks, or db not upgraded, or whatever - our existing nagios monitoring has failed to notice some problems.
pgp9VKk96YhQS.pgp
Description: PGP signature
