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/snmp/snmp__cpu_usage
119 119

  
120 120
my $cpu = 0;
121 121

  
122
my %cpuCounters = ( 
122
my %cpuCounters = (
123 123
	cpuUser 	=> "1.3.6.1.4.1.2021.11.9.$cpu", 	# The percentage of CPU time spent processing user-level code, calculated over the last minute
124 124
	cpuSystem	=> "1.3.6.1.4.1.2021.11.10.$cpu", 	# The percentage of CPU time spent processing system-level code, calculated over the last minute
125 125
	cpuIdle		=> "1.3.6.1.4.1.2021.11.11.$cpu",	# The percentage of processor time spent idle, calculated over the last minute
......
147 147
	foreach my $c (keys %cpuCounters) {
148 148
		print $c . ".label $c\n";
149 149
		print $c . ".type GAUGE\n";
150
		if ($firstCounter) { 
150
		if ($firstCounter) {
151 151
			print $c . ".draw AREA\n";
152 152
			$firstCounter = 0;
153 153
		} else {
......
156 156
		print $c . ".min 0\n";
157 157
	}
158 158

  
159
	exit 0; 
159
	exit 0;
160 160
}
161 161

  
162 162
foreach my $c (keys %cpuCounters) {

Formats disponibles : Unified diff