| 1 |
From 480f78e713b9e9a425ad425342afac70420a4043 Mon Sep 17 00:00:00 2001
|
| 2 |
From: Jeremy Olexa <darkside@gentoo.org>
|
| 3 |
Date: Wed, 18 Apr 2012 16:30:57 +0000
|
| 4 |
Subject: [PATCH] Fix warnings from previous patch
|
| 5 |
|
| 6 |
Use of uninitialized value $Munin::Common::Defaults::MUNIN_VERSION in
|
| 7 |
sprintf at /etc/munin/plugins/nginx_status line 110.
|
| 8 |
---
|
| 9 |
plugins/node.d/nginx_request.in | 2 ++
|
| 10 |
plugins/node.d/nginx_status.in | 2 ++
|
| 11 |
2 files changed, 4 insertions(+), 0 deletions(-)
|
| 12 |
|
| 13 |
diff --git a/plugins/node.d/nginx_request.in b/plugins/node.d/nginx_request.in
|
| 14 |
index 402ce54..d3933e1 100644
|
| 15 |
--- a/plugins/node.d/nginx_request.in
|
| 16 |
+++ b/plugins/node.d/nginx_request.in
|
| 17 |
@@ -55,6 +55,8 @@ license. Munin is GPLv2 licensed.
|
| 18 |
|
| 19 |
=cut
|
| 20 |
|
| 21 |
+use Munin::Plugin;
|
| 22 |
+
|
| 23 |
my $ret = undef;
|
| 24 |
|
| 25 |
if (! eval "require LWP::UserAgent;"){
|
| 26 |
diff --git a/plugins/node.d/nginx_status.in b/plugins/node.d/nginx_status.in
|
| 27 |
index 0d5d966..a427fc0 100644
|
| 28 |
--- a/plugins/node.d/nginx_status.in
|
| 29 |
+++ b/plugins/node.d/nginx_status.in
|
| 30 |
@@ -55,6 +55,8 @@ license. Munin is GPLv2 licensed.
|
| 31 |
|
| 32 |
=cut
|
| 33 |
|
| 34 |
+use Munin::Plugin;
|
| 35 |
+
|
| 36 |
my $ret = undef;
|
| 37 |
|
| 38 |
if (! eval "require LWP::UserAgent;"){
|
| 39 |
--
|
| 40 |
1.7.3.4
|
| 41 |
|