Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/voip/murmur_users
7 7
/////////////////////////////////////////////////////////////////////////////////////////////////////
8 8

  
9 9
Murmur users online grahpher
10
ver 0.2alpha 2008.12.02, 20:32 
10
ver 0.2alpha 2008.12.02, 20:32
11 11
author _KaszpiR_ kaszpir at gmail dot com
12 12
code is under GPL
13 13

  
......
18 18

  
19 19
Notice:
20 20
- script allows the usage of the 'config' and 'autoconf' parameters during startup, make fure you edt config section before running it
21
- $limit - number of lines to tail from the lgo file, better keep it below 5000 for lower cpu load, 
21
- $limit - number of lines to tail from the lgo file, better keep it below 5000 for lower cpu load,
22 22
  additionally on busy servers you can keep it really low, suggested 3x maximum number of users online
23
- tested on 
23
- tested on
24 24
	PHP 5.2.6-3 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 2008 17:02:32)
25 25
	murmur 1.1.4 precompiled binaries from sourceforge net, all running under debian etch
26 26
- 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 60
	{
61 61
		fwrite(STDOUT, "Yes\n");
62 62
	}
63
	else 
63
	else
64 64
	{
65 65
		fwrite(STDOUT, "No\n");
66 66
		fwrite(STDERR, "check if '$logfile' exists and it is allowed to be read by munin user group\n");
......
82 82
		fwrite(STDOUT, "murmur.label Users on server\n");
83 83
		fwrite(STDOUT, "murmur.type GAUGE\n");
84 84
		return 0;
85
		
85

  
86 86
	}else {
87 87
		echo "check if '$logfile' exists and it is allowed to be read by munin user group\n";
88 88
		return 1;
......
125 125
			strpos($msg," Connection closed")!==FALSE
126 126
		||	strpos($msg," Tiemout")!==FALSE
127 127
	){
128
		$seen[$nick]['online'] = 0;		
128
		$seen[$nick]['online'] = 0;
129 129
		$offline+=1;
130 130

  
131 131
	}
132 132
	else
133 133
		{
134
		$seen[$nick]['online'] = 1;		
134
		$seen[$nick]['online'] = 1;
135 135
		$online+=1;
136
	
136

  
137 137
		}
138 138
	}
139 139
}
......
147 147
/////////////////////////////////////////////////////////////////////////////////////////////////////
148 148
/////////////////////////////////////////////////////////////////////////////////////////////////////
149 149
//end of file
150
?>
150
?>

Formats disponibles : Unified diff