pdu.conf 899 Bytes
Newer Older
1
2
3
4
global {
  mqttprefix	/00112233445566778899AABBCCDD
}

5
6
7
template_group def1 {
	interval	1000
	minValues	3
8
9
}

10
11
12
13
pdu rack1 {
	host	testHorst:443
	TTL		500
	request "content-length: 167\n\n<?xml version=\"1.0\" encoding=\"UTF-8\"?><clustsafeRequest><authorization><username>admin</username><password>admin</password></authorization><energy/></clustsafeRequest>"
14

15
16
17
18
19
20
21
22
23
24
25
26
27
	group pcs {
		default		def1
		mqttpart	00
		
		sensor pcs1 {
			path		"clustsafeResponse.energy.clustsafe(id=1).outlets.outlet(id=1)"
			mqttsuffix	01
		}
		
		sensor pcs2 {
			path		"clustsafeResponse.energy.clustsafe(id=2).outlets.outlet(id=3)"
			mqttsuffix	02
		}
28

29
30
31
		sensor pcs3 {
			path		"clustsafeResponse.energy.clustsafe(id=2).outlets.outlet(id=4)"
			mqttsuffix	03
32
33
		}
	}
34
35
36
37
38
39
40
41
42
	
	group total {
		interval	2000
		mqttpart	00
		
		sensor total {
			path		"clustsafeResponse.energy.total"
			mqttsuffix	00
		}
43
44
	}
}
45
46
47
48

;pdu rack2 {
;	....
;}