Merge commit 'v2.5.1'
[ossec-hids.git] / src / util / verify-agent-conf.c
diff --git a/src/util/verify-agent-conf.c b/src/util/verify-agent-conf.c
new file mode 100755 (executable)
index 0000000..ee684d0
--- /dev/null
@@ -0,0 +1,50 @@
+/* @(#) $Id$ */
+
+/* Copyright (C) 2010 Trend Micro Inc.
+ * All right reserved.
+ *
+ * This program is a free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General Public
+ * License (version 2) as published by the FSF - Free Software
+ * Foundation
+ */
+
+
+#include "shared.h"
+#include "config/localfile-config.h"
+#include "config/config.h"
+#include "logcollector/logcollector.h"
+
+
+#undef ARGV0
+#define ARGV0 "verify-agent-conf"
+
+
+
+/* main: v0.3: 2005/04/04 */
+int main(int argc, char **argv)
+{
+    int modules = 0;
+    logreader_config log_config;
+
+
+    /* Setting the name */
+    OS_SetName(ARGV0);
+        
+
+    modules|= CLOCALFILE;
+    modules|= CAGENT_CONFIG;
+    log_config.config = NULL;
+    if(ReadConfig(modules, AGENTCONFIG, &log_config, NULL) < 0)
+    {
+        return(OS_INVALID);
+    }
+
+    logff = log_config.config;       
+
+    return(0);
+
+
+}
+
+/* EOF */