There can be more than 1 load sensor, in fact it is a comma separated
list  - see the manpage:

http://gridscheduler.sourceforge.net/htmlman/htmlman5/sge_conf.html

Rayson



On Mon, Apr 23, 2012 at 10:20 PM, Earl Lazarus <[email protected]> wrote:
> The admin guide indicates there can be more than one load monitor on a
> host.  Is this accomplished with two instances of the load_monitor
> record....as in
>
> load_monitor    <path to first load monitor>
> load_monitor   <path to second load monitor>
>
>
> On Mon, Apr 23, 2012 at 7:23 PM, Reuti <[email protected]> wrote:
>>
>> You can script it:
>>
>> http://arc.liv.ac.uk/SGE/howto/scripting.html (at the end)
>>
>> or in another form:
>>
>> $ cat sge.conf.sh
>> #!/bin/sh
>> if [ $PARAMETER ]; then
>>     sleep 1
>>     sed -i -e "/^$PARAMETER /d;\$a$PARAMETER $VALUE" $1
>> else
>>     export EDITOR=$0
>>     export COMMAND=$1
>>     export PARAMETER=$2
>>     export VALUE=$3
>>     export HOST=$4
>>     qconf -$COMMAND $HOST
>> fi
>>
>>
>> You can call it with:
>>
>> $ sge.conf.sh mconf mailer /usr/sge/cluster/mailer.sh
>>
>> or for an exechost:
>>
>> $ sge.conf.sh mconf load_sensor /foo/bar/baz node010
>>
>> Just leave the node out for SGE main parameters.
>>
>> -- Reuti
>>
>>
>> Am 23.04.2012 um 23:39 schrieb Earl Lazarus:
>>
>> > qconf -mconf will throw me into an editor.   I want this to execute
>> > within a script w/o human intervention.  I was hoping there might be
>> > something like:
>> >
>> > qconf  -mattr  exechost  load_sensor  /home/elazarus/my_ld_sensor myhost
>> >
>> > earl
>> >
>> > On Mon, Apr 23, 2012 at 4:17 PM, Rayson Ho <[email protected]>
>> > wrote:
>> > You can add the load_sensor by running:
>> >
>> > % qconf -mconf <host>
>> >
>> >
>> > And after that, you will be able to list it:
>> >
>> > $ qconf -sconf computer
>> > #computer:
>> > mailer                       /bin/mail
>> > xterm                        /usr/bin/X11/xterm
>> > load_sensor                  /tmp/loadsensor
>> >
>> > Rayson
>> >
>> >
>> > On Mon, Apr 23, 2012 at 5:08 PM, Earl Lazarus <[email protected]>
>> > wrote:
>> > > I've been able to manipulate a custom load_sensor via the qmon gui,
>> > > but
>> > > cannot find a way to add or modify through qconf.
>> > > When I invoke following on a host that has a custom load_sensor
>> > > specified,
>> > > nothing in the output shows the load_sensor
>> > > specification.
>> > >
>> > > qconf -se <host>
>> > >
>> > >
>> > > _______________________________________________
>> > > users mailing list
>> > > [email protected]
>> > > https://gridengine.org/mailman/listinfo/users
>> > >
>> >
>> > _______________________________________________
>> > users mailing list
>> > [email protected]
>> > https://gridengine.org/mailman/listinfo/users
>>
>
>
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users
>

_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to