/
snmp-graph.properties
130 lines (111 loc) · 5.5 KB
/
snmp-graph.properties
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#########################################################################
## G E N E R A L R E P O R T I N G S E T T I N G S
#########################################################################
command.prefix=${install.rrdtool.bin} graph - --imgformat PNG --font DEFAULT:7 --font TITLE:10 --start {startTime} --end {endTime}
#the command used to get the RRD info
info.command=${install.rrdtool.bin} info
#The default graph for KSC node and domain reports
default.report=mib2.HCbits
#the output type of the image, should correspond to the type we
#specified in the command.prefix variable
output.mime=image/png
# include.directory is a directory which will be checked for files with
# names matching *.properties. If it is a relative path (e.g. contains no path
# delimiters), it is relative to the directory this file is in.
# Each of those properties files will then be read and the graphs defined in
# them added to the list of prefabricated graphs that are available.
# Each of these included files can contain either a single graph, or multiple graphs.
# If it includes multiple graphs, use the same format as this file, e.g.
# a "reports" property listing the graph ids, and each graph is defined with
# a set of 'report.<graphname>.<key>' properties
# If it includes just a single graph, you may use a short format. In this format,
# an additional property "report.id" defines the internal "name" of the graph, and
# all the other properties no longer require the graph name in the key.
# For example, such a single-graph file would look like this:
#
#report.id=mib2.bits
#report.name=Bits In/Out
#report.columns=ifInOctets,ifOutOctets
#report.type=interfaceSnmp
#report.command=--title="Bits In/Out" \
# --vertical-label="Bits per second" \
# <rest of graph definition>
#
# Graphs in the include directory that have the same id as one in this root file
# will replace/override the one in this file.
include.directory=snmp-graph.properties.d
#The minimum interval, in milliseconds, between rescans of the directory
#specified by include.directory, looking for new .properties files
# Defaults to 300000 (5 minutes) so as not to be hitting disk too often.
#include.directory.rescan=300000
#########################################################################
## P R E F A B R E P O R T S
#########################################################################
# In order to get a report (defined below) to be automatically generated
# its name must be included in the "reports" variable.
# NOTE: Because of the large format of the netsnmp.memStats report it
# has been placed before netsnmp.cpuStats so that it looks better.
#
# NOTE: Because of the large format of the netsnmp.cpuStats report, it
# has been placed last so that it looks better. Everything else
# should be in alphabetical order.
# NOTE: Only OpenNMS internal graph definitions. Please create for
# customized graphs in snmp-graph.properties.d dedicated property
# files
reports=onms.queued.updates, onms.queued.pending, \
onms.pollerd.activeThreads, onms.pollerd.completedRatio
# values available to prefab reports:
# {rrd1}, {rrd2}, {rrd3}, ... must match the datasources exactly
# {startTime}, {endTime}
# any external values specified per report
###
## !!! Third party support or customized graphs in separate file in
## snmp-graph.properties.d folder
###
###
## OpenNMS Queued
###
report.onms.queued.updates.name=OpenNMS Queued Updates
report.onms.queued.updates.columns=ONMSQueUpdates
report.onms.queued.updates.type=interfaceSnmp
report.onms.queued.updates.command=--title="OpenNMS Queued Updates" \
--vertical-label="Updates per second" \
DEF:updates={rrd1}:ONMSQueUpdates:AVERAGE \
LINE1:updates#0000ff:"Completed Updates" \
GPRINT:updates:AVERAGE:" Avg \\: %8.2lf %s" \
GPRINT:updates:MIN:"Min \\: %8.2lf %s" \
GPRINT:updates:MAX:"Max \\: %8.2lf %s\\n"
report.onms.queued.pending.name=OpenNMS Queued Updates
report.onms.queued.pending.columns=ONMSQueOpsPend
report.onms.queued.pending.type=interfaceSnmp
report.onms.queued.pending.command=--title="OpenNMS Queued Operations Pending" \
--vertical-label="Operations" \
DEF:pending={rrd1}:ONMSQueOpsPend:AVERAGE \
LINE1:pending#0000ff:"Total Pending" \
GPRINT:pending:AVERAGE:" Avg \\: %8.2lf %s" \
GPRINT:pending:MIN:"Min \\: %8.2lf %s" \
GPRINT:pending:MAX:"Max \\: %8.2lf %s\\n"
report.onms.pollerd.activeThreads.name=OpenNMS Poller Threads Active
report.onms.pollerd.activeThreads.columns=ONMSPollerThreadAct
report.onms.pollerd.activeThreads.type=interfaceSnmp
report.onms.pollerd.activeThreads.command=--title="OpenNMS Pollerd Threads Active" \
--vertical-label="Threads" \
DEF:active={rrd1}:ONMSPollerThreadAct:AVERAGE \
LINE1:active#0000ff:"Total Active" \
GPRINT:active:AVERAGE:" Avg \\: %8.2lf %s" \
GPRINT:active:MIN:"Min \\: %8.2lf %s" \
GPRINT:active:MAX:"Max \\: %8.2lf %s\\n"
report.onms.pollerd.completedRatio.name=OpenNMS Poller Task Completion Ratio
report.onms.pollerd.completedRatio.columns=ONMSPollerTasksTot,ONMSPollerTasksCpt
report.onms.pollerd.completedRatio.type=interfaceSnmp
report.onms.pollerd.completedRatio.command=--title="OpenNMS Pollerd Task Completion" \
--vertical-label="Percent" \
--lower-limit=0 --upper-limit=100 --units-exponent=0 \
DEF:total={rrd1}:ONMSPollerTasksTot:AVERAGE \
DEF:completed={rrd2}:ONMSPollerTasksCpt:AVERAGE \
CDEF:percent=completed,total,/,100,* \
LINE1:percent#0000ff:"Completion Ratio" \
GPRINT:percent:AVERAGE:" Avg \\: %8.2lf %s" \
GPRINT:percent:MIN:"Min \\: %8.2lf %s" \
GPRINT:percent:MAX:"Max \\: %8.2lf %s\\n"
## EOF