On May 12, 2008, at 8:16 AM, gentux31 wrote:
How do I catch the errors/exceptions? Cause now if it doesn't find a hostname it breaks?
That's what the try/except was for. The gethostbyaddr call is supposed to throw an exception (I tested this) when it fails to find any name for the IP. Make sure you have the indentation right in your transform.
Or if you were just asking if it would break if it found no hostname, no.. it won't. It will simply not create the bgppeer_name attribute for the event.
_______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
