1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-09-19 00:53:19 +00:00

Fixed indentation + configurable SDK path

This commit is contained in:
Jonas Friedmann 2013-04-19 21:56:07 +02:00
parent bed5815230
commit 007c2825a9
8 changed files with 28 additions and 22 deletions

View file

@ -16,8 +16,10 @@
/** /**
* JSONAPI configuration * JSONAPI configuration
* (get the SDK php file here: https://github.com/alecgorge/jsonapi/raw/master/sdk/php/JSONAPI.php)
*/ */
$apisdk = '/var/cache/munin/JSONAPI.php';
$hostname = 'your-hostname'; $hostname = 'your-hostname';
$username = 'your-username'; $username = 'your-username';
$password = 'your-password'; $password = 'your-password';
@ -40,8 +42,8 @@ players.label players
exit(); exit();
} }
// Include JSONAPI.php SDK (get this file here: https://github.com/alecgorge/jsonapi/raw/master/sdk/php/JSONAPI.php) // Include JSONAPI.php
require('/var/cache/munin/JSONAPI.php'); require($apisdk);
// Prepare API call // Prepare API call
$api = new JSONAPI($hostname, $port, $username, $password, $salt); $api = new JSONAPI($hostname, $port, $username, $password, $salt);

View file

@ -16,8 +16,10 @@
/** /**
* JSONAPI configuration * JSONAPI configuration
* (get the SDK php file here: https://github.com/alecgorge/jsonapi/raw/master/sdk/php/JSONAPI.php)
*/ */
$apisdk = '/var/cache/munin/JSONAPI.php';
$hostname = 'your-hostname'; $hostname = 'your-hostname';
$username = 'your-username'; $username = 'your-username';
$password = 'your-password'; $password = 'your-password';
@ -42,8 +44,8 @@ used.type GAUGE
exit(); exit();
} }
// Include JSONAPI.php SDK (get this file here: https://github.com/alecgorge/jsonapi/raw/master/sdk/php/JSONAPI.php) // Include JSONAPI.php
require('/var/cache/munin/JSONAPI.php'); require($apisdk);
// Prepare API call // Prepare API call
$api = new JSONAPI($hostname, $port, $username, $password, $salt); $api = new JSONAPI($hostname, $port, $username, $password, $salt);

View file

@ -16,8 +16,10 @@
/** /**
* JSONAPI configuration * JSONAPI configuration
* (get the SDK php file here: https://github.com/alecgorge/jsonapi/raw/master/sdk/php/JSONAPI.php)
*/ */
$apisdk = '/var/cache/munin/JSONAPI.php';
$hostname = 'your-hostname'; $hostname = 'your-hostname';
$username = 'your-username'; $username = 'your-username';
$password = 'your-password'; $password = 'your-password';
@ -40,8 +42,8 @@ tps.label TPS
exit(); exit();
} }
// Include JSONAPI.php SDK (get this file here: https://github.com/alecgorge/jsonapi/raw/master/sdk/php/JSONAPI.php) // Include JSONAPI.php
require('/var/cache/munin/JSONAPI.php'); require($apisdk);
// Prepare API call // Prepare API call
$api = new JSONAPI($hostname, $port, $username, $password, $salt); $api = new JSONAPI($hostname, $port, $username, $password, $salt);