define command { command_name check_tomcat_heap_used command_line $PLUGINSDIR$/check_jmx4perl --url http://$HOSTNAME$:$TOMCATPORT$/$JOLOKIAPATH$ --name heap_memory_used --mbean java.lang:type=Memory --attribute HeapMemoryUsage --path used } define command { command_name check_tomcat_non_heap_used command_line $PLUGINSDIR$/check_jmx4perl --url http://$HOSTNAME$:$TOMCATPORT$/$JOLOKIAPATH$ --name non_heap_memory_used --mbean java.lang:type=Memory --attribute NonHeapMemoryUsage --path used }