This file is indexed.

/usr/lib/xymon/client/ext/temp is in hobbit-plugins 20131022.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/perl

use strict;
use warnings;
use Hobbit;

my $bb = new Hobbit('temp');
my $trends = Hobbit::trends;

my @zones = glob "/sys/class/thermal/*/temp";
exit 0 unless (@zones);

$bb->add_color ('green');

foreach my $zone (@zones) {
	open F, $zone;
	my $temp = <F>;
	close F;
	chomp $temp;
	$zone =~ m!.*/(.+)/!;
	my $name = $1;
	$bb->sprintf ("%s: %.1f degrees C\n", $name, $temp / 1000.0);

	$trends->print ("[$bb->{test},$name.rrd]\n");
	$trends->sprintf ("DS:temp:GAUGE:600:U:U %f\n", $temp / 1000.0);
}

$bb->send;
$trends->send;