main: goto config_err on invalid monitor index