Munin Plugin - Players Graph
Posted: 29 Jun 2014, 12:19
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 :

Exemple munin page : http://ns3100027.ip-37-59-61.eu/munin/m ... t-day.html
Installation
Copy the files in
Edit the file
You need to configure your servers
The rest you should know. 
Add the plugin to the plugin list of munin,
Restart munin node and you should be Ok
Now you need to wait,
Test if it works
You can test using this command if the installation works
should display number of players for each server
should show the graph and their titles
Exemple output
and
I cleaned it up and grouped everything in one plugin for better performances.
Download : https://github.com/oliverde8/munin-mani ... master.zip
Exemple graph :

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
Code: Select all
/etc/munin/mp-players.php
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';

Add the plugin to the plugin list of munin,
Restart munin node and you should be Ok
Code: Select all
services munin-node restart

Test if it works
You can test using this command if the installation works
Code: Select all
munin-run mp_players
Code: Select all
munin-run mp_players config
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
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