Script for periodic logging of JMX attributes