Monitoring mails : what kind of data sources ?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Kilian
Posts: 2
Joined: Sat Aug 03, 2002 3:40 pm

Monitoring mails : what kind of data sources ?

Post by Kilian »

Hi !

I'd like to monitor my mail server statistics (Postfix). I written a little script that parse /var/log/mail.log, and that returns number of sent|received|bounced|... mails. I've chosen a COUNTER type data source to store data, as done in default configuration of Cacti for Apache Web Hits.

My problem is the following : when logrotate changes the log (each week), the log resets, so the difference computed by RRDTool is huge, and I get an ugly peak on my graph. How can I avoid this behaviour ?

TIA,

Kilian
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I usually find that the easiest way to avoid counter overflows is to set some reasonable maximum on the data source. This way when an overflow happens it will not appear on the graph.

If you change the maximum for a data source, it is recommended that you delete that .rrd file and let cacti re-create it.

-Ian
Post Reply

Who is online

Users browsing this forum: danbellskycom and 1 guest