in reply to Creating a perl script for database monitoring

In your loop over your tables, you call ->plugin_exit(, which will likely exit your script immediately.

Maybe you can find out how to check more than one metric from within a single script?