Use a single function to format output, and remove space in metric name.
print_result deduplicates code a bit; and replacing the space with an underscore is recommended by Icinga's documentation.
Migrated from D2482 (view on Phabricator)
print_result deduplicates code a bit; and replacing the space with an underscore is recommended by Icinga's documentation.
Migrated from D2482 (view on Phabricator)