ee684d0f8c790a1bc18094931afe59dd26e13e23
[ossec-hids.git] / src / util / verify-agent-conf.c
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2010 Trend Micro Inc.
4  * All right reserved.
5  *
6  * This program is a free software; you can redistribute it
7  * and/or modify it under the terms of the GNU General Public
8  * License (version 2) as published by the FSF - Free Software
9  * Foundation
10  */
11
12
13 #include "shared.h"
14 #include "config/localfile-config.h"
15 #include "config/config.h"
16 #include "logcollector/logcollector.h"
17
18
19 #undef ARGV0
20 #define ARGV0 "verify-agent-conf"
21
22
23
24 /* main: v0.3: 2005/04/04 */
25 int main(int argc, char **argv)
26 {
27     int modules = 0;
28     logreader_config log_config;
29
30
31     /* Setting the name */
32     OS_SetName(ARGV0);
33         
34
35     modules|= CLOCALFILE;
36     modules|= CAGENT_CONFIG;
37     log_config.config = NULL;
38     if(ReadConfig(modules, AGENTCONFIG, &log_config, NULL) < 0)
39     {
40         return(OS_INVALID);
41     }
42
43     logff = log_config.config;       
44
45     return(0);
46
47
48 }
49
50 /* EOF */