Monitor trunk failures

Has anyone written a script that will send an e-mail if a trunk fails? If so, I would love to see an example.

This is something I came across a while ago - I have not tested it, but it is a starting point

http://www.siliconvp.us/modules.php?name=News&file=article&sid=5

HTH

M