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/netscaler/snmp__netscaler_cpu
23 23
# GNU General Public License for more details.
24 24
#
25 25
# You should have received a copy of the GNU General Public License
26
# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
26
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
27 27
#
28
# ---------------------------------------------------- # 
28
# ---------------------------------------------------- #
29 29

  
30 30
=head1 NAME
31 31

  
......
33 33

  
34 34
=head1 CONFIGURATION
35 35

  
36
Make a symlink from netscaler_cpu_ to /etc/munin/plugins/netscaler_cpu_<nsfqdn>. 
36
Make a symlink from netscaler_cpu_ to /etc/munin/plugins/netscaler_cpu_<nsfqdn>.
37 37
You can omit <nsfqdn>, then you need the env variable B<host>.
38 38

  
39 39
To configure the plugin, use ENV variables.
......
96 96
$o_port = 161;
97 97

  
98 98
my $return_str = "";
99
my @cpu_name = ();	
99
my @cpu_name = ();
100 100

  
101 101

  
102 102
# ---------------------------- snmp ---------------------------- #
......
176 176

  
177 177
&close_session($session);
178 178

  
179
print "$return_str"; 
179
print "$return_str";
180 180
exit 0;
181 181

  
182 182
# --------------------------- functions ------------------------- #
......
206 206
sub get_buildversion {
207 207
	my ($session) = @_;
208 208
       	my $build_version;
209
	
209

  
210 210
	my $result = $session->get_request(
211 211
		      -varbindlist => [$oid_build_version]
212 212
	);
......
268 268
		return 0;
269 269
	}
270 270
	else {
271
		@cpu_name = ();	
271
		@cpu_name = ();
272 272
		foreach my $n ($session->var_bind_names()) {
273 273
		 		push @cpu_name, $session->var_bind_list()->{$n};
274 274
		}

Formats disponibles : Unified diff