Last change
on this file since 185 was 183, checked in by katerina, 16 years ago |
Support for logfile monitoring (ticket #122). Also improved some configure error messages.
|
File size:
2.5 KB
|
Line | |
---|
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"
|
---|
9 | #include "sh_pthread.h"
|
---|
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"
|
---|
16 | #include "sh_processcheck.h"
|
---|
17 | #include "sh_portcheck.h"
|
---|
18 | #include "sh_logmon.h"
|
---|
19 |
|
---|
20 | sh_mtype modList[] = {
|
---|
21 | #ifdef SH_USE_UTMP
|
---|
22 | {
|
---|
23 | N_("UTMP"),
|
---|
24 | -1,
|
---|
25 | sh_utmp_init,
|
---|
26 | sh_utmp_timer,
|
---|
27 | sh_utmp_check,
|
---|
28 | sh_utmp_end,
|
---|
29 | sh_utmp_reconf,
|
---|
30 |
|
---|
31 | N_("[Utmp]"),
|
---|
32 | sh_utmp_table,
|
---|
33 | PTHREAD_MUTEX_INITIALIZER,
|
---|
34 | },
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | #ifdef SH_USE_MOUNTS
|
---|
38 | {
|
---|
39 | N_("MOUNTS"),
|
---|
40 | -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,
|
---|
49 | PTHREAD_MUTEX_INITIALIZER,
|
---|
50 | },
|
---|
51 | #endif
|
---|
52 |
|
---|
53 | #ifdef SH_USE_USERFILES
|
---|
54 | {
|
---|
55 | N_("USERFILES"),
|
---|
56 | -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,
|
---|
65 | PTHREAD_MUTEX_INITIALIZER,
|
---|
66 | },
|
---|
67 | #endif
|
---|
68 |
|
---|
69 | #ifdef SH_USE_KERN
|
---|
70 | {
|
---|
71 | N_("KERNEL"),
|
---|
72 | -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,
|
---|
81 | PTHREAD_MUTEX_INITIALIZER,
|
---|
82 | },
|
---|
83 | #endif
|
---|
84 |
|
---|
85 | #ifdef SH_USE_SUIDCHK
|
---|
86 | {
|
---|
87 | N_("SUIDCHECK"),
|
---|
88 | -1,
|
---|
89 | sh_suidchk_init,
|
---|
90 | sh_suidchk_timer,
|
---|
91 | sh_suidchk_check,
|
---|
92 | sh_suidchk_end,
|
---|
93 | sh_suidchk_reconf,
|
---|
94 |
|
---|
95 | N_("[SuidCheck]"),
|
---|
96 | sh_suidchk_table,
|
---|
97 | PTHREAD_MUTEX_INITIALIZER,
|
---|
98 | },
|
---|
99 | #endif
|
---|
100 |
|
---|
101 | #ifdef SH_USE_PROCESSCHECK
|
---|
102 | {
|
---|
103 | N_("PROCESSCHECK"),
|
---|
104 | -1,
|
---|
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,
|
---|
113 | PTHREAD_MUTEX_INITIALIZER,
|
---|
114 | },
|
---|
115 | #endif
|
---|
116 |
|
---|
117 | #ifdef SH_USE_PORTCHECK
|
---|
118 | {
|
---|
119 | N_("PORTCHECK"),
|
---|
120 | -1,
|
---|
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,
|
---|
129 | PTHREAD_MUTEX_INITIALIZER,
|
---|
130 | },
|
---|
131 | #endif
|
---|
132 |
|
---|
133 | #ifdef USE_LOGFILE_MONITOR
|
---|
134 | {
|
---|
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 |
|
---|
143 | N_("[LogMon]"),
|
---|
144 | sh_log_check_table,
|
---|
145 | PTHREAD_MUTEX_INITIALIZER,
|
---|
146 | },
|
---|
147 | #endif
|
---|
148 |
|
---|
149 | {
|
---|
150 | NULL,
|
---|
151 | -1,
|
---|
152 |
|
---|
153 | NULL,
|
---|
154 | NULL,
|
---|
155 | NULL,
|
---|
156 | NULL,
|
---|
157 | NULL,
|
---|
158 |
|
---|
159 | NULL,
|
---|
160 | NULL,
|
---|
161 | PTHREAD_MUTEX_INITIALIZER,
|
---|
162 | },
|
---|
163 | };
|
---|
164 |
|
---|
165 | #endif
|
---|
166 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.