projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
obrisane nepotrebne datoteke od zadnjeg builda
[ossec-hids.git]
/
src
/
monitord
/
monitord.h
diff --git
a/src/monitord/monitord.h
b/src/monitord/monitord.h
old mode 100755
(executable)
new mode 100644
(file)
index
18e97e5
..
3f182f8
--- a/
src/monitord/monitord.h
+++ b/
src/monitord/monitord.h
@@
-1,54
+1,33
@@
-/* @(#) $Id: monitord.h,v 1.7 2009/06/24 17:06:27 dcid Exp $ */
-
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
*
* This program is a free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
/* Copyright (C) 2009 Trend Micro Inc.
* All rights 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 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
* Foundation
*/
* Foundation
*/
-
#ifndef _MONITORD_H
#define _MONITORD_H
#ifndef ARGV0
#ifndef _MONITORD_H
#define _MONITORD_H
#ifndef ARGV0
- #define ARGV0 "ossec-monitord"
+#define ARGV0 "ossec-monitord"
#endif
#endif
-
-typedef struct _monitor_config
-{
- short int day_wait;
- short int compress;
- short int sign;
- short int monitor_agents;
- int a_queue;
-
- char **agents;
-}monitor_config;
-
-
-/** Prototypes **/
-/* Main monitord */
-void Monitord();
+#include "config/reports-config.h"
-/*manage_files */
+/* Prototypes */
+void Monitord(void) __attribute__((noreturn));
void manage_files(int cday, int cmon, int cyear);
void manage_files(int cday, int cmon, int cyear);
+void generate_reports(int cday, int cmon, int cyear);
+void monitor_agents(void);
+void OS_SignLog(const char *logfile, const char *logfile_old, int log_missing);
+void OS_CompressLog(const char *logfile);
-/* monitor_agents */
-void monitor_agents();
-
-/* Sign a log */
-void OS_SignLog(char *logfile, char *logfile_old, int log_missing);
-
-/* Compress log */
-void OS_CompressLog(char *logfile);
-
+int OS_SendCustomEmail2(char **to, char *subject, char *smtpserver, char *from, char *idsname, char *fname);
/* Global variables */
/* Global variables */
-monitor_config mond;
-
+extern monitor_config mond;
#endif
#endif
+