1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +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

@ -23,9 +23,9 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ---------------------------------------------------- #
# ---------------------------------------------------- #
=head1 NAME
@ -33,7 +33,7 @@ netscaler_conn - Munin plugin to monitor netscaler connections
=head1 CONFIGURATION
Make a symlink from netscaler_conn_ to /etc/munin/plugins/netscaler_conn_<nsfqdn>.
Make a symlink from netscaler_conn_ to /etc/munin/plugins/netscaler_conn_<nsfqdn>.
You can omit <nsfqdn>, then you need the env variable B<host>.
To configure the plugin, use ENV variables.
@ -173,7 +173,7 @@ $return_str .= "ssl.value $counter1\n";
&close_session($session);
print "$return_str";
print "$return_str";
exit 0;
# --------------------------- functions ------------------------- #
@ -203,7 +203,7 @@ sub close_session {
sub get_buildversion {
my ($session) = @_;
my $build_version;
my $result = $session->get_request(
-varbindlist => [$oid_build_version]
);
@ -228,7 +228,7 @@ sub get_oid_values {
if (!defined($result)) {
return "na";
}
else {
else {
$return_value = $result->{$oid_string};
return $return_value;
}

View file

@ -23,9 +23,9 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ---------------------------------------------------- #
# ---------------------------------------------------- #
=head1 NAME
@ -33,7 +33,7 @@ netscaler_cpu - Munin plugin to monitor CPU usage
=head1 CONFIGURATION
Make a symlink from netscaler_cpu_ to /etc/munin/plugins/netscaler_cpu_<nsfqdn>.
Make a symlink from netscaler_cpu_ to /etc/munin/plugins/netscaler_cpu_<nsfqdn>.
You can omit <nsfqdn>, then you need the env variable B<host>.
To configure the plugin, use ENV variables.
@ -96,7 +96,7 @@ $o_community = undef;
$o_port = 161;
my $return_str = "";
my @cpu_name = ();
my @cpu_name = ();
# ---------------------------- snmp ---------------------------- #
@ -176,7 +176,7 @@ if ($ARGV[0] and $ARGV[0] eq "config") {
&close_session($session);
print "$return_str";
print "$return_str";
exit 0;
# --------------------------- functions ------------------------- #
@ -206,7 +206,7 @@ sub close_session {
sub get_buildversion {
my ($session) = @_;
my $build_version;
my $result = $session->get_request(
-varbindlist => [$oid_build_version]
);
@ -268,7 +268,7 @@ sub get_cpus {
return 0;
}
else {
@cpu_name = ();
@cpu_name = ();
foreach my $n ($session->var_bind_names()) {
push @cpu_name, $session->var_bind_list()->{$n};
}