This repository was archived by the owner on May 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathping.cfg
More file actions
48 lines (45 loc) · 1.52 KB
/
ping.cfg
File metadata and controls
48 lines (45 loc) · 1.52 KB
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
{
'image' => {
'rootFolder' => "img/default/",
'okay' => "$scriptName?id=ok.png",
'fail' => "$scriptName?id=fail.png",
},
'types' => {
'router' => { 'idx' => 10, 'img' => 'router.png' },
'switch' => { 'idx' => 15, 'img' => 'switch.png' },
'wifi' => { 'idx' => 20, 'img' => 'wifi.png' },
'server' => { 'idx' => 30, 'img' => 'server.png' },
'nas' => { 'idx' => 35, 'img' => 'nas.png' },
'printer' => { 'idx' => 40, 'img' => 'printer.png' },
'tv' => { 'idx' => 55, 'img' => 'tv.png' },
'raspi' => { 'idx' => 58, 'img' => 'raspi.png' },
'android' => { 'idx' => 60, 'img' => 'android.png' },
'client' => { 'idx' => 60, 'img' => 'client.png' },
'laptop' => { 'idx' => 58, 'img' => 'laptop.png' },
},
# host pattern: <idx for NATed systems>+<host name>:<port>[<MAC address for WOL>]|<alias>
'hosts' => {
'LAN' => {
'-idx' => 10,
'-domain' => 'example.lan',
'router' => [ qw/www/ ],
'switch' => [ qw/switch/ ],
'wifi' => [ qw/accesspoint/ ],
'server' => [ qw/fileserver webserver:80/ ],
'nas' => [ qw/nas:22/ ],
'printer' => [ qw/net-printer/ ],
'tv' => [ qw/tv chromecast/ ],
'raspi' => [ qw/raspi001/ ],
'android' => [ qw/smartphone/ ],
'laptop' => [ qw/laptop[00:11:22:33:44:55]/ ],
'client' => [ qw/desktop[11:22:33:44:55:66]/ ],
},
'WAN' => {
'-idx' => 20,
'-domain' => 'example.com',
'router' => [ qw/1+webgateway/ ],
'server' => [ qw/2+webgateway:22|Server/ ],
'nas' => [ qw/storage|NAS/ ],
},
},
};