MediaWiki extension HostStats

Clone this repo:
  1. 692763d build: Updating cross-spawn to 7.0.6 by libraryupgrader · 7 weeks ago master
  2. 850efd3 build: Updating mediawiki/mediawiki-codesniffer to 45.0.0 by libraryupgrader · 9 weeks ago
  3. 1126d43 build: Updating micromatch to 4.0.8 by libraryupgrader · 5 months ago
  4. 8ab5701 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0 by libraryupgrader · 5 months ago
  5. e0139e8 build: Updating eslint-config-wikimedia to 0.28.2 by libraryupgrader · 7 months ago

HostStats

HostStats is a MediaWiki extension for displaying the host statistics of the server hosting the wiki. The commands that you wish to run and display to the public is configurable with $wgHostStatsCommands.

Installing and Configuring

To install this extension, either git clone this repository or download one of the git tag tarballs and extract it in the extensions directory. After that, add this to your wiki's LocalSettings.php:

require_once("$IP/extensions/HostStats/HostStats.php");

If you need, you can configure the commands you wish to run and display using $wgHostStatsCommands. The default is:

$wgHostStatsCommands = array(
	'hostname',
	'df -h'
);

Note: You are configuring this at your own risk! Such commands may accidentally reveal information that an attacker may steal and manipulate to launch an attack against your server!

Issues/Questions?

Proceed directly to the issue tracker and create a new issue. It will be looked at as soon as possible.

  NODES
3d 1
hosting 1
Note 1
os 16
server 2