Wondering if someone could help me out with a simple transform.  I use this 
transform for my BigIP LTM devices:


Code:
evt.component = "Node: %s:%s" % (evt.bigipNotifyObjNode, evt.bigipNotifyObjPort)



This adds the IP/Port of the service that is down to the event.  I would like 
to display the hostname (bigipNotifyObjNode contains only the IP address).  I 
tried to modify the transform to:

Code:

evt.component = "Node: %s:%s" % (gethostbyaddr(evt.bigipNotifyObjNode), 
evt.bigipNotifyObjPort)



It doesn't appear as red text, so it appears to be valid code.  But, whenever 
the event comes in, the "Component" field is empty.  Any ideas?

Thanks!




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=29749#29749

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to