-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTODO
161 lines (130 loc) · 4.39 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
~ 1. make sessions and methods for it (kill, show)
OK 2. mbbd: add user log messages
? 3. mbbsh: capture entered commands and send it to server as user log
? 4. add session param to methods log_show and log_set_levels
? 5. add user param to log (not uid)
OK 6. add methods to add/del log levels to current
? 7. checking capabilites is too simple and heavy,
make it changing using sessions
OK 8. make chroot analog in mbbsh for command tree
9. try compile with -O2 and -O3
? 10. sessions store by user
11. realize following commands
add consumer | name
consumer mod name
consumer mod time start
consumer mod time end
drop consumer
stop consumer
show consumers
add accunit | name
consumer add accunit | consumer_name unit_name
consumer del accunit | consumer_name unit_name
accunit mod name
accunit mod time start
accunit mod time end
drop accunit
stop accunit
show accunits
consumer show accunits
accunit add ip | name [!]ip [start [end]]
accunit del ip | name [!]ip[,n]
accunit ip mod time start | name [!]ip[,n] start
accunit ip mod time end | name [!]ip[,n] end
accunit show ip entries | name
accunit show ip state | name
accunit show ip map | name
consumer show ip entries | name
consumer show ip state | name
consumer show ip map | name
consumer show ip detail entries | name
consumer show ip detail state | name
consumer show ip detail map | name
12. abstract consumer hole - for lonely accunits
13. rewrite code with new functions:
mbb_xml_msg_response_ok
mbb_xml_msg_response_error
xml_tag_newc
OK 14. add private log level | using self
15. listen specified threads (for logs)
16. add self-show-session
17. add output of log-trace-show more verbose as show-sessions
18. not delete sessions if they still traced
19. mbbsh: sort results
20. add session history
21. add cd -
22. add common object for dlink routins as join, detach, remove, etc
23. add regex grep'ing in show methods
24. add test id function to mbb_db_seq_nextval
25. when modify consumer time test if child's times are still ok
25. multirequest with all methods completion or by first error
-------------------------------------------------------------------
26. add tasks:
task is a work continious during some time with some functions to
monitor or cancel it's state
example: stat counting, stat detail counting
show tasks
task show state | id
task cancel | id
task pause | id
task resume | id
task set callback | id executable
27. tariff ...
28. dynamic loaded modules
make referencing of using module's resources
show modules
module list
module load | name
module unload | name
module show | name
29. netflow же
30. stat viewing
31. check mbb_log's availability before registration
32. trace tasks as threads with negative id
-------------------------------------------------------------------
33. netflow calcstat: check time limits for rows
34. consumer set user, consumer unset user, user show consumers and so on
35. consumer group and consumer methods for stat retrieving
36. map find unit
37. attributes for units, consumers, users etc, as var = value
-------------------------------------------------------------------
38. dynamic group management
39. dynamic methods cap management
40. allowed hosts for users
41. lua or python module for interacting with mbbd
42. embedded lua interpreter in mbbd with access to mbb structures
-------------------- pinger -------------------------------------
43. interface:
pinger show active
pinger show units
pinger reload unit
pinger start/stop [unit]
pinger stat
44. auto session variables, and in modules too
45. urgent tasks:
netflow feed by mask * ok
session vars * ok
apache auth
46. IMPORTANT: session vars: check for mutex's need !!
47. auth policy: filter by hosts
!!!!!! VERY IMPORTANT
48. update flag for units ~~~
PARTLY 49. debug logs for add, drop and mod
50. show session's log chans, and chan's sessions
OK 51. restrict admin permissions
OK 52. add su, reload
53. netflow shell: ls, cd, pwd
OK 54. unit map sync - rebuild local map and add to main
55. server stats: func calls, fails, logins and other info
56. mbbsh: alias, unalias, config file
57. acl?:
add group name
group add method name method
group del method name method
group show methods
58. save calculated netflow files to separate file
59. mbbd internal logging to file
60. auto map rebuild before calculating
61. implement module that will build the map on startup
62. add function to find out of map netflow streams
63. module on load function