From argus-02 at jeremykister.com Wed Feb 1 10:24:19 2012 From: argus-02 at jeremykister.com (Jeremy Kister) Date: Wed, 01 Feb 2012 10:24:19 -0500 Subject: Compute Service Message-ID: <4F295923.4060509@jeremykister.com> 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__ From jaw+arguslist at tcp4me.com Wed Feb 1 12:54:31 2012 From: jaw+arguslist at tcp4me.com (jeff weisberg) Date: Wed, 1 Feb 2012 12:54:31 -0500 Subject: Compute Service In-Reply-To: <4F295923.4060509@jeremykister.com> References: <4F295923.4060509@jeremykister.com> Message-ID: <98E43993-385E-4B06-AD2F-32F41C3F524B@tcp4me.com> On 1 Feb 2012, at 10:24, Jeremy Kister wrote: > must expr have a %{ Top:object } to math ? yes. 'compute' was intended to be used for computing something based on the results of other monitored services. > 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 see no way these messages could come from that config. they came from something with a '% {Top:Foo:Cluster1:SSG:licenses}' (and something else) in the expr. > 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. yes, that seems odd. you want argus to calculate 1 + 2? why? so argus can page you if Q changes the laws of mathematics? > > 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 > } > } your example is generating an argus config using perl. perl can add numbers together itself: my $x = 500 + 1; print "$x\n"; From argus-02 at jeremykister.com Wed Feb 1 14:34:49 2012 From: argus-02 at jeremykister.com (Jeremy Kister) Date: Wed, 01 Feb 2012 14:34:49 -0500 Subject: Compute Service In-Reply-To: <98E43993-385E-4B06-AD2F-32F41C3F524B@tcp4me.com> References: <4F295923.4060509@jeremykister.com> <98E43993-385E-4B06-AD2F-32F41C3F524B@tcp4me.com> Message-ID: <4F2993D9.2040105@jeremykister.com> On 2/1/2012 12:54 PM, jeff weisberg wrote: > you want argus to calculate 1 + 2? why? so argus can page you if Q > changes the laws of mathematics? .. In God we trust, everything else we monitor. > my $x = 500 + 1; > print "$x\n"; how would i use 'print "$x\n" in the 123_test file so that a Compute object in the 122_more file could use it ? see, my 123_test file has a pretty hash at the top where there's lots of data. i don't want to denormalize my data by having to put these values all over the place. so i was trying to use Compute so that I could expose the data in my 123_test file to all of Argus so that other objects could see it. -- Jeremy Kister http://jeremy.kister.net./ From martin at maxnet.ao Thu Feb 23 06:28:40 2012 From: martin at maxnet.ao (Martin Boese) Date: Thu, 23 Feb 2012 12:28:40 +0100 Subject: Graphing Fails Message-ID: <20120223122840.16d01ade@ita-martin> Hi, some month ago we switched on graphing. Now more and more graphs fail to graph. We get a pink image displaying the text: ARGUS CGI: GRAPH ERROR. cannot generate graph. picasso failed. see web server error log. I the stderr of the arguscgi.pl script I get data point out of order at /usr/local/lib/argus/picasso line 131 picasso failed. cannot generate graph image. This only seems to affect the 'Samples' Graph. We have on many (but not all) data sources. Running on FreeBSD 7.4 / amd64 / Perl v5.8.9 / lighttpd 1.4.28 / mod_cgi Any ideas how to fix this?! Thanks, Martin -- Internet Technologies Angola / MAXNET Tel: +244 (227) 286 000 / (924) 770 290 / (924) 770 291 Skype: internet-technologies-angola Mobile: +244 927 986444 Mail: martin at internet.ao Web: http://www.internet.ao/ From john at gaslightmedia.com Mon Feb 27 14:31:37 2012 From: john at gaslightmedia.com (John Hutchinson) Date: Mon, 27 Feb 2012 14:31:37 -0500 Subject: Schedule checking Message-ID: <4F4BDA19.1070001@gaslightmedia.com> is Schedule checking inherited? i have a group of units that have a high posability of going down at a certain time each day due to a cron that we have running on a router that causes things to be unavailable. I was hopping that i could just put this in that group and it would cover them all but not sure. John