Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
i made this script work for my configuration of Postfix/ClamAv/Amavisd-New/SpamAssasin this morning (i am using a Sarge Debian fully upgraded). I had to modify both amavisd logformat and fetch_mail_statistics.pl scripts. Here are my modifications :
To use this modification, you must add at the beginning of the script a SPAMLVL variable with your local value. You can find this value in /etc/amavisd/amavisd.conf if you look for
Can someone help here, I have read all 6 pages of this thread and found a couple other people with the same problem as I do and they have yet to get an answer. I hae a random dtat graph. as attached at the bottom. Since i am not using Spam filter on the postfix server and its handled internally. But I do use my access.db file to block out all interrnational IP addresses. I am not much of an XML guy, and when I made the changes I try to re add that xml file so it would update the template, and bam got an XML parse error. I also have helo and header restrictions on. As for the helo u must use your FQDN etc.. I wanted to replace the spam field with the addition all mail my config filters. Here is my XML. What i want is to monitor how much mail is incoming from the external, not just whats coming in from my internal exchange server and external, and be able to graph all my blocks to international IP's, bad helo responses, etc....
After i loaded this XML i had a Mail Rcvd graph. I went in and pulled the OID out of the graph temp and ran a walk against that OID and i was returning the following..
Trying to bump this up for some help.. I still have these gaps in my graph.. Is this due to the poller running every 5 mins? Here is another example. Our company is a pretty big one. And we are one of the bigger online retailers. So we have a lot of mail that is flowing in and out or our shop. In my postfix config I am blocking a ton of international IP ranges. and Im using RBL lists as well. I have a ton of hits in my log file like this
postfix/smtpd[10338]: NOQUEUE: reject: RCPT from unknown[78.172.90.86]: 504 5.5.2 <78.172.90.86>: Helo command rejected: need fully-qualified hostname;
so I know i should have more stats than this in my graph. Can anyone point me in the right directions. whether I have to adjust the graph sizes, or something on the host side. etc..
thanks...
Attachments
mail_transporting_graph.JPG (40.05 KiB) Viewed 7481 times
1. Turning on debugging in Caciti / Console / Settings / Poller Logging Level from "LOW - Statistics and Errors" to the next level "MEDIUM..." is very useful.
2. Check under which user your SNMPD is running. On Ubuntu check /etc/default/snmpd to see which user it's running under
3. Be sure to restart snmpd after making changes
4. For all those troubleshooting just using 'snmpwalk', snmpwalk returns empty if you haven't run the script first. So while you're testing run the script first and then snmpwalk.
5. If you're running default polling at 5 minutes I agree with the one author that "$MINRESET = 298;" should be changed from the script writer's default of 50.
6. If you get "WARNING: Result from SNMP not valid. Partial Result: No Such Instance cur" it could be that the script is not running properly. The script might not run properly due to permissions. Permissions might be off due to context of SNMPD user or script / file permissions. Run the script on the console and see if on the next poll that messages disappears. If so examine permissions.
Thanks to everybody for their work, i finally got the script to run under Debian "squeeze".
The trick i used was adding the 'snmp' user, as which snmpd runs, to the 'adm' group - this allowed the script to read the mail log.
Useful stuff. I need both for the practical results. I’ve seperated certain log functions using the "localX" logging facility to better control the log data obtained on a loaded production server.
Guys any idea ?
snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.255
/usr/local/bin/snmpwalk: line 1: 3310246: command not found
/usr/local/bin/snmpwalk: line 2: 0: command not found
/usr/local/bin/snmpwalk: line 3: 463: command not found
/usr/local/bin/snmpwalk: line 4: 91: command not found
/usr/local/bin/snmpwalk: line 5: 437: command not found
/usr/local/bin/snmpwalk: line 6: 2667: command not found
/usr/local/bin/snmpwalk: line 7: 0: command not found
/usr/local/bin/snmpwalk: line 8: 0: command not found
/usr/local/bin/snmpwalk: line 9: 0: command not found
/usr/local/bin/snmpwalk: line 10: 0: command not found
/usr/local/bin/snmpwalk: line 11: 0: command not found
/usr/local/bin/snmpwalk: line 12: 0: command not found