$OpenBSD: patch-pgcluu_collectd,v 1.3 2016/05/02 09:28:27 jasper Exp $

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

--- pgcluu_collectd.orig	Wed Apr 27 15:43:05 2016
+++ pgcluu_collectd	Mon May  2 11:27:39 2016
@@ -1442,9 +1442,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);
@@ -1470,8 +1470,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';
