Rich, I have a suggestion for your scripts that would make the grepping far less CPU intensive in my experience. With your current setup your grepping the entire file at each running. I use the logtail part of the logcheck package to keep tabs on appenging log files. logtail records an offset of where it last left off. At the next running it picks up there and continues on rather than parsing the entire file at every running. I use this to monitor a log file of POP and IMAP connections to count the number of each at 5 minute intervals. Works like a champ. Keeps I/O and CPU down considerably. Just remember to set the gauge option in your MRTG cfg.
Justin On Tue, 8 Oct 2002, Rich Puhek wrote: > > > Dallas Engelken wrote: > > > > if there is a more elegant way than this.. i'm happy to hear others solutions.... > > dallas > > > > > > I've got another way (not necessarily more elegant, though) at > http://users.2z.net/rpuhek/scripts_public/spamd/ > > My approach currently relies on grepping the syslog file, which may > eventually be a bit cumbersome... I've also got things set up to be > able to monitor spamd running on a seperate host. > > --Rich ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk