{"id":15370126,"url":"https://github.com/danschultzer/monit-graph","last_synced_at":"2025-04-15T13:53:20.920Z","repository":{"id":2019984,"uuid":"2955895","full_name":"danschultzer/monit-graph","owner":"danschultzer","description":"PHP graphing and logging tool for Monit, to graph and analyse process and/or server performance.","archived":false,"fork":false,"pushed_at":"2017-05-02T02:59:19.000Z","size":93,"stargazers_count":80,"open_issues_count":1,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-28T20:46:30.457Z","etag":null,"topics":["monit","monit-graph","ops","php"],"latest_commit_sha":null,"homepage":"https://dreamconception.com/tech/tools/measure-your-server-performance-with-monit-and-monit-graph/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danschultzer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-10T23:54:16.000Z","updated_at":"2025-01-07T09:41:44.000Z","dependencies_parsed_at":"2022-09-11T04:50:41.523Z","dependency_job_id":null,"html_url":"https://github.com/danschultzer/monit-graph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danschultzer%2Fmonit-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danschultzer%2Fmonit-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danschultzer%2Fmonit-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danschultzer%2Fmonit-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danschultzer","download_url":"https://codeload.github.com/danschultzer/monit-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249085474,"owners_count":21210267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["monit","monit-graph","ops","php"],"created_at":"2024-10-01T13:40:01.483Z","updated_at":"2025-04-15T13:53:20.894Z","avatar_url":"https://github.com/danschultzer.png","language":"PHP","readme":"# Monit Graph\n\n[![Build Status](https://travis-ci.org/danschultzer/monit-graph.svg?branch=master)](https://travis-ci.org/danschultzer/monit-graph)\n\nMonit 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.\n\n![Monit Graph Detail Panel](https://dreamconception.com/images/2012/06/monit-graph-detail1.png)\n\n#### Features\n\n* Easy to manage and customize\n* Several different graphs (Google Charts) of memory, cpu, swap and alert activity\n* Data logging with XML files\n* Chunk rotation and size limitation\n* Multiple server setup\n\n## Get started\n\nTo get started, you will first need to have Monit installed with HTTP access enabled. You can read more under \"Setting up Monit\".\n\n1. `composer install`\n2. Add `config/servers.ini` (you can use [`servers.template.ini`](config/servers.template.ini))\n3. Set up a crontab job to run cron every minute:\n   ```cron\n   * * * * * cd /path/to/monit-graph \u0026\u0026 php src/scripts/cron.php \u003e\u003e /var/log/monit-graph.log\n   ```\n4. Start server:\n   ```bash\n   composer server\n   ```\n\n## Setting up Monit\n\nTo setup Monit on Ubuntu, please follow the below steps.\n\n#### Install Monit\n\n```bash\nsudo apt-get update\nsudo apt-get install monit\n```\n\n#### Edit configuration file for Monit\n\n```bash\nsudo vi /etc/monit/monitrc\n```\n\nMake sure the following parameters are set correctly (these are examples, adjust accordingly):\n\n```conf\nset idfile /var/run/monit-id\nset statefile /var/run/monit-state\nset daemon 60\nset logfile /var/log/monit.log\n\nset mailserver localhost\nset mail-format { from: monit@mydomain.com }\n\nset alert myemail@myemaildomain.com\t                 # receive all alerts\nset 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\n  ssl enable                                         # Enabling SSL\n  pemfile /etc/ssl/monit.pem                         # The PEM file\n  signature disable                                  # No server signature to send\n  allow mylogin:\"mypassword\"                         # Login\n```\n\nRemember to allow httpd to run, or else Monit graph cannot contact you.\n\n#### Add services to Monit\n\nAdd a few configuration files into the /etc/monit/conf.d/ directory. You can use the examples from the monitrc directory.\n\nCheck if the configuration are good:\n\n```bash\nmonit -t\n```\n\n#### Restart Monit with the new configuration\n\nRestart\n\n```bash\nservice monit restart\n```\n\n## Tips\n\n1. If the script have trouble managing big amounts of data, try increase the allowed allocated memory in a .htaccess\n\n2. REMEMBER to password protect the directory with .htaccess or anything appropriate\n\n3. Loading many services can be very heavy for your browser, try specify the services you wish be shown.\n\n## Contributing\n\nMonit-Graph has a few tools to help development.\n\n### Build massive data structure\n\n```bash\ncomposer build-massive-data\n```\n\n## Links\n[Blog post about Monit and Monit-Graph](https://dreamconception.com/tech/tools/measure-your-server-performance-with-monit-and-monit-graph/)\n\n[Official Monit Website](http://mmonit.com/monit/)\n\n## About\nDan Schultzer works at Dream Conception (http://dreamconception.com/). This script was developed to increase the usability of Monit.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanschultzer%2Fmonit-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanschultzer%2Fmonit-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanschultzer%2Fmonit-graph/lists"}