Munin Plugin - Players Graph

Moderators: Xymph, NADEO

Post Reply
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Munin Plugin - Players Graph

Post by oliverde8 »

Hi, I was asked a few times for the plugin I did to show a munin graph for number of players on the server.

I cleaned it up and grouped everything in one plugin for better performances.

Download : https://github.com/oliverde8/munin-mani ... master.zip

Exemple graph :
Image

Exemple munin page : http://ns3100027.ip-37-59-61.eu/munin/m ... t-day.html

Installation
Copy the files in

Code: Select all

/etc/munin
Edit the file

Code: Select all

/etc/munin/mp-players.php
You need to configure your servers

Code: Select all

$settings['name'][0] = 'server - 1';  //The name of the server as you would like to see it in munin$
 $settings['ip'][0] = '127.0.0.1';
 $settings['port'][0] = '5005';
 $settings['login'][0] = 'Admin';
 $settings['pwd'][0] = 'Admin';
The rest you should know. :D

Add the plugin to the plugin list of munin,

Restart munin node and you should be Ok

Code: Select all

services munin-node restart
Now you need to wait, :)

Test if it works
You can test using this command if the installation works

Code: Select all

munin-run mp_players
should display number of players for each server

Code: Select all

munin-run mp_players config
should show the graph and their titles

Exemple output

Code: Select all

multigraph mp_players_0

Connected
players.value 0
specs.value 0

multigraph mp_players_total

players.value 0
specs.value 0
and

Code: Select all

multigraph mp_players_0

graph_title ManiaPlanet Players - server - 1
graph_category ManiaPlanet
players.label Number of players
specs.label Number of Spectators

multigraph mp_players_total

graph_title ManiaPlanet Players - TOTAL
graph_category ManiaPlanet
players.label Number of players
specs.label Number of Spectators
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Post Reply

Return to “General Tools”

Who is online

Users browsing this forum: No registered users and 1 guest