snmp.conf 1.37 KB
Newer Older
Micha Mueller's avatar
Micha Mueller committed
1
2
3
4
global {
	mqttprefix		/00112233445566778899AABBCC
}

5
template_single_sensor temp1 {
Micha Mueller's avatar
Micha Mueller committed
6
7
	interval	1000
	minValues	3
Micha Mueller's avatar
Micha Mueller committed
8
9
10
11
12
}

; So far, we only support "Agent" mode in which we connect to a
; SNMP agent and issue GET commands to read the data.

Micha Mueller's avatar
Micha Mueller committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
connection name1	{
	Type        Agent							; Type of connection
	Host        test.net-snmp.org				; Hostname of the SNMP agent
	Port        161								; Port of the SNMP agent
	OIDPrefix   1.3.6.1.2.1.1					; When querying OIDs, we'll 
			                                  	; always use this prefix
	Version		3
	Community   public							; SNMP community string
	Username	MD5DESUser
	SecLevel	AuthPriv
	AuthProto	MD5
	AuthKey		"The UCD Demo Password"
	PrivProto	DES
	PrivKey		"The UCD Demo Password"
	mqttPart	BB								; When generating MQTT topics,
			                                   	; we'll append this part to
			                                   	; the prefix
Micha Mueller's avatar
Micha Mueller committed
30

Micha Mueller's avatar
Micha Mueller committed
31
	group g1 {
Micha Mueller's avatar
Micha Mueller committed
32
		sensor sysUpTime	{
Micha Mueller's avatar
Micha Mueller committed
33
34
35
			OID			3.0						; OID of the sensor
			mqttsuffix	0001					; MQTT suffix of the sensor
			interval	5000					; Read sensor every 1000ms
Micha Mueller's avatar
Micha Mueller committed
36
		}
Micha Mueller's avatar
Micha Mueller committed
37
	}
38
39
40
41
42
	
	single_sensor	SysORUpTime {
		default		temp1
		OID			9.1.4.1
		mqttsuffix	0002
Micha Mueller's avatar
Micha Mueller committed
43
	}
Micha Mueller's avatar
Micha Mueller committed
44
}
Micha Mueller's avatar
Micha Mueller committed
45

Micha Mueller's avatar
Micha Mueller committed
46
47
48
49
50
51
52
;connection name2	{
;	Type        Agent
;	Host        HostNameOfSNMPAgent2
;	Port        161
;	Community   public
;	OIDPrefix   1.3.6.1.4.1.1000.15
;	mqttPart	CC
Micha Mueller's avatar
Micha Mueller committed
53
;
Micha Mueller's avatar
Micha Mueller committed
54
55
56
57
;	sensor name1	{
;		OID			3
;		mqttsuffix	0017
;		interval	5000
Micha Mueller's avatar
Micha Mueller committed
58
;	}
Micha Mueller's avatar
Micha Mueller committed
59
;}