Imported Upstream version 2.3
[ossec-hids.git] / src / monitord / monitord.h
1 /* @(#) $Id: monitord.h,v 1.7 2009/06/24 17:06:27 dcid Exp $ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All rights 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 3) as published by the FSF - Free Software
9  * Foundation
10  */
11
12
13 #ifndef _MONITORD_H
14 #define _MONITORD_H
15
16 #ifndef ARGV0
17    #define ARGV0 "ossec-monitord"
18 #endif
19    
20 typedef struct _monitor_config
21 {
22     short int day_wait;
23     short int compress;
24     short int sign;
25     short int monitor_agents;
26     int a_queue;
27
28     char **agents;
29 }monitor_config;
30
31
32 /** Prototypes **/
33
34 /* Main monitord */
35 void Monitord();
36
37 /*manage_files */
38 void manage_files(int cday, int cmon, int cyear);
39
40 /* monitor_agents */
41 void monitor_agents();
42
43 /* Sign a log */
44 void OS_SignLog(char *logfile, char *logfile_old, int log_missing);
45
46 /* Compress log */
47 void OS_CompressLog(char *logfile);
48
49
50 /* Global variables */
51 monitor_config mond;
52
53
54 #endif