惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
P
Proofpoint News Feed
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
A
About on SuperTechFans
T
Tenable Blog
M
MIT News - Artificial intelligence
IT之家
IT之家
I
Intezer
D
DataBreaches.Net
爱范儿
爱范儿
T
Threatpost
C
CERT Recently Published Vulnerability Notes
云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
Cyberwarzone
Cyberwarzone
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
Spread Privacy
Spread Privacy
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
AWS News Blog
AWS News Blog
博客园 - 聂微东
C
Check Point Blog
S
Securelist
有赞技术团队
有赞技术团队
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
D
Docker
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
L
Lohrmann on Cybersecurity
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog

博客园 - ode

[原创]pg_shard使用场景及功能测试 [原创]PostgreSQL中十进制、二进制、十六进制之间的相互转换 [原创]在Windows和Linux中搭建PostgreSQL源码调试环境 [原创]Postgres-XC集群笔记-概念与环境搭建 [翻译]开源PostgreSQL监控工具OPM [原创]使用benchmarksql和pgbench对PostgreSQL Plus Advanced Server进行性能测试 [原创]PostgreSQL Plus Advanced Server监控工具PEM(四) [原创]PostgreSQL Plus Advanced Server监控工具PEM(三) [原创]PostgreSQL Plus Advanced Server监控工具PEM(二) [原创]EnterpriseDB测试key申请方法 [原创] PostgreSQL Plus Advanced Server在Windows中配置双机热备流复制 [原创]PostgreSQL Plus Advanced Server批量创建分区表写入亿级别数据实例 [原创]从Oracle和Microsoft Sql Server迁移到PostgreSQL Plus Advanced Server [原创]PostgreSQL Plus Advince Server在 HA环境中一对多的Stream Replication配置(四) [原创]PostgreSQL Plus Advince Server在 HA环境中一对多的Stream Replication配置(三) [原创]PostgreSQL Plus Advince Server在 HA环境中一对多的Stream Replication配置(二) [原创]PostgreSQL Plus Advince Server在 HA环境中一对多的Stream Replication配置(一) [原创]PostgreSQL Plus Advanced Server配合crontab实现定时维护工作 [原创]libpq-PostgreSQL客户端编程接口(三)----libpq在Qt中的封装实现及应用
[原创]PostgreSQL Plus Advanced Server监控工具PEM(一)
ode · 2014-02-22 · via 博客园 - ode

一、概述

PEM是为数据库管理员、系统架构师和性能分析师为管理、监控和优化 PostgreSQL 和 EnterpriseDB 数据库服务器设计的图形化管理工具。旨在解决大量数据库服务器跨地域、精细化管理的问题,最大限度的提高收集统计信息、远程操作的能力;

二、安装PEM

PEM包含三个部分:

PEM Server从代理收集监控信息并持久化存储;

PEM Client是一个图形化界面的客户端应用程序,提供服务器的启停、配置管理、存储和安全控制、创建对象等易用的功能;

PEM Agent:在监控服务上执行收集数据库服务器和操作系统的统计信息的任务;

PEM Server、Agent、Client都可以在Stack Builder中安装,也可以通过下载进行安装,下载地址为:

http://www.enterprisedb.com/download-postgres-enterprise-manager

下载列表中还有一些其他的扩展,这里我们需要SQL Profiler,他为PEM提供SQL性能分析的动态库及配置文件。

1、安装PEM Server

安装PEM Server端需要图形化界面,使用root权限,并且禁用SELinux。可以先getenforce来检查SELinux是否禁用,如果没有禁用,修改SELinux的配置文件禁用它,。

[root@rhel ~]# vim /etc/selinux/config

修改SELINUX=disabled,禁用selinux

[root@rhel ~]# reboot

或者:[root@rhel ~]# setenforce 0,避免重启服务器。

为安装文件赋予执行权限

[root@rhel ~]# chmod u+x pem_server-3.0.1-7-linux-x64.run

执行安装:

[root@rhel ~]# ./pem_server-3.0.1-7-linux-x64.run

下面开始安装。

这一步为避免老版本的PEM客户端的BUG,选择第三项,即PostgreSQL 9.2(Packaged)

至此,PEM Server安装结束。这时我们已经可以通过web client访问PEM Server了。

如果不能访问PEM Server,按下面的思路检查问题。

a、检查PEM Server后端的PostgreSQL数据库的安全设置。

[root@dbserver ~]# vim /opt/PostgreSQL/9.2/data/pg_hba.conf

增加:

host all all 192.168.101.0/0 md5

修改完之后需要重启后端数据库服务:

[root@dbserver ~]# /etc/init.d/postgresql-9.2 restart

如果仍然无法访问,请检查iptables规则,也可以关闭iptables。

[root@rhel data]# /etc/init.d/iptables stop

[root@rhel data]# chkconfig iptables off

b、检查apache服务

[root@rhel ~]# ps -ef | grep apache

如果apache没有启动,在

[root@rhel ~]# /etc/init.d/EnterpriseDBApachePhp {start|stop|restart}

访问web client:

https://192.168.101.102:8443/pem/index.html

输入用户名密码进入

以上是通过WEB浏览器访问PEM Server。PEM Web Client使用虽然比较便利,但是功能有限,仅仅能够查看信息,不能对托管数据库服务器进行启停操作等等,因此我们一般使用PEM Client来进行日常运维管理。