1
Index: munin-1.2.6/node/node.d.linux/sensors_.in
2
===================================================================
3
--- munin-1.2.6.orig/node/node.d.linux/sensors_.in 2008-07-21 00:11:47.000000000 +0200
4
+++ munin-1.2.6/node/node.d.linux/sensors_.in 2008-07-21 00:13:41.000000000 +0200
7
if ( defined $ARGV[0] and $ARGV[0] eq 'autoconf' ) {
8
# Now see if "sensors" can run
9
- my $text = `$SENSORS`;
10
+ my $text = `$SENSORS 2>/dev/null`;
13
print "no (program $SENSORS not found)\n";
17
if (defined $ARGV[0] and $ARGV[0] eq 'suggest') {
18
- my $text = `$SENSORS`;
19
+ my $text = `$SENSORS 2>/dev/null`;
22
+ print "no (program $SENSORS not found)\n";
24
+ print "no (program $SENSORS died)\n";
29
foreach my $func (keys %config) {
30
print $func, "\n" if $text =~ $config{$func}->{regex};