Skip to content

Commit 45c857b

Browse files
committed
Updated doc header in conf file
1 parent a3f1abc commit 45c857b

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

conf/libzbxpgsql.conf

+15-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
# File: /etc/libzbxpgsql.d/query.conf
1+
# File: /etc/zabbix/libzbxpgsql.conf
22
#
3-
# This file contains SQL to be executed by `pg_query.*` keys
3+
# This file contains configuration for all pg.* keys.
44
#
5-
# The default directory for SQL config files is:
6-
# /etc/libzbxpgsql.d
7-
# This default can be changed by setting the PGQUERYPATH environment variable
8-
# for the agent before startup.
5+
# By default, this file is loaded from /etc/zabbix/libzbxpgsql.conf, unless
6+
# the PGCONFIGFILE environment variable is set to a different path.
97
#
10-
# *ALL* files in the config directory that end in ".conf" will be read and
11-
# parsed.
8+
# The config file is only read at startup of Zabbix agent. If you modify the
9+
# config file, you will need to restart the Zabbix agent for it to take effect.
10+
#
11+
# Syntax errors in the config file will prevent Zabbix from starting.
1212
#
1313
# The config files are parsed by the C libconfig module:
1414
# http://www.hyperrealm.com/main.php?s=libconfig
1515
#
16-
# The format of the config file is:
17-
# SQLkey = "SQL statement";
18-
#
1916
# Comment lines begin with a hash '#'.
2017
#
18+
# The format for defining named SQL queries is:
19+
# queries = {
20+
# SQLkey = "SQL statement";
21+
# };
22+
#
2123
# Requirements:
2224
# - The SQL key must be alphanumeric and can contain dashes and underscores
2325
# (-DO NOT- use asterisks or spaces in the key name).
@@ -27,14 +29,8 @@
2729
# "SELECT \"UPPERCASECOLUMN\" from table;";
2830
# - A semicolon is required at the end of each config entry.
2931
#
30-
# Syntax errors in any config file will cause the Zabbix agent to shut down.
31-
#
32-
# Config files are only read at startup of Zabbix agent. If you add, change, or
33-
# remove config files you will need to restart the Zabbix agent for it to
34-
# re-read the files.
35-
#
3632
# Example Query Setup (with substitution variables):
37-
# * SQL key used in Zabbix server:
33+
# * Zabbix agent key, including a named query:
3834
# pg_query.integer[,,myquery,45,200]
3935
#
4036
# * Matching query from the config file:
@@ -51,9 +47,8 @@
5147
# AlsoGood = "select count(*) "
5248
# " from pg_stat_activity;";
5349
#
54-
#
55-
# Test Queries
5650

51+
# Example Queries
5752
queries = {
5853
teststr = "SELECT $1::text || $2::text;";
5954
testint = "SELECT $1::int;";

0 commit comments

Comments
 (0)