Graphing SPAM and Viruses using Cacti

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Jetnet

Graphing SPAM and Viruses using Cacti

Post by Jetnet »

Seeing as how our entire network of servers and domain controllers as well as switches, routeres and firewalls (oh my), are being graphed using cacti, I thought I would create a graph for all of the massive amounts of SPAM, viruses and whatnot going through our mail servers. So I created a script to total all of that information, and then get it into the rrds just fine, but what I would like to do is total those messages up in, lets say, a 24 hour time frame on the daily graph, 1 week total for the weekly graph, and so on. That way I can see what the total number of viruses, SPAMs, and rejections I get in those time blocks.

Would this be possible, and if so, how? Do I need to create some external script to total all of this up, or is there some part of cacti that can create it?
Attachments
This is a graph of what it looks like now.
This is a graph of what it looks like now.
spamgraph.gif (38.47 KiB) Viewed 8786 times
sporkfu
Posts: 2
Joined: Tue Feb 15, 2005 1:25 pm
Contact:

Post by sporkfu »

I dont know exactely how to do it but I remembered where Im tracking my bandwidth I remember seeing a total bandwidth. Look at your Graph Template for Interface - Traffic (bytes/sec, Total Bandwidth). It calculates the total by doing COMMENT: Total Out: |sum:auto:current:2:auto|. I also found this page http://www.cacti.net/downloads/docs/html/variables.html which should get you going in the right direction.

Sorry I couldnt be more help but Im still pretty new to cacti.
henrik
Posts: 5
Joined: Thu Feb 24, 2005 5:03 am

Post by henrik »

Hello JetNet,

that looks great ! Could you please post your graph template and the script you use the examine the maillog ?

Thanks !!!

Henrik
anTIDot
Posts: 7
Joined: Wed Mar 16, 2005 4:16 am
Contact:

Post by anTIDot »

выкладывай скрипты
плиз!
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

Post by solefald »

anTIDot wrote:выкладывай скрипты
плиз!
I dont know how many people on this forum speak russian...
пиши по английски, плиз!
anTIDot
Posts: 7
Joined: Wed Mar 16, 2005 4:16 am
Contact:

Post by anTIDot »

Lay out templates and scripts
please!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests