Git Product home page Git Product logo

php.server.status's Introduction

php.server.status

A simple PHP script to check and display various web server statuses:

No installation and no database is required. System status viewing

The first section of the script display connection status of some service running on your system. Simply open the php file and make necessary modificaiton in this region:

	$services[] = array("port" => "80", "service" => "Apache", "ip" => "") ;
	$services[] = array("port" => "21", "service" => "FTP", "ip" => "") ;
	$services[] = array("port" => "3306", "service" => "MYSQL", "ip" => "") ;
	$services[] = array("port" => "22", "service" => "Open SSH", "ip" => "") ;
	$services[] = array("port" => "9091", "service" => "Transmission", 	"ip" => "") ;

You can comment out service that you don't have or add new service use the similar syntax.

The second section of the script display system load status, uptime, resource usage information and top Resource usage process. You can add or remove the mountpoint you want to check for freep space, look for those lines of code:

/*
* The disks array list all mountpoint you wan to check freespace
* Display name and path to the moutpoint have to be provide, you can 
*/
$disks[] = array("name" => "local" , "path" => getcwd()) ;
// $disks[] = array("name" => "Your disk name" , "path" => '/mount/point/to/that/disk') ;

The last section of the script display network traffic statistic. Those information is gather by vnstat (http://humdi.net/vnstat/), you will need vnstat installed and properly configured before hand.

You can view various information gather and display by vnstat. The option you pass to vnstat will by specified HTTP GET parameter in your request URL. To view

vnstat -m

information, you will request the URL

checkup.php?showtraffic=m

php.server.status's People

Contributors

truongan avatar truonganvscodesync avatar ytteroy 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.