source: trunk/src/sh_modules.c@ 241

Last change on this file since 241 was 186, checked in by katerina, 16 years ago

More fixes for log monitoring, and documentation update.

File size: 2.5 KB
RevLine 
[1]1#include "config_xor.h"
2
3#include <stdio.h>
4#include <time.h>
5
6#if defined (SH_WITH_CLIENT) || defined (SH_STANDALONE)
7
8#include "sh_modules.h"
[140]9#include "sh_pthread.h"
[1]10
11#include "sh_utmp.h"
12#include "sh_mounts.h"
13#include "sh_userfiles.h"
14#include "sh_kern.h"
15#include "sh_suidchk.h"
[68]16#include "sh_processcheck.h"
17#include "sh_portcheck.h"
[183]18#include "sh_logmon.h"
[1]19
20sh_mtype modList[] = {
21#ifdef SH_USE_UTMP
22 {
23 N_("UTMP"),
[142]24 -1,
[1]25 sh_utmp_init,
26 sh_utmp_timer,
27 sh_utmp_check,
28 sh_utmp_end,
[149]29 sh_utmp_reconf,
[1]30
31 N_("[Utmp]"),
32 sh_utmp_table,
[140]33 PTHREAD_MUTEX_INITIALIZER,
[1]34 },
35#endif
36
37#ifdef SH_USE_MOUNTS
38 {
39 N_("MOUNTS"),
[142]40 -1,
[1]41 sh_mounts_init,
42 sh_mounts_timer,
43 sh_mounts_check,
44 sh_mounts_cleanup,
45 sh_mounts_reconf,
46
47 N_("[Mounts]"),
48 sh_mounts_table,
[140]49 PTHREAD_MUTEX_INITIALIZER,
[1]50 },
51#endif
52
53#ifdef SH_USE_USERFILES
54 {
55 N_("USERFILES"),
[142]56 -1,
[1]57 sh_userfiles_init,
58 sh_userfiles_timer,
59 sh_userfiles_check,
60 sh_userfiles_cleanup,
61 sh_userfiles_reconf,
62
63 N_("[UserFiles]"),
64 sh_userfiles_table,
[140]65 PTHREAD_MUTEX_INITIALIZER,
[1]66 },
67#endif
68
69#ifdef SH_USE_KERN
70 {
71 N_("KERNEL"),
[142]72 -1,
[1]73 sh_kern_init,
74 sh_kern_timer,
75 sh_kern_check,
76 sh_kern_end,
77 sh_kern_null,
78
79 N_("[Kernel]"),
80 sh_kern_table,
[140]81 PTHREAD_MUTEX_INITIALIZER,
[1]82 },
83#endif
[68]84
[1]85#ifdef SH_USE_SUIDCHK
86 {
87 N_("SUIDCHECK"),
[142]88 -1,
[1]89 sh_suidchk_init,
90 sh_suidchk_timer,
91 sh_suidchk_check,
92 sh_suidchk_end,
[149]93 sh_suidchk_reconf,
[1]94
95 N_("[SuidCheck]"),
96 sh_suidchk_table,
[140]97 PTHREAD_MUTEX_INITIALIZER,
[1]98 },
99#endif
[68]100
101#ifdef SH_USE_PROCESSCHECK
[1]102 {
[68]103 N_("PROCESSCHECK"),
[142]104 -1,
[68]105 sh_prochk_init,
106 sh_prochk_timer,
107 sh_prochk_check,
108 sh_prochk_cleanup,
109 sh_prochk_reconf,
110
111 N_("[ProcessCheck]"),
112 sh_prochk_table,
[140]113 PTHREAD_MUTEX_INITIALIZER,
[68]114 },
115#endif
116
117#ifdef SH_USE_PORTCHECK
118 {
119 N_("PORTCHECK"),
[142]120 -1,
[68]121 sh_portchk_init,
122 sh_portchk_timer,
123 sh_portchk_check,
124 sh_portchk_cleanup,
125 sh_portchk_reconf,
126
127 N_("[PortCheck]"),
128 sh_portchk_table,
[140]129 PTHREAD_MUTEX_INITIALIZER,
[68]130 },
131#endif
132
[183]133#ifdef USE_LOGFILE_MONITOR
[68]134 {
[183]135 N_("LOGMON"),
136 -1,
137 sh_log_check_init,
138 sh_log_check_timer,
139 sh_log_check_check,
140 sh_log_check_cleanup,
141 sh_log_check_reconf,
142
[186]143 N_("[Logmon]"),
[183]144 sh_log_check_table,
145 PTHREAD_MUTEX_INITIALIZER,
146 },
147#endif
148
149 {
[1]150 NULL,
[142]151 -1,
[1]152
153 NULL,
154 NULL,
155 NULL,
156 NULL,
157 NULL,
158
159 NULL,
160 NULL,
[140]161 PTHREAD_MUTEX_INITIALIZER,
[1]162 },
163};
164
165#endif
166
Note: See TracBrowser for help on using the repository browser.