Your message dated Mon, 21 May 2007 15:32:06 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#412555: fixed in netmrg 0.18.2-15 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: netmrg Version: 0.18.2-14 Severity: normal Tags: patch Here is a script that makes it possible to monitor the CPU temperature or fan speed using the data gathered by the lm-sensors modules. In theory it would be enough to use something like 'cat /sys/class/hwmon/hwmon0/device/temp1_input' as the test script. Then simply apply the right scaling to the graph and that's it. But NetMRG prepends '/usr/lib/netmrg/' to the command which gives '/usr/lib/netmrg/cat' which obviously failsi (and is undocumented as far as I can tell). I assume this is done for security reasons. So I have written a short script to somewhat based on the linux26diskaccess.pl one that performs parameter checking and accesses this data. It can then be invoked with something like this: * Test Script: CPU Temp Command: lmsensors.pl temp1 Data Type: Standard Out / Gauge * Test Script: CPU Fan Caommand lmsensors.pl fan1 Data Type: Standard Out / Gauge Obviously the exact sensor corresponding to the CPU or case temperature depend on the systemi and would have to be determined beforehand. Also the above approach requires creating one test script per sensor to monitor which is a bit ugly. Maybe a better approach would be to use the per-monitor parameters field but I found no documentation about this and haven't experimented yet. Anyway, this can probably be useful to others so I am submitting this script here for inclusion. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17.8fg1 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages netmrg depends on: ii adduser 3.102 Add and remove users and groups ii apache2-mpm-prefork [httpd 2.2.3-3.2 Traditional model for Apache HTTPD ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy ii libc6 2.3.6.ds1-11 GNU C Library: Shared libraries ii libgcc1 1:4.1.1-21 GCC support library ii libmysqlclient15off 5.0.32-3 mysql database client library ii libsnmp9 5.2.3-7 NET SNMP (Simple Network Managemen ii libssl0.9.8 0.9.8c-4 SSL shared libraries ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3 ii libxml2 2.6.27.dfsg-1 GNOME XML library ii mysql-client-5.0 [mysql-cl 5.0.32-3 mysql database client binaries ii php4 6:4.4.4-8 server-side, HTML-embedded scripti ii php4-cli 6:4.4.4-8 command-line interpreter for the p ii php4-mysql 6:4.4.4-8 MySQL module for php4 ii rrdtool 1.2.15-0.3 Time-series data storage and displ ii wwwconfig-common 0.0.48 Debian web auto configuration ii zlib1g 1:1.2.3-13 compression library - runtime netmrg recommends no packages. -- debconf information excluded *** /usr/lib/netmrg/lmsensors.pl #!/usr/bin/perl use strict; ### argument processing my $sensor=$ARGV[0]; my $hwmon=$ARGV[1] || "hwmon0"; if (@ARGV < 1 or @ARGV > 2 or $sensor !~ /^\w+$/ or $hwmon !~ /^\w+$/) { print "U\n"; print "\n"; print "$0 <sensor> [monitor]\n"; print "\n"; print "Reports sensor gauges for use as a NetMRG test script.\n"; print "\n"; print "Options:\n"; print " sensor Is the sensor value to report\n"; print " monitor The hardware monitor the sensor is attached to, 'hwmon0' by default\n"; print "\n"; exit 1; } # read the data from the correct path my $path = "/sys/class/hwmon/$hwmon/device/${sensor}_input"; open(STAT, $path) || die ("U\nERROR: couldn't open $path\n\n"); my $value = <STAT>; close(STAT); print $value;
--- End Message ---
--- Begin Message ---Source: netmrg Source-Version: 0.18.2-15 We believe that the bug you reported is fixed in the latest version of netmrg, which is due to be installed in the Debian FTP archive: netmrg_0.18.2-15.diff.gz to pool/main/n/netmrg/netmrg_0.18.2-15.diff.gz netmrg_0.18.2-15.dsc to pool/main/n/netmrg/netmrg_0.18.2-15.dsc netmrg_0.18.2-15_powerpc.deb to pool/main/n/netmrg/netmrg_0.18.2-15_powerpc.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Uwe Steinmann <[EMAIL PROTECTED]> (supplier of updated netmrg package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Sun, 20 May 2007 19:08:40 +0200 Source: netmrg Binary: netmrg Architecture: source powerpc Version: 0.18.2-15 Distribution: unstable Urgency: low Maintainer: Uwe Steinmann <[EMAIL PROTECTED]> Changed-By: Uwe Steinmann <[EMAIL PROTECTED]> Description: netmrg - network monitoring tool Closes: 386109 412549 412555 Changes: netmrg (0.18.2-15) unstable; urgency=low . * netmrg_cron.sh doesn't stumple over a stale logfile anymore (Closes: #386109) * added script to get cpu temperature reported by lmsensors (Closes: #412555) many thanks to Francois Gouget for providing this script * improved script linux26diskaccess.pl can now also report the number of read/written blocks (Closes: #412549) many thanks to Francois Gouget for providing the improved script Files: 93f1e231ca8c0e71631e0fe18940d2f8 653 net optional netmrg_0.18.2-15.dsc 3a12697296205de2999613767470eedd 40459 net optional netmrg_0.18.2-15.diff.gz 9b50a8a9a8b9bff6976342eb1ce34151 439308 net optional netmrg_0.18.2-15_powerpc.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGUbJ+ih2Zvw18pwERAnk/AKChPKr61lw7UM2UAqx5FeFRjWnECQCeIeo+ JTtDqSZQOs0bSHnkY+YL1XU= =YOZU -----END PGP SIGNATURE-----
--- End Message ---

