SF.net SVN: logwatch:[177] scripts/services/zz-lm_sensors
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 177
http://sourceforge.net/p/logwatch/code/177
Author: opoplawski
Date: 2014-01-02 18:21:50 +0000 (Thu, 02 Jan 2014)
Log Message:
-----------
[zz-lm_sensors] Drop hddtemp; move sensors exec after kvm check
Modified Paths:
--------------
scripts/services/zz-lm_sensors
Modified: scripts/services/zz-lm_sensors
===================================================================
--- scripts/services/zz-lm_sensors 2013-12-30 19:08:51 UTC (rev 176)
+++ scripts/services/zz-lm_sensors 2014-01-02 18:21:50 UTC (rev 177)
@@ -27,21 +27,15 @@
#Output sensors stats
my $pathto_sensors = $ENV{'pathto_sensors'} || '/usr/bin/sensors';
-my $query_hddtemp = $ENV{'query_hddtemp'} || '/usr/bin/nc 127.0.0.1 7634';
my $get_kvm_status = $ENV{'get_kvm_status'} || 'cat /proc/cpuinfo | grep -c "QEMU Virtual CPU"';
-my $sensors = qx($pathto_sensors);
-my $hdd = qx($query_hddtemp);
my $kvm = qx($get_kvm_status);
-if ($kvm == 0) {
+if ($kvm == 0 and (($ENV{PRINTING} eq 'y') or $Detail)) {
+ my $sensors = qx($pathto_sensors);
if ($sensors) {
print $sensors;
}
- if ($hdd) {
- print $hdd;
- print "\n";
- }
}
# vi: shiftwidth=3 tabstop=3 syntax=perl et
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk