Skip to content

Servers Status Monitor Web - Based on Performance Co-Pilot (PCP)

Notifications You must be signed in to change notification settings

BITNP/NP.MonitorWeb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NP.MonitorWeb

Introduction

  • This web shows Server's performance information by dynamic graphs using the data collected from 'Performance Co-Pilot' Client server.

Installation (on client server)

PCP Collecter Host

  • To install basic PCP tools and services and enable collecting performance data on Fedora/RHEL, run:
# yum install pcp 
# chkconfig pmcd on 
# service pmcd start 
# chkconfig pmlogger on 
# service pmlogger start
  • To install basic PCP tools and services and enable collecting performance data on Debian/Ubuntu, run:
$ sudo apt-get install pcp 
$ sudo update-rc.d pmcd defaults 
$ sudo update-rc.d pmlogger defaults 
$ sudo service pmcd restart 
$ sudo service pmlogger restart
  • This will enable the Performance Metrics Collector Daemon ( pmcd(1) ) on the host which then in turn will control and request metrics on behalf of clients from various Performance Metrics Domain Agents (PMDAs). The PMDAs provide the actual data from different components (domains) in the system, for example from the Linux Kernel PMDA or the NFS Client PMDA. The default configuration includes over 1000 metrics with negligible overall overhead. Local PCP archive logs will also be enabled on the host for convenience with pmlogger(1) .

  • To enable PMDAs which are not enabled by default, for example the Postfix PMDA, run the corresponding Install script:

# cd /var/lib/pcp/pmdas/postfix 
# ./Install
  • The client tools will contact local or remote PMCDs as needed, communication with PMCD over the network uses TCP port 44321 by default.

Performance Metrics Web Daemon

  • Performance Metrics Web Daemon ( pmwebd(1) ) is a front-end to both PMCD and PCP archives, providing a REST web service (over HTTP/JSON) suitable for use by web-based tools wishing to access performance data over HTTP. Custom applications can access all the available PCP information using this method, including custom metrics generated by custom PMDAs.

  • To install the PCP web service on Fedora/RHEL:

# yum install pcp-webapi 
# chkconfig pmwebd on 
# service pmwebd start
  • To install the PCP web service on Debian/Ubuntu:
$ sudo apt-get install pcp-webapi 
$ sudo update-rc.d pmwebd defaults 
$ sudo service pmwebd restart

Deploy (on monitor web server)

  • Just copy these web files to a folder that you can access by your browser.

Using

  • Input cilent server's IP(:Port) to Hostname. Default port is 44323.

Demo

demo

About

Servers Status Monitor Web - Based on Performance Co-Pilot (PCP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 74.5%
  • HTML 25.5%