[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hobbit-clients.cfg include directive
- To: hobbit (at) hswn.dk
- Subject: hobbit-clients.cfg include directive
- From: "s_aiello (at) comcast.net" <s_aiello (at) comcast.net>
- Date: Thu, 28 Feb 2008 10:55:22 -0500
- User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
I was curious if the hobbit-clients.cfg honored include directives. The reason
I ask, is that our standard for defining LA thresholds is based on the
numbers of CPUs. I edited my client's hobbitclient-<os>.sh to add a new
section, [cpucount]. I figured I could write a server side script that could
process that data & set the correct threshold accordingly. I just don't want
to write a script that writes directly to the etc/hobbitclients.cfg file, and
prefer writing to an external file that I can then include.
So far only my linux & sun servers have the cpucount section, and these are
the commands I used:
Linux:
$GREP processor /proc/cpuinfo | $WC
SunOS:
/usr/sbin/psrinfo -p
~Steve