Compute Service

Jeremy Kister argus-02 at jeremykister.com
Wed Feb 1 10:24:19 EST 2012


must expr have a %{ Top:object } to math ?

Or, there a reason that something like:

Service Compute {
	debug:	yes
	expr:	500 + 1
}

will make the compute service continuously fail with:
  Service start
  start compute
  service not ready: Top:Foo:Cluster1:SSG:licenses
  Service done


?



I realize the compute of a static expr may seem odd, but it is very 
convenient to get a variable into Argus as an object.

e.g.,
 > cat 122_more
  Group "More122" {
   Service Compute {
    expr: %{Top:Test123:foo} + %{Top:More122:bar}
   }
   Service Ping {
     uname: bar
   }
  }
 > cat 123_test
#!/usr/local/bin/perl

my %data = (one => 1,
             two => 2,
            );

cat <<__EOA__
  Group "Test123" {
   Service Compute {
    expr: $data{one} + $data{two}
    uname: foo
   }
  }
__EOA__





More information about the Arguslist mailing list