Re: monitor thresholds without cricket collector
"Edmonds, Alan" <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <CA82669882D4A14EA98E013430F5A4E3060EB6@tmexbridge.hammersmith.t-motion.co.uk> |
Answers inline below. -----Original Message----- From: Ulf Fischer [mailto:[email protected]] Sent: 21 November 2006 10:53 To: Edmonds, Alan Cc: cricket-users-lists Subject: Re: [cricket-users] monitor thresholds without cricket collector Ah, ok, thanks for you fast answer. Edmonds, Alan wrote: > Yes, I do this now. You need to configure all of the targets with > > target --default-- > collect = false > > or else the collector will try to collect. :-) > ok, thats what i still have in my config files, ;o) so i have to run the cricket-collector for example by cron right? Alan: yes. you can also run collect-subtrees to divide your config into smaller chunks. If you are just processing monitors, it should be pretty quick.... > Also, set the global variable to enable monitor thresholds. what did you mean with global variable? i just read about: monitor-thresholds = "<monitor-threshold> [, <monitor-threshold> ...]" on http://cricket.sourceforge.net/support/doc/monitor-thresholds.html Alan: In the cricket-conf.pl, you can disable the 2nd pass collector run that processes thresholds via the skipMonitor variable. It's false by default I believe. > > BTW, how did you create the .rrd files initially? > i wrote a perl script by my own with some parts from: http://www.linux-magazine.com/issue/44/Perl_RDDtool.pdf http://www.linux-magazin.de/Artikel/ausgabe/2004/06/perl/perl.html (german) i used the RRDs.pm for that. if you are interested in the code i think i have to do some cleanup before ;o) Alan: Interesting. I introduced a new value for collect like this: collect = create Then I patched collector: if (! -f $datafile) { return unless newRRD($name, $target); } + if (defined($target->{'collect'}) && $target->{'collect'} eq "create") { + Debug("Skipping target $tname due to collect=create tag."); + return; + } It just creates the data file if it doesn't exist. Works for me. > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of Ulf > Fischer > Sent: 21 November 2006 09:55 > To: cricket-users-lists > Subject: [cricket-users] monitor thresholds without cricket collector > > > hi, > > is there a way to use the monitor thresholds without using the cricket collector? > i generate the rrd file by another polling engine and i use cricket just as front end, but I'm > interested to use the monitor threshold function. > > thanks for help, > > regards, > ulf > ------------------------------------------------------------------------- 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