Re: introduction and: does 'exec' cache the results?

Ryan Steele <[email protected]>
Newsgroups gmane.network.cricket.user
Message-ID <[email protected]>
Einar Indridason wrote:
> Good morning folks.  I'm new here - I don't even know how much traffic is on
> this list, if any.
>
> I'm constructing a Cricket config to monitor our Nagios monitoring system,
> and I'm basically running nagiostat -m
> -dLOTS,OF,Arguments,here,to,pull,info,from,nagios.  To do that, I have
> several lines like this:
>     ds-source = "exec:XX:%nagarg%"
>
> where XX is a running number.
>
> Now, the question I have is this:
>    Does cricket run the %nagarg% command once, and caches it?  Or is the
> %nagarg% run approximately 60 times?
>   

XX is actually the line number of the response.  If each XX is getting 
its information from the same resource (e.g., a perl script returning 60 
values), Cricket will pool the responses.  Basically, it runs once.  If 
you invoke the poller with -logLevel debug, you'll see that it execs 
%ngarg% only once.

Best,
Ryan

> Cheers, and thanks in advance,
> --
> EinarI
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> cricket-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cricket-users
>   


-- 
Ryan Steele                         
Systems Administrator               [email protected]
AgoraNet, Inc.                      (302) 224-2475
314 E. Main Street, Suite 1         (302) 224-2552 (fax)
Newark, DE 19711                    http://www.agora-net.com


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.