monitor: Introduce get_command_name()