/influxdb.conf
[http]
Enabled = true
Bind-address = "127.0.0.1:8086"
# Modify the configuration file and change the bind-address of http to 127.0.0.1.
# Because it is used for monitoring, it does not authenticate, but only allows local address access.
Systemctl start influxdb
#StartInfluxDB
Influx
CREATE USER "pgwatch2" WITH PASSWORD ‘xyz‘
CREATE DATABASE pgwatch2
Use pgwatch2
GRANT ALL ON pgwatch2 to "pgwatch2"
#Create a pgwatch
Walsender. If no local UNIX sockets are used, 1 will be displayed. Backend_start: It tells us what time slave created the stream connection. state: This column tells us the connection status of the data. If things go according to plan, it should contain flow information. Sent_location: This represents the location of the last transaction log sent to the connection. Write_location: This is the last transaction log location written to the standby system disk. Flush_location: This is the last posi
Background introduction:PostgreSQL server execution on Redhat linux, IP: 192.168.230.128Client is installed on Windows XP with IP: 192.168.230.1Configuration method:1. Change the server/opt/postgresql/data/postgresql.conf file to#listen_address = ' localhost ' changed to listen_address= ' * '2. Change the/opt/postgresql/data/gp_hba.conf fileAdd the client's IP, for example the following, and note the last l
Tags: PostgreSQLPostgreSQL server running on Windows, IP: 192.168.240.128Configuration method:1. Modify the server file your installation directory/postgresql/data/postgresql.conf file, change #listen_address = ' localhost ' to listen_address= ' * ‘。 Some default is to see the version. 2. Modify/Your installation directory/postgresql/data/gp_hba.conf fileIn which you increase the IP of the client, as follow
Blocked_locks.transactionidpostgres-# and Blocking_locks.classid is not DISTINCT from Blocked_locks.classidpostgres-# and Blocking_locks.objid is not DISTINCT from Blocked_locks.objidpostgres-# and Blocking_locks.objsubid is not DISTINCT from Blocked_locks.objsubidpostgres-# and Blocking_locks.pid! = Blocked_locks.pidpostgres-#postgres-# JOIN pg_catalog.pg_stat_activity blocking_activity on blocking_activity.pid = Blocking_locks.pidpostgres-# WHERE not blocked_locks. granted;Blocked_pid | Block
Label:Postgresql introduced stream Replication in 9.0; Provides a high level of availability for DB clusters; This article provides an environmental monitoring script Environment Construction: Reference--http://www.cnblogs.com/lottu/p/5584923.html Environment switch: Reference--http://www.cnblogs.com/lottu/p/5725309.html Provide the following script: ##===========================================================
## postgres_db_check.sh
## Created by
PostgreSQL Performance Monitoring ToolsHttps://github.com/CloudServer/postgresql-perf-toolsThis package includes three useful scripts aimed to help to pinpoint performance issues on systems with PostgreSQL as data Base backend.All Scritps is written in Python. Requirements:
Python 2.6+
PSYCOPG2 Module (htt
Tag:httpioos use data on clog code A good news: in September, the PostgreSQL OPM development team released the first release version of the open source PostgreSQL database Monitoring Suite, OPM v2.3.PostgreSQL is an advanced advanced database, but one of its major drawbacks is the lack of open source specialized
Label:6.4 Processing Monitoring ToolsThere are also several monitoring tools to make your daily life easier. One of the most popular monitoring tools is Nagios. It is widely used and also supports a variety of software components. To use Nagios to monitor your PostgreSQL cluster, you need to install a plugin that runs
6.3 Checking the operating system processOnce we have checked the archive and our system view, we are ready to check the system process. Checking the system process may look a bit rough, but it proves to be very effective.On master, we can simply check a process called Wal_sender. On slave we want to check for a process called wal_receiver.Let's first examine what we should see on master:9314?? Ss 0:00.00 Postgres:wal Sender ProcessHS:: 1 (61498) idleOn Linux we can see that the process not only
Detailed installation and testing of pgwatch
An error occurred during installation, but no documentation was found online. I decided to write a detailed installation document myself.
1. Download pgwatch. Here I use Version 1.0, as shown below:
Wget http://www.cybertec.at/download/pgwatch/pgwatch-1.0.tar.gz
2. decompress and open the README file to check the installation requirements. The installation here is not described in detail.
Tar-zxvf pgwatch-1.0.tar.gz
Vim README
------------------------
? More than Checkpoint_segments * 2 + wal_keep_segments should not be used in the standard quota system of PostgreSQL for so many xlog files. If the number of xlog files starts to grow massively, you will encounter some strange problems. Make sure the Archive_command is working properly. If you perform these checks correctly, nothing bad happens in this area-if you can't check these parameters, you're not far from the danger.6.1.2
Tags: check_postgres.plcheck_postgres.pl Plugin monitoring PostgreSQL database:Download URL:Https://exchange.nagios.org/directory/Plugins/Databases/PostgresQL/check_postgres/details# tar ZXFV check_postgres-2.11.1.tar.gz# Rsync-av check_postgres-2.11.1/check_postgres.pl/usr/lib/nagios/plugins/Shows the number of connections to the database AA:#/usr/lib/nagios/plu
/zabbix_agentd.d/Also, add the include settings to zabbix_agentd.conf to load the above file.(You need to restart the Zabbix agent to apply the settings)include=/etc/zabbix/zabbix_agentd.conf.d/Install Zabbix Sender (remember to install it)Installing on the CENTOS5RPM-IVH http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/5/x86_64/zabbix-sender-3.0.5-1.el5.x86_64.rpmInstalling the Zabbix_sender on the CENTOS6RPM-IVH http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/6/x86_64/zabbix-sender-3.0.5-1.el
;
Character set settings used by the database application;
Each cluster the volume and directory naming rules;
Standard parameter setting specification for PostgreSQL database.
In addition, we have developed a user architecture specification, which defines the standard initialization users of PostgreSQL cluster, such as DBA users, deploying dedicated users, replicating users,
internal firewall of PostgreSQL, which represents one of the two most important configuration files in a PostgreSQL cluster. It allows the user to define any type of authentication based on the source of the request. A database administrator, understanding the pg_hba.conf file is critical because this file determines whether a slave is allowed to connect to master. If you happen to miss something here. You
(1) User PracticalityProgram:
Createdb creates a new PostgreSQL database (same as SQL statement: Create Database)
Createuser creates a new PostgreSQL user (same as SQL statement: create user)
Dropdb deletes a database
Dropuser: delete a user
Pg_dump exports the PostgreSQL database to a script file
Pg_dumpall: export all
PostgreSQL database server listener settings and Client Connection Methods tutorial, postgresql Server
As we all know, PostgreSQL is a free object-relational database server (Database Management System). It is an open-source database system that can be used for free. This article describes in detail the listener settings and Client Connection Methods of the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.