-
Notifications
You must be signed in to change notification settings - Fork 1
/
telegraf.conf
78 lines (68 loc) · 1.96 KB
/
telegraf.conf
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
65
66
67
68
69
70
71
72
73
74
75
76
77
[[outputs.influxdb]]
urls = ["http://snmp-influx:8086"]
database = "snmp_test"
timeout = "5s"
[agent]
quiet = false
debug = true
[[inputs.snmp]]
agents = [ "192.168.3.254:161"]
name_prefix = "snmp_"
interval = "30s"
version = 2
community = "public"
[[inputs.snmp.field]]
name = "hostname"
oid = "RFC1213-MIB::sysName.0"
is_tag = true
[[inputs.snmp.field]]
name = "uptime"
oid = "SNMPv2-MIB::sysUpTime.0"
[[inputs.snmp.field]]
name = "jnxBoxSerialNo"
oid="JUNIPER-MIB::jnxBoxSerialNo.0"
[[inputs.snmp.field]]
name = "jnxBoxDescr"
oid="JUNIPER-MIB::jnxBoxDescr.0"
[[inputs.snmp.field]]
name = "jnxBoxInstalled"
oid="JUNIPER-MIB::jnxBoxInstalled.0"
[[inputs.snmp.field]]
name = "sysApplInstallPkgVersion"
oid = "SYSAPPL-MIB::sysApplInstallPkgVersion.2"
[[inputs.snmp.table]]
name = "interfaces_statistics"
inherit_tags = [ "hostname" ]
# [inputs.snmp.tagpass]
# ifName = ["ge-0/0/0", "ge-0/0/1", "ge-0/0/2"]
[[inputs.snmp.table.field]]
name = "ifName"
oid = "IF-MIB::ifName"
is_tag = true
[[inputs.snmp.table.field]]
name = "ifHCInOctets"
oid = "IF-MIB::ifHCInOctets"
[[inputs.snmp.table.field]]
name = "ifHCOutOctets"
oid = "IF-MIB::ifHCOutOctets"
[[inputs.snmp.table.field]]
name = "ifHCOutUcastPkts"
oid = "IF-MIB::ifHCOutUcastPkts"
[[inputs.snmp.table.field]]
name = "ifHCInUcastPkts"
oid = "IF-MIB::ifHCInUcastPkts"
[[inputs.snmp.table.field]]
name = "ifOperStatus"
oid = "IF-MIB::ifOperStatus"
[[inputs.snmp.table.field]]
name = "ifAdminStatus"
oid = "IF-MIB::ifAdminStatus"
[[inputs.snmp.table.field]]
name = "ifLastChange"
oid = "IF-MIB::ifLastChange"
[[inputs.snmp.table.field]]
name = "ifIn1SecRate"
oid = "JUNIPER-IF-MIB::ifIn1SecRate"
[[inputs.snmp.table.field]]
name = "ifOut1SecRate"
oid = "JUNIPER-IF-MIB::ifOut1SecRate"