mon: check correct length of command

Signed-off-by: Dan Mick <dan.mick@inktank.com>