forked from langpavel/node-ping-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-default-win32.json
45 lines (45 loc) · 982 Bytes
/
config-default-win32.json
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
{
"command": "ping",
"args": ["-t"],
"events": {
"ping": {
"regexp": {
"string": "^Reply from ([0-9\\.:]+): bytes=([0-9\\.]+) time[<=]([0-9.]+)ms TTL=([0-9]+)",
"host": 1,
"bytes": 2,
"time": 3,
"ttl": 4
}
},
"start": {
"emits": ["start"],
"regexp": {
"string": "^Pinging (.*) \\[([0-9\\.:]+)\\] with ([0-9]+) bytes of data",
"domain": 1,
"host": 2,
"bytes": 3
}
},
"timedout": {
"emits": ["fail"],
"regexp": {
"string": "^Request timed out"
}
},
"hostnotfound": {
"emits": ["fail"],
"regexp": {
"string": "^Ping request could not find host ([0-9\\.:])",
"host": 1
}
},
"unreachable": {
"emits": ["fail"],
"regexp": {
"string": "^From ([0-9\\.:]+) icmp_seq=([0-9]+) Destination Host Unreachable",
"host": 1,
"icmp_seq": 2
}
}
}
}