+ /* We don't accept remote commands from the manager - just in case. */
+ if(log_config->agent_cfg == 1 && log_config->accept_remote == 0)
+ {
+ merror("%s: Remote commands are not accepted from the manager. "
+ "Ignoring it on the agent.conf", ARGV0);
+
+ logf[pl].file = NULL;
+ logf[pl].ffile = NULL;
+ logf[pl].command = NULL;
+ logf[pl].alias = NULL;
+ logf[pl].logformat = NULL;
+ logf[pl].fp = NULL;
+ return(OS_INVALID);
+ }
+