Sorry for the long wait, I was on holidays for a while.
mike_tcs wrote:I do still think that adding the MS queue size to the script would be a worthwhile addition. You could also add a counter for the number of SpamAssassin cache hits as well.
I'll add those counters shortly and post a script update. They should be easy enough to add, I just need to figure out what keywords to tag off of.
raiten wrote:one note, i can import correctly templates from Wed Sep 06, 2006 12:24 pm . but in graph management, i have nothing linked to the graph and when i try to change it. it is not saved
If you select your Data Sources from the Cacti console, and then select your mail server to just view it's data sources, are all the watchmaillog data sources showing up? When you add the graph, are the watchmaillog data sources selectable? It's odd that it would let you choose the data sources but not save the settings.
raiten wrote:somebody with what is need in the db to manually insert it ?
Telling what stuff to put in the database is probably not going to work because I think the database uses data source id numbers which are automatically generated each time you create a data source. So my numbers will be different than your numbers.
r_chetanjain wrote:Hi.... gr8 template....but i am having some issues getting the counters...we are using mimedefrag and some other milters for spam and virus detection with our sendmail.....
<cut out for space>
Can you help in this regard
Glad you like the template.
I'm not entirely sure why your searches are failing and the counters aren't increasing. If you could send a snipet of the code you're using I might be able to see what's going on. I was thinking, for your RBLSMTPD stuff, try tagging off the reject code you're sending, assuming they're unique. I'd try searching for "reject\=553". So a code issertion might look like,
Code: Select all
# Look for Sendmail milter SPAM messages
if($line=~/reject\=553/){
$item="milter_spam";
&readcounterfile;
$counter{$item}++;
if($debug){print("Milter found a spam message, incrementing the milter_spam counter to $counter{$item}.\n");}
&writecounterfile;
}
I'd do something similar for your antivirus milter, look for "reject\=554". As far as your mimedefang goes, I would have done just as you did. Tag off "TMGspam". I'm not sure why it wouldn't be working though. If you wanna share a bit of the code I might be able to help.
ethan wrote:Hi,
I have problem when importing template. the error message is
Error: XML: Generated with a newer version of Cacti.
but I've already used cacti v0.8.6h
which should be the lasted version and also matched this thread
did I miss something else?
Strange indeed. It is exported from 0.8.6h. You're absolutely positive, 100%, that you're running 0.8.6h? You can check what your database think's your Cacti version is by running this command,
Code: Select all
mysql -ucactiuser -pcactipass cactidb --execute="SELECT * FROM version;"
But replace
cactiuser with the MySQL database username, replace
cactipass with your MySQL database password, and replace
cactidb with the MySQL database name for your Cacti database. You should get something like this,
Code: Select all
+--------+
| cacti |
+--------+
| 0.8.6h |
+--------+