2017 © Pedro Peláez
 

library munin-client-wrapper

Munin client wrapper on native PHP

image

konstantin-kuklin/munin-client-wrapper

Munin client wrapper on native PHP

  • Thursday, July 31, 2014
  • by KonstantinKuklin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality, (*1)

README

What is MuninClientWrapper?

MuninClientWrapper is a PHP wrapper for munin node. It is fully written on PHP. It allows developers to connect to munin-node and get munin version, list of installed plugins, plugins values, plugins configs., (*2)

Requirements

MuninClientWrapper is only supported on PHP 5.3 and up., (*3)

Installation

The best way to install MuninClientWrapper is via Composer: php composer.phar require konstantin-kuklin/munin-client-wrapper:dev-master, (*4)

Documentation

How get munin version:

$muninClient = new \Munin\Client($host,$port = 4949); $muninClient->getVersion();, (*5)

will return string with value like: 2.0.16, (*6)

$port not required, by default 4949, (*7)

How get plugins list:

$muninClient = new \Munin\Client($host,$port = 4949); $muninClient->getPluginsList();, (*8)

will return array vector like: array([0] => 'cpu', [1] => 'df' .... [29] => 'uptime'), (*9)

How get plugin values:

$muninClient = new \Munin\Client($host); $muninClient->getPluginValue('cpu');, (*10)

will return array map like: array([user] => 234234, [nice] => 3573 [system] => 8644 ....), (*11)

How to change timeout for reading:

$muninClient = new \Munin\Client($host); $muninClient->setReadTimeOut($seconds, $microseconds = 0), (*12)

by default is 2 seconds for each read operation from munin socket., (*13)

The Versions

31/07 2014

dev-master

9999999-dev https://github.com/KonstantinKuklin/MuninClientWrapper

Munin client wrapper on native PHP

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

php library munin munin-client

31/07 2014

0.01

0.01.0.0 https://github.com/KonstantinKuklin/MuninClientWrapper

Munin client wrapper on native PHP

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

php library munin munin-client