1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 02:18:08 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -7,7 +7,7 @@ error_reporting( E_ALL &!E_NOTICE); //to avoid of the crap generation
/////////////////////////////////////////////////////////////////////////////////////////////////////
Murmur users online grahpher
ver 0.2alpha 2008.12.02, 20:32
ver 0.2alpha 2008.12.02, 20:32
author _KaszpiR_ kaszpir at gmail dot com
code is under GPL
@ -18,9 +18,9 @@ Requirements:
Notice:
- script allows the usage of the 'config' and 'autoconf' parameters during startup, make fure you edt config section before running it
- $limit - number of lines to tail from the lgo file, better keep it below 5000 for lower cpu load,
- $limit - number of lines to tail from the lgo file, better keep it below 5000 for lower cpu load,
additionally on busy servers you can keep it really low, suggested 3x maximum number of users online
- tested on
- tested on
PHP 5.2.6-3 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 2008 17:02:32)
murmur 1.1.4 precompiled binaries from sourceforge net, all running under debian etch
- this is not the best way to get users connected to the murmur server, maybe in the beginningn of the 2009 gonna make another script
@ -60,7 +60,7 @@ if(isset($argv[1]) && $argv[1] == "autoconf")
{
fwrite(STDOUT, "Yes\n");
}
else
else
{
fwrite(STDOUT, "No\n");
fwrite(STDERR, "check if '$logfile' exists and it is allowed to be read by munin user group\n");
@ -82,7 +82,7 @@ if(isset($argv[1]) && $argv[1] == "config")
fwrite(STDOUT, "murmur.label Users on server\n");
fwrite(STDOUT, "murmur.type GAUGE\n");
return 0;
}else {
echo "check if '$logfile' exists and it is allowed to be read by munin user group\n";
return 1;
@ -125,15 +125,15 @@ for($i=count($fp);$i>(count($fp)-$limit);--$i)
strpos($msg," Connection closed")!==FALSE
|| strpos($msg," Tiemout")!==FALSE
){
$seen[$nick]['online'] = 0;
$seen[$nick]['online'] = 0;
$offline+=1;
}
else
{
$seen[$nick]['online'] = 1;
$seen[$nick]['online'] = 1;
$online+=1;
}
}
}
@ -147,4 +147,4 @@ return 0;
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
//end of file
?>
?>