Giter Site home page Giter Site logo

cpanel-site-checker's Introduction

cPanel Site Checker

This is a handy tool for administrators keeping an eye on managed and semi-managed cPanel hosting servers. It currently does the following:

  • Enumerates all accounts and domains on a list of cPanel servers
  • Skips any domains that don't resolve in DNS to the that particular server
  • Retrieves the content of the web site and logs it into a file
  • Saves a screenshot of the site using PhantomJS

It will eventually be extended to:

  • Compare the contents of each web site with its previous snapshot
  • If a significant difference is encountered, generate an email that contains an alert, as well as the before and after screenshots

Strategies for evaluating differences might include:

  • Comparison of first 1KB only
  • Percentage difference of entire page
  • Scanning for warning/error messages, e.g. PHP notices

In order to make operation of the tool as automatic as possible, I'd prefer not to have to configure the strategy on a per-domain basis - hopefully I'll come up with something that is generic enough to apply to all of the sites I look after.

It's intended to be run periodically from cron, but you may also wish to invoke it after server-wide PHP or Apache upgrades, WordPress core and plugin upgrades, account moves between servers, and so on.

Installation

  • Install PhantomJS (tested with 2.0.0)
  • bundle install
  • Create an access keys in WHM
  • Copy servers.yml.sample to servers.yml file and fill in the blanks

cpanel-site-checker's People

Contributors

joelw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.