Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 275915 Details for
Bug 370131
net-analyzer/munin: merge request of two patches
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch #1
0001-apc_nis-plugin-add-UPS-s-internal-temperature-to-the.patch (text/plain), 1.46 KB, created by
Diego Elio Pettenò (RETIRED)
on 2011-06-05 12:38:46 UTC
(
hide
)
Description:
Patch #1
Filename:
MIME Type:
Creator:
Diego Elio Pettenò (RETIRED)
Created:
2011-06-05 12:38:46 UTC
Size:
1.46 KB
patch
obsolete
>From e86ab027ab37bfb541e4d20dadcaac64e8ab3a7e Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@gmail.com> >Date: Mon, 4 Apr 2011 16:23:52 +0200 >Subject: [PATCH 1/2] apc_nis plugin: add UPS's internal temperature to the > graph. >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Some APC UPS, such as the SmartUPS series, provide the internal >temperature of the system, which is then exposed by apcupsd. > >This is pretty important because overheating UPSs simply shut off without >warning. > >Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com> >--- > plugins/node.d/apc_nis.in | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/plugins/node.d/apc_nis.in b/plugins/node.d/apc_nis.in >index 63ec390..6c06459 100644 >--- a/plugins/node.d/apc_nis.in >+++ b/plugins/node.d/apc_nis.in >@@ -44,6 +44,9 @@ if($ARGV[0] and $ARGV[0] eq "config") { > print "time_left.label time left (min)\n"; > print "time_left.type GAUGE\n"; > print "time_left.max 200\n"; >+ print "temperature.label internal temperature (celsius)\n"; >+ print "temperature.type GAUGE\n"; >+ print "temperature.max 100\n"; > exit 0; > } > >@@ -81,6 +84,9 @@ do { > } elsif($line =~ /\WTIMELEFT /) { > $line =~ s/.* (\d+.\d+).*/$1/; > print "time_left.value $line\n"; >+ } elsif($line =~ /\WITEMP /) { >+ $line =~ s/.* (\d+.\d+).*/$1/; >+ print "temperature.value $line\n"; > } > } while(!($line =~ /END APC/)); > >-- >1.7.5.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 370131
: 275915 |
275917