number of cpu on the client
list Gildas le Nadan
Hi, Would it be possible to have the hobbit client reporting the number and type of CPU (creating a new [cpu] section)? A "cat /proc/cpuinfo" on a linux machine will do the trick, but I don't know if this would be easy for the other OSes. Cheers, Gildas
list Trent Melcher
-----Original Message----- From: Gildas Le Nadan [mailto:user-231cb1cfd8a8@xymon.invalid] Sent: Thursday, January 25, 2007 3:29 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] number of cpu on the client Hi, Would it be possible to have the hobbit client reporting the number and type of CPU (creating a new [cpu] section)? A "cat /proc/cpuinfo" on a linux machine will do the trick, but I don't know if this would be easy for the other OSes. Cheers, Gildas
list Trent Melcher
You could use prtdiag for Solaris(SunOS) boxes. This could possibly be rolled into the hobbit code, to check what OS is running on the client, then based on the client run the appropriate tool and have it report this info in another section of the clientdata that is sent back to the hobbit server for it to parse through. Trent
▸
-----Original Message-----
From: Gildas Le Nadan [mailto:user-231cb1cfd8a8@xymon.invalid] Sent: Thursday, January 25, 2007 3:29 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] number of cpu on the client
Hi,
Would it be possible to have the hobbit client reporting the number and type of CPU (creating a new [cpu] section)?
A "cat /proc/cpuinfo" on a linux machine will do the trick, but I don't know if this would be easy for the other OSes.
Cheers,
Gildas
list Rdeal
You could use the bb-cpu2 script from deadcat... Sample output (formatting hosed from email) Note this is a dual core so the difference in System/physical cpus (also works for hyperthreading): Thu Jan 25 08:37:23 EST 2007 mpstat info (/usr/bin/mpstat ) Linux 2.6.16.27-0.6-smp (hornet) 01/25/2007 08:37:22 AM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s 08:37:22 AM all 12.06 0.00 1.23 0.63 0.06 0.29 0.00 85.73 1037.52 prtdiag info (from /proc/cpuinfo ) CPU CPU MHz CACHE (KB) Bogomips --- --------- ---------- -------- 0 3600.249 1024 KB 7206.22 Intel(R) Xeon(TM) CPU 3.60GHz 1 3600.249 1024 KB 7200.61 Intel(R) Xeon(TM) CPU 3.60GHz 2 3600.249 1024 KB 7200.34 Intel(R) Xeon(TM) CPU 3.60GHz 3 3600.249 1024 KB 7200.49 Intel(R) Xeon(TM) CPU 3.60GHz uname info (/bin/uname -X | /usr/bin/egrep Node|NumCPU ) Node = hornet System CPUs = 4 Physical CPUs = 2 Boot Command = root=/dev/disk/by-label/root apm=off acpi=off resume=/dev/sda2 splash=silent elevator=as acpi=ht showopts Kernel Version = Linux version 2.6.16.27-0.6-smp (geeko at buildhost) (gcc version 4.1.0 (SUSE Linux)) #1 SMP Wed Dec 13 09:34:50 UTC 2006 Version Release: LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64 " SUSE LINUX 10.1 (X86-64) VERSION = 10.1 - ID: bb-cpu2.sh, v 3.9 2005/09/05 -
▸
From: Trent Melcher <user-27f3a8675cca@xymon.invalid> Reply-To: <user-ae9b8668bcde@xymon.invalid> Date: Thu, 25 Jan 2007 07:37:41 -0600 To: <user-ae9b8668bcde@xymon.invalid> Subject: RE: [hobbit] number of cpu on the client -----Original Message----- From: Gildas Le Nadan [mailto:user-231cb1cfd8a8@xymon.invalid] Sent: Thursday, January 25, 2007 3:29 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] number of cpu on the client Hi, Would it be possible to have the hobbit client reporting the number and type of CPU (creating a new [cpu] section)? A "cat /proc/cpuinfo" on a linux machine will do the trick, but I don't know if this would be easy for the other OSes. Cheers, Gildas
list Stef Coene
▸
On Thursday 25 January 2007 14:41, Trent Melcher wrote:
You could use prtdiag for Solaris(SunOS) boxes. This could possibly be rolled into the hobbit code, to check what OS is running on the client, then based on the client run the appropriate tool and have it report this info in another section of the clientdata that is sent back to the hobbit server for it to parse through.
If you do this, you are using hobbit for inventory. And I don't think that you want this. Same for amount of memory. Same for amount of NIC's. This is _not_ monitoring, but inventory. I'm not saying that you can not use hobbit for this, I'm saying that this is something you don't want in the default hobbit client. What you _can_ do is put all the inventory information in 1 check. This check will never go not-red (same like the trends and info columns), but will be an inventory of the client. (I'm not talking about DLPAR on power5 where you can change hardware on the fly.....) Stef