-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhost.example
64 lines (64 loc) · 1.56 KB
/
host.example
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
use strict;
use warnings;
package host;
our %Host = (
"sup" => {
"services" => {
"sysUptime" => {
"function" => "identity",
"parameters" => [ ],
"variables" =>[ "GET/.1.3.6.1.2.1.1.3.0" ]
},
"ifOperStatus-port1" => {
"function" => "ifOperStatus",
"parameters" => [ 'eth0' ],
"variables" => [ "WALK/.1.3.6.1.2.1.2.2.1.2", # ifDescr
"WALK/.1.3.6.1.2.1.2.2.1.7", # ifAdminStatus
"WALK/.1.3.6.1.2.1.2.2.1.8", # ifOperStatus
]
},
}
},
"IPAddress" => "172.25.206.105",
"hostname" => "HOSTNAME",
"snmp" => {
"communityString" => "public",
"port" => 161,
"version" => 2,
},
"storeMe" => {
"IPAddress" => "172.25.206.105",
"port" => 50000,
},
"spoolMe" => {
"IPAddress" => "127.0.0.1",
"port" => 50000,
},
"metro" => {
"step" => 60,
"DS" =>
[
{
'name' => "ifInOctetsPort1",
'type' => "COUNTER",
'heartbeat' => 120,
'min' => "U",
'max' => "U",
'function' => "identity",
'parameters' => [1],
'variables' => [ "GET/.1.3.6.1.2.1.2.1.16.1" ]
},
{
'name' => "ifOutOctetsPort1",
'type' => "COUNTER",
'heartbeat' => 120,
'min' => "U",
'max' => "U",
'function' => "identity",
'parameters' => [1],
'variables' => [ "GET/.1.3.6.1.2.1.2.1.10.1" ]
},
]
}
);
1;