[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bigsister-general] Using the logfile monitor


Ahhh....

cfg=/usr/.... instead of cnf....

And it all works now, Yipeee!!!

That still leaves open the question on setting....

BigSister:common:dl

I have noticed that there is something in BigSister.pm that reads in an opt_d (from memory)...
But how do I set it?


Thanks for all the help!

Andrew

On Aug 30, 2005, at 11:34 PM, Andrew Miehs wrote:


Thankfully in my case, I AM using a syslog logfile, and am just using the wrong test!

I still seem to be doing something wrong however....

/etc/bigsister/uxmon-asroot
DESCR   features=unix,linux      localhost

localhost   syslog
localhost   frequency=1 cnf=/usr/share/bigsister/etc/syslog-web syslog

/usr/share/bigsister/etc/syslog-web

/var/log/mylog.log:

(.*)INFO   green   0   Good $1   testname
(.*)ERROR   red   20   Error $1   testname



----

I have included the $1 so that I can see that it really is measuring the correct server...

an example of my logfiles are

Aug 30 06:25:27 web11 local1:421762744 2005-08-30 06:25:27,951 INFO xx.xxxxxxxx.xxxxxx.xxxxx.business.xxxxMonitor - Total xxxxx: 235512, last 1239 ms ago, timeout is 3600000 Aug 30 06:25:29 web16 local1:31486114 2005-08-30 06:25:29,780 ERROR xx.xxxxxxt.xxxxx.xxxx.business.xxxxMonitor - Total xxxxx: 13223, last 204605 ms ago, timeout is 3600000 Aug 30 06:25:29 web17 local1:31486114 2005-08-30 06:25:29,780 INFO xx.xxxxxxt.xxxxx.xxxx.business.xxxxMonitor - Total xxxxx: 13223, last 204605 ms ago, timeout is 3600000

Thanks for any comments,

Andrew

PS: I have seen all through the code common:dl >4, etc (debug level) - where is the best place to set this?




In Andrew's case, though, the correct solution is probably to configure the base logfile monitor to understand which column in the webserver logfile is the hostname. Probably this means creating a "weblog" subclass to logfile, like the syslog and eventlog subclasses that already exist. Assuming he can't persuade his webserver to write a logfile in syslog format.



Yes, you are right. I did not pay attention that he was not talking
about syslog, but about the generic "logfile" monitor - which of course
does not know which part of a log line corresponds with a host name.

Best regards,
Tom





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/ bsce5sf
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.