|
ช่วงนี้ก็ลองทำพวก monitor server ดูครับก็ลองลง cacti , mailgraph ดู
สำหรับทริปในการลง mailgraph ก็ไม่ยากอะไรครับ ลงเอาไว้ดูปริมาณ traffic ที่เป็นเมลดี เมลติดspam เมลติดvirus ที่ส่งเข้ามาในระบบของเรา ลองดูได้ตามนี้ครับ
#cd /usr/ports/mail/mailgraph #make install clean
เพิ่มค่าเหล่านี้ใน /etc/rc.conf
mailgraph_enable=YES mailgraph_pidfile=/var/db/mailgraph/mailgraph.pid mailgraph_flags=logfile /var/log/maillog daemon-rrd=/var/db/mailgraph ignore-localhost daemon daemon-pid=${mailgraph_pidfile} mailgraph_user=root mailgraph_group=wheel
สั่งให้ mailgraph ทำงาน
#/usr/local/etc/rc.d/mailgraph start
เรียกดูไฟล์กราฟได้จาก ขึ้นอยู่กับว่า path DocumentRoot ของ apache วางไว้ตรงไหนด้วยน่ะครับ
/usr/local/www/cgi/bin/mailgraph.cgi
ข้อควรระวัง ในส่วนนี้ใช้ได้กับ postfix (MTA) น่ะครับ และไม่ควรลง syslog-ng ควรใช้กับ syslog ธรรมดาน่ะครับ |