Re: [CentOS] sadc output to a circular file of given size?

2009-09-17 Thread Julien Le Foll
You could use logger and configure logrotate accordingly. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] sadc output to a circular file of given size?

2009-09-16 Thread Alan McKay
Hey folks, We have Munin set up for longer term performance monitoring stuff, and it has been extremely useful to us for what it does. However, it is hard coded to poll systems at 5 minute intervals, which of course proves not to be so useful when you have to dig down into more detail on

Re: [CentOS] sadc output to a circular file of given size?

2009-09-16 Thread Alan McKay
You could create one, use dd to create an empty file that is the size you want, format it with mke2fs and mount it via loopback Would it automatically do the loop thing though? i.e. overwrite the oldest data in the file? -- “Don't eat anything you've ever seen advertised on TV” -

Re: [CentOS] sadc output to a circular file of given size?

2009-09-16 Thread nate
Alan McKay wrote: You could create one, use dd to create an empty file that is the size you want, format it with mke2fs and mount it via loopback Would it automatically do the loop thing though? i.e. overwrite the oldest data in the file? No but you could be sure you'd never fill your

Re: [CentOS] sadc output to a circular file of given size?

2009-09-16 Thread Alan McKay
If you want to automatically overwrite the oldest file come up with a naming/numbering scheme for the files and iterate through them and then repeat. Yes, that was my intended workaround from the beginning but I'm hoping someone will know of a way to do it without having to do this. We shall

Re: [CentOS] sadc output to a circular file of given size?

2009-09-16 Thread Geoff Galitz
There is a tool in BSDland called fifolog. It does exactly what you want, but is BSD only to my knowledge. Perhaps you can port it, I can't imagine it would be that hard. You do need to read the data using the fifolog tools, though. It does not store data in pure text. -geoff