All Projects → danschultzer → monit-graph

danschultzer / monit-graph

Licence: other
PHP graphing and logging tool for Monit, to graph and analyse process and/or server performance.

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects
CSS
56736 projects
ApacheConf
554 projects

Projects that are alternatives of or similar to monit-graph

python-epo-ops-client
Python Client for the European Patent Office's Open Patent Services API
Stars: ✭ 104 (+33.33%)
Mutual labels:  ops
slacker
Simple smtp email server which redirects emails to slack.
Stars: ✭ 24 (-69.23%)
Mutual labels:  monit
saltstack-cheatsheet
🧂 SaltStack Cheat Sheet Plus
Stars: ✭ 31 (-60.26%)
Mutual labels:  ops
awesome-ops-system
收集了一些运维管理系统
Stars: ✭ 116 (+48.72%)
Mutual labels:  ops
devops-book
运维开发
Stars: ✭ 29 (-62.82%)
Mutual labels:  ops
opssight-connector
OpsSight Connector documentation
Stars: ✭ 15 (-80.77%)
Mutual labels:  ops
Chain
链喵 CMDB 本项目已停止开发!因长时间未对代码进行维护,可能会造成项目在不同环境上无法部署、运行BUG等问题,请知晓!项目仅供参考!
Stars: ✭ 240 (+207.69%)
Mutual labels:  ops
re-gent
A Distributed Clojure agent for running remote functions
Stars: ✭ 18 (-76.92%)
Mutual labels:  ops
td-redis-operator
一款强大的云原生redis-operator,经过大规模生产级运行考验,支持分布式集群、支持主备切换等缓存集群解决方案…The powerful cloud-native redis-operator, which has passed the test of large-scale production-level operation, supports distributed clusters and active/standby switching ...
Stars: ✭ 327 (+319.23%)
Mutual labels:  ops
AWSMonitoringTutorials
No description or website provided.
Stars: ✭ 41 (-47.44%)
Mutual labels:  monit
openshift-slack-notifications
OpenShift slack notifications
Stars: ✭ 14 (-82.05%)
Mutual labels:  ops
chef
Chef configuration management repo for configuring & maintaining the OpenStreetMap servers.
Stars: ✭ 94 (+20.51%)
Mutual labels:  ops
seal
django-base-templates 主要为 django 开发DEMO, 支持 非前后端分离 和 前后端分离模式 。
Stars: ✭ 118 (+51.28%)
Mutual labels:  ops
monit
Ansible role that configures monit. Will also setup baseline monitoring of SSH, NTP, and Cron.
Stars: ✭ 37 (-52.56%)
Mutual labels:  monit
iidy
iidy (Is it done yet?) -- CloudFormation with Confidence
Stars: ✭ 46 (-41.03%)
Mutual labels:  ops
Opendevops
CODO是一款为用户提供企业多混合云、一站式DevOps、自动化运维、完全开源的云管理平台、自动化运维平台
Stars: ✭ 2,990 (+3733.33%)
Mutual labels:  ops
esop
Cloud-enabled backup and restore tool for Apache Cassandra
Stars: ✭ 40 (-48.72%)
Mutual labels:  ops
operations
OSMF Operations Working Group issue tracking
Stars: ✭ 79 (+1.28%)
Mutual labels:  ops
infrastructure-as-code
anmolnagpal.com/infrastructure-as-code
Stars: ✭ 17 (-78.21%)
Mutual labels:  ops
patent client
A collection of ORM-style clients to public patent data
Stars: ✭ 14 (-82.05%)
Mutual labels:  ops

Monit Graph

Build Status

Monit Graph is a logging and graphing tool for Monit written in PHP5. It can manage big amounts of data, and will keep a history of Monit statuses.

Monit Graph Detail Panel

Features

  • Easy to manage and customize
  • Several different graphs (Google Charts) of memory, cpu, swap and alert activity
  • Data logging with XML files
  • Chunk rotation and size limitation
  • Multiple server setup

Get started

To get started, you will first need to have Monit installed with HTTP access enabled. You can read more under "Setting up Monit".

  1. composer install
  2. Add config/servers.ini (you can use servers.template.ini)
  3. Set up a crontab job to run cron every minute:
    * * * * * cd /path/to/monit-graph && php src/scripts/cron.php >> /var/log/monit-graph.log
    
  4. Start server:
    composer server

Setting up Monit

To setup Monit on Ubuntu, please follow the below steps.

Install Monit

sudo apt-get update
sudo apt-get install monit

Edit configuration file for Monit

sudo vi /etc/monit/monitrc

Make sure the following parameters are set correctly (these are examples, adjust accordingly):

set idfile /var/run/monit-id
set statefile /var/run/monit-state
set daemon 60
set logfile /var/log/monit.log

set mailserver localhost
set mail-format { from: [email protected] }

set alert [email protected]	                 # receive all alerts
set httpd port 2812 and use the address XX.XX.XX.XX  # Remove "and use the address XX.XX.XX.XX", if not bind to specific IP
  ssl enable                                         # Enabling SSL
  pemfile /etc/ssl/monit.pem                         # The PEM file
  signature disable                                  # No server signature to send
  allow mylogin:"mypassword"                         # Login

Remember to allow httpd to run, or else Monit graph cannot contact you.

Add services to Monit

Add a few configuration files into the /etc/monit/conf.d/ directory. You can use the examples from the monitrc directory.

Check if the configuration are good:

monit -t

Restart Monit with the new configuration

Restart

service monit restart

Tips

  1. If the script have trouble managing big amounts of data, try increase the allowed allocated memory in a .htaccess

  2. REMEMBER to password protect the directory with .htaccess or anything appropriate

  3. Loading many services can be very heavy for your browser, try specify the services you wish be shown.

Contributing

Monit-Graph has a few tools to help development.

Build massive data structure

composer build-massive-data

Links

Blog post about Monit and Monit-Graph

Official Monit Website

About

Dan Schultzer works at Dream Conception (http://dreamconception.com/). This script was developed to increase the usability of Monit.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].