Imported Upstream version 2.7
[ossec-hids.git] / src / monitord / monitord.h
1 /* @(#) $Id: ./src/monitord/monitord.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All rights reserved.
6  *
7  * This program is a free software; you can redistribute it
8  * and/or modify it under the terms of the GNU General Public
9  * License (version 2) as published by the FSF - Free Software
10  * Foundation
11  */
12
13
14 #ifndef _MONITORD_H
15 #define _MONITORD_H
16
17 #ifndef ARGV0
18    #define ARGV0 "ossec-monitord"
19 #endif
20
21 #include "config/reports-config.h"
22
23
24
25 /** Prototypes **/
26
27 /* Main monitord */
28 void Monitord();
29
30 /*manage_files */
31 void manage_files(int cday, int cmon, int cyear);
32
33 /* generate reports. */
34 void generate_reports(int cday, int cmon, int cyear, struct tm *p);
35
36 /* monitor_agents */
37 void monitor_agents();
38
39 /* Sign a log */
40 void OS_SignLog(char *logfile, char *logfile_old, int log_missing);
41
42 /* Compress log */
43 void OS_CompressLog(char *logfile);
44
45
46 /* Global variables */
47 monitor_config mond;
48
49
50 #endif