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
Monitoring mails : what kind of data sources ?
Moderators: Developers, Moderators
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
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
Who is online
Users browsing this forum: danbellskycom and 1 guest