$OpenBSD: patch-pgcluu_collectd,v 1.2 2016/01/06 09:48:28 jasper Exp $

- Set $sysinfo{"RELEASE"}, $sysinfo{"CPU"} (minus cache)

--- pgcluu_collectd.orig	Sat Jul 25 12:33:53 2015
+++ pgcluu_collectd	Tue Jan  5 20:19:31 2016
@@ -1296,9 +1296,9 @@ sub grab_os_information
 {
 
 	# Look at CPU informations
-	my $cmd = 'cat /proc/cpuinfo 2>/dev/null';
+	my $cmd = 'sysctl hw.ncpu hw.model hw.cpuspeed 2>/dev/null';
 	$cmd = $sshcmd . ' "' . $cmd . "\"" if ($sshcmd);
-	my @cpuinfo = `$cmd | grep -E "model name|cpu MHz|cache size|cpu cores|processor"`;
+	my @cpuinfo = `$cmd`;
 	# Look at kernel informations
 	$cmd = 'uname -a  2>/dev/null';
 	$cmd = $sshcmd . ' "' . $cmd . "\"" if ($sshcmd);
@@ -1324,8 +1324,7 @@ sub grab_os_information
 	$cmd = $sshcmd . ' "' . $cmd . "\"" if ($sshcmd);
 	my @pciinfo = `$cmd`;
 	# Release informations
-	$cmd = 'cat /etc/*release 2>/dev/null';
-	$cmd = $sshcmd . ' "' . $cmd . "\"" if ($sshcmd);
+	$cmd = 'uname -srv 2>/dev/null';
 	my @releaseinfo = `$cmd`;
 	# Process list
 	$cmd = 'ps -faux 2>/dev/null';
