Register   |   Login   |   February 08, 2012    |   Knowledge Base  >  Knowledge Base Systems  >  Servers  >  monitor postfix with cacti
search:     

Phone: 480-722-1227
Toll Free: 888-722-1227

monitor postfix with cacti
Last Post 01 Feb 2008 09:04 PM by Chris Muench. 0 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Chris MuenchUser is Offline
New Member
New Member
Posts:57

--
01 Feb 2008 09:04 PM  

the following is how to monitor postfix on a linux or freebsd server.  It requires perl.
their is 2 files attached to this article.  One is the perl file.  the other is cacti graph template.
Items in bold have to to be typed form command line or ssh terminal.
You can put the fetch_mail_statistics.pl file anywhere you wish.  However wherever you put it you must make is executable.
chmod a+x fetch_mail_statistics.pl

Also you have to have net-snmp installed on whatever system you are trying to monitor.
After you have installed it and generated your snmpd.conf file then put the following in it.
pass .1.3.6.1.4.1.2021.255 /usr/local/bin/fetch_mail_statistics.pl /var/log/maillog /var/log/mailstats.db .1.3.6.1.4.1.2021.255

You have to change 2 things in here.  First change the path to your perl file to wherever you put it.  Next change the maillog location to wherever your maillog for postfix is defined as.

Then restart the snmp service.  Now you have to import the graph into cacti. Then go to data sources and add a new data source for your new device and add all the postfix ones.  Then add a graph and add to your graph all the data sources that you just created.


1214758171.zip

You are not authorized to post a reply.

Active Forums 4.2
Copyright 2006 - 2011 Vigilant Support   |  Privacy Statement  |  Terms Of Use