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/printer/snmp__hpclj
140 140
tray3.max 100
141 141
";
142 142
	}
143
	
143

  
144 144
	print "multigraph hpclj_pagecount
145 145
graph_category printing
146 146
graph_title HP Printer Page Counters
......
182 182
	my $field = $_[0];
183 183
	my $oid_cur = $_[1];
184 184
	my $oid_max = $_[2];
185
	
185

  
186 186
	if(not oidExists($oid_cur) || not oidExists($oid_max)){
187 187
		return(0);
188 188
	}
189
	
189

  
190 190
	my $val_max	= $session->get_single($oid_max) || 'U';
191 191
	my $val_cur	= $session->get_single($oid_cur);
192 192
	if ($val_max ne 'U') {
......
199 199
	}
200 200
	my $field = $_[0];
201 201
	my $oid = $_[1];
202
	
202

  
203 203
	if(not oidExists($oid)){
204 204
		return(0);
205 205
	}
206
	
206

  
207 207
	my $val_cur	= $session->get_single($oid) || 'U';
208 208
	if ($val_cur ne 'U') {
209 209
		print $field, ".value ", $val_cur, "\n";
......
215 215
	}
216 216
	my $oid = $_[0];
217 217
	my $val = $session->get_single($oid);
218
	
218

  
219 219
	if(!length $val || $val eq 'noSuchInstance' || $val eq 'U'){
220 220
		return(0);
221 221
	}else{

Formats disponibles : Unified diff