Utility routines and classes for authoring Nagios plugins