-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.sample.php
38 lines (33 loc) · 971 Bytes
/
config.sample.php
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
<?php
// This is your SNMP Write+ String
$GLOBALS["apcsnmp"] = "snmpwritestring";
// translates APC IDs into their IP addresses
$GLOBALS["apcids"] = array(
"APC1" => array(
"ip" => "xxx.xxx.xxx.xxx",
"type" => "apc"
),
"APC2" => array(
"ip" => "xxx.xxx.xxx.xxx",
"type" => "epdu"
)
);
$GLOBALS["states"] = array(
1 => "immediateOn",
2 => "immediateOff",
3 => "immediateReboot",
4 => "delayedOn",
5 => "delayedOff",
6 => "delayedReboot",
7 => "cancelPendingCommand");
// This APC MIB is incomplete - must add the port number of the PDU at the end
$GLOBALS["apc"] = array(
"portcontrolmib" => ".1.3.6.1.4.1.318.1.1.12.3.3.1.1.4",
"portnamemib" => ".1.3.6.1.4.1.318.1.1.4.5.2.1.3",
"porttimermib" => ".1.3.6.1.4.1.318.1.1.12.3.4.1.1.4",
);
// After reboot or delayed action, for how much seconds we must force getting
// the port status via SNMP (aka not use cached status)
$GLOBALS["renewsecs"] = 30;
// debug ?
$GLOBALS['debug']=false;