-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
65 lines (43 loc) · 1.81 KB
/
README
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
Application Accounting for EGI InSPIRE
======================================
1.0. What it does
This software supplies a sensor for application accounting, with the
goal to account start and end time as well as the name of the launched
programs.
2.0. How it works
2.1. Client (library)
The client is a library that overwrites the libc `execve()' function
used to call a program. Amongst others, the Bourne Again Shell (bash)
uses this function after a fork to call a program. The client intercepts
the function and wraps the accounting logic around this call. The
information is then sent to the server.
2.2. Server (daemon).
The server receives the sensor data from all clients and is meant to run
in the background. Upon receiving data, the server can then look up the
user in the girdmap file to translate the local user to a global
identifier.
2.3. Communication.
Communication between the Client and the Server is implemented using
[ZeroMQ](http://zero.mq). If the Client can not connect to the Server, a
background process is launched after the completion of the application
that sends the message once the Server is running again.
3.0. How to run it
The project uses CMake for a multi-platform build. Build requirements
are:
o CMake (~= 2.8.0)
o ZeroMQ (~= 2.2.0)
o LibYAML (~= 0.1.4)
To get started, type:
$ cd build
$ cmake ..
$ make install
Build packages (RPM and DEB) with
$ make package
Launch client bash wrapper:
$ acc_bash
Lauch server (in a separate terminal):
$ acc_server
Now if you launch programs on the bash you should see accounting records
being outputted by the server. Note that `echo' is not a program but a
bash builtin, therefore it does not create a record (nor does it launch
any application).