Skip to content

richbarrett7/HealthCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a very lightweight tool for checking some server health metrics (designed to work with Ubuntu).

Methods available

  • diskSpacePercentageUsed
  • diskSpaceFree
  • diskSpaceTotal
  • diskSpaceUsed
  • memoryInfo
  • totalMemory
  • memoryPhysicallyFree
  • memoryPhysicallyUsed
  • memoryUsedPercentage
  • loadAverages

Installation

You can install this with composer: composer require richbarrett/HealthCheck

Usage

include_once('vendor/autoload.php');
$hc = new \richbarrett\HealthCheck\HealthCheck;
echo 'Disk currently '. $hc->diskSpacePercentageUsed().'% full ('.$hc->diskSpaceFree().'gb available)';

About

Very small tool to obtain local server health data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages