-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtwemproxy_err.stp
More file actions
32 lines (30 loc) · 861 Bytes
/
Copy pathtwemproxy_err.stp
File metadata and controls
32 lines (30 loc) · 861 Bytes
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
# by default these are ignored and not collected
# case EPIPE:
# case EINVAL:
# case ECONNRESET:
# case ECONNABORTED:
# case ECONNREFUSED:
# case ENOTCONN:
# case ENETDOWN:
# case ENETUNREACH:
# case EHOSTDOWN:
# case EHOSTUNREACH:
# @ton31337
probe begin
{
ansi_clear_screen();
printf("Date\t\t\t\tServer(connection_id)\t\t\tError\n");
}
probe process("/usr/local/bin/nutcracker").function("server_close")
{
server_name = user_string(@cast($conn->owner, "server")->name->data);
strerr = errno_str($conn->err);
if($conn->err)
printf("%s\t%s(%d)\t%s (r:%d s:%d)\n",
ctime(gettimeofday_s()),
server_name,
$conn,
strerr,
$conn->recv_bytes,
$conn->send_bytes);
}