Hi Henrik
I have looked at the responses to my proposal, and based on that, and a little more thought overnight, I would like to modify my proposal.
What if we have a "script" on the server, which gets run on the client, and all definitions gathered from that "script" become available at the server?
The script could be pseudo code (or real code) defining what variables need to be set at server level, and how they are derived at the client level.
For example.
ARCH=uname -i
PROCTYPE=uname -p
It starts getting more interesting once you need to define number of
processors, because it depends on your OS how you derive that info.
On SunOS it would be psrinfo | wc -l
On RedHat, it would probably be dmidecode | grep "Central Processor" | wc -l
There may be another way - Red Hat admins can you help?
Probably need to use a case statement, like you use at the client.
This method will allow an administrator to define anything they want,
not just limited to hardware info.
HAS_A_GUI=grep -v"^#" /etc/inittab | grep X11
(I know, it's a silly example, but I only used it as an illustration of
what is possible)
I have no idea how this could be implemented in an elegant fashion, but I think that's why I am a Sysadmin/DBA, and not a developer :-)
Regards Vernon
-----Original Message----- From: Stewart, Tom L. [mailto:Tom.Stewart at landsend.com] Sent: Wednesday, 28 November 2007 11:36 PM To: hobbit at hswn.dk Subject: RE: [hobbit] New feature ?
If you can have a standard host name convention, then you could use a regex.
Tom
-----Original Message----- From: s_aiello at comcast.net [mailto:s_aiello at comcast.net] Sent: Wednesday, November 28, 2007 4:11 AM To: hobbit at hswn.dk Subject: Re: [hobbit] New feature ?
On Wednesday 28 November 2007, Buchan Milne wrote:
But, IMHO, the threshold should be dependant more on the number of CPUs, rather than on the architecture. For example, we have a higher threshold on our X4600s (8 physical, dual core) than our X4100s/X4200s
(2 physical, some dual-core).
How many CPUs does the Sun T2000 have/report ?
I believe the T2000s report 32 processors, in reality there is only 1. 1 x 8 cores x 4 concurrent threads capable.
But for all our devices we normally set our LA thresholds by the folowing formula:
Warn: #CPU x 1 Panic: #CPU x 1.5
My hobbit-clients.cfg would be alot smaller if in the default section, if I could use a formula definition for LOAD instead of a hardcoded section.
Instead of defining runqueue threshhold per host name, it would be nice
to have a ARCH option which could be overridden by the HOST
You could hardcode the client's CLASS option to it's arch, and be able to do what you propose.
~Steve
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.