-
Notifications
You must be signed in to change notification settings - Fork 5
/
pgsnmpd.yaml
148 lines (147 loc) · 4.65 KB
/
pgsnmpd.yaml
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
queries:
-
name: pgsqlPgAggregateTable
query: SELECT aggfnoid::integer, aggtransfn, aggfinalfn, aggsortop, aggtranstype, agginitval FROM pg_aggregate
oid: 1.3.6.1.4.1.27645.1.2.1
indexes: 1
min_column: 1
-
name: pgsqlPgAmTable
query: SELECT oid, * from pg_am
oid: 1.3.6.1.4.1.27645.1.2.2
indexes: 1
min_column: 1
## -
## name: rdbmsDbTable
## query: SELECT oid, '1.3.6.1.4.1', 'PostgreSQL', datname, 'josh@pgsnmpd' FROM pg_database
## oid: 1.3.6.1.2.1.39.1.1
## indexes: 1
## min_column: 1
## -
## name: rdbmsDbInfoTable
## query: SELECT oid, version(), pg_database_size(datname) FROM pg_database
## oid: 1.3.6.1.2.1.39.1.2
## indexes: 1
## min_column: 1
## -
## name: rdbmsDbParamTable
## query: SELECT oid, datname, datconfig FROM pg_database
## oid: 1.3.6.1.2.1.39.1.3
## indexes: 1
## min_column: 1
## -
## name: pg_database
## query: SELECT oid, encoding, datdba, * FROM pg_database
## oid: 1.3.6.1.4.1.27645.1.3.1
## indexes: 1
## min_column: 1
## types:
## -
## colnum: 1
## type: oid
# -
## colnum: 2
## type: string
# -
# name: random
# query: SELECT 1, '1.3.6.1.3.11', 2, floor(100 * random()) union select 2, '1.3.6.1.2.1', floor(random() * 10), 5
# oid: 1.3.6.1.4.1.27645.1.3.2
# indexes: 1
# min_column: 1
# types:
# -
# 1: ASN_INTEGER
# #2: ASN_OBJECT_ID
# 2: ASN_OCTET_STR
# 3: ASN_INTEGER
# -
# name: pg_class
# query: SELECT oid, reltuples, reltoastrelid, 'test string', * FROM pg_class
# oid: 1.3.6.1.4.1.27645.1.3.3
# indexes: 1
# min_column: 1
# -
# name: test
# query: SELECT 'test', 't'::boolean, 14
# oid: 1.3.6.1.4.1.27646.1.1
# indexes: 1
# min_column: 1
# -
# name: easytest
# query: SELECT 1, 'test', 't'::boolean, random() UNION SELECT 2, 'test2', 'f'::boolean, random()
# oid: 1.3.6.1.4.1.27646.1.2
# indexes: 1
# min_column: 1
## -
## name: pgsqlPgAmopTable
## query: SELECT oid, amopfamily, amoplefttype, amoprighttype , amopstrategy , amopreqcheck , amopopr, amopmethod FROM pg_amop LIMIT 4
## oid: 1.3.6.1.4.1.27645.1.2.3
## indexes: 1
## min_column: 1
## -
## name: rdbmsDbTable
## query: SELECT oid, '1.3.6.1.4.1', 'PostgreSQL', datname, 'josh@pgsnmpd' FROM pg_database
## oid: 1.3.6.1.2.1.39.1.1
## indexes: 1
## min_column: 1
## -
## name: rdbmsDbInfoTable
## query: SELECT oid, version(), pg_database_size(datname) FROM pg_database
## oid: 1.3.6.1.2.1.39.1.2
## indexes: 1
## min_column: 1
## -
## name: rdbmsDbParamTable
## query: SELECT oid, datname, datconfig FROM pg_database
## oid: 1.3.6.1.2.1.39.1.3
## indexes: 1
## min_column: 1
## -
## name: pg_database
## query: SELECT oid, encoding, datdba, * FROM pg_database
## oid: 1.3.6.1.4.1.27645.1.3.1
## indexes: 1
## min_column: 1
## types:
## -
## colnum: 1
## type: oid
# -
## colnum: 2
## type: string
# -
# name: random
# query: SELECT 1, '1.3.6.1.3.11', 2, floor(100 * random()) union select 2, '1.3.6.1.2.1', floor(random() * 10), 5
# oid: 1.3.6.1.4.1.27645.1.3.2
# indexes: 1
# min_column: 1
# types:
# -
# 1: ASN_INTEGER
# #2: ASN_OBJECT_ID
# 2: ASN_OCTET_STR
# 3: ASN_INTEGER
# -
# name: pg_class
# query: SELECT oid, reltuples, reltoastrelid, 'test string', * FROM pg_class
# oid: 1.3.6.1.4.1.27645.1.3.3
# indexes: 1
# min_column: 1
# -
# name: test
# query: SELECT 'test', 't'::boolean, 14
# oid: 1.3.6.1.4.1.27646.1.1
# indexes: 1
# min_column: 1
# -
# name: easytest
# query: SELECT 1, 'test', 't'::boolean, random() UNION SELECT 2, 'test2', 'f'::boolean, random()
# oid: 1.3.6.1.4.1.27646.1.2
# indexes: 1
# min_column: 1
## -
## name: pgsqlPgAmopTable
## query: SELECT oid, amopfamily, amoplefttype, amoprighttype , amopstrategy , amopreqcheck , amopopr, amopmethod FROM pg_amop LIMIT 4
## oid: 1.3.6.1.4.1.27645.1.2.3
## indexes: 1
## min_column: 1