Qmail Statistics through SNMP

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

Moderators: Developers, Moderators

Post Reply
mukmin
Posts: 6
Joined: Thu Apr 22, 2004 1:06 pm

Qmail Statistics through SNMP

Post by mukmin »

new comer, first post.

I made some data templates and graph templates to collect data from Qmail using SNMP. It's really useful if your cacti and mail server are not in the same box like my problem.
It's still "raw" but works for me.

Basically it's just make your own MIB because Qmail does not (yet ?) support SNMP natively. And feed those MIB from some parsing log scripts (I'm using qmailmrtg7 from inter7).

To make it easier, I've made an xml file for everything you need (only tested on cacti-0.8.5). Before importing this xml, you really have to read the readme file.

BTW, I named it QmailStats (it's inspired by another xxxStats from Rolf Poser :)
Attachments
QmailStats-0.1.1.tar.gz
please read the readme file first.
(29.69 KiB) Downloaded 1487 times
guden

Post by guden »

Can you please post what you have changed in the binary ?

Or better post the patch vor the sources .. cause i have patched qmail7mrtg by myself and want to integrate your patch also..

Thx
arakdraja

QmailStat nya MANTAB

Post by arakdraja »

[Indonesian]
Min......tengkyu QmailStat-nya...
muanteb buanged...
sering2 bikin script ya....
hihihih

[english]
keep up the ggod work....
mukmin
Posts: 6
Joined: Thu Apr 22, 2004 1:06 pm

The Modification and some bugfixes

Post by mukmin »

here is the modification I made.
it's not much. I just changed the output format of the original scripts.

And the xml file included is some bugfixes of QmailStats.
Attachments
060504.tar.gz
modified source code and minor bugfixes
(13.06 KiB) Downloaded 952 times
Last edited by mukmin on Thu May 06, 2004 3:56 am, edited 1 time in total.
Guest

Post by Guest »

have you forgot to include it ?
julien_lf

Post by julien_lf »

i can't import your template, cacti just says nothing... and when copying it as text cacti says "xml parse error"

any help ?
cheers
mukmin
Posts: 6
Joined: Thu Apr 22, 2004 1:06 pm

What version ?

Post by mukmin »

what version of cacti you use?
You should use cacti-0.8.5a.

The template has only been tested on that version.
julien_lf

Post by julien_lf »

sorry, it didn't come from your script, but from the config_arrays bug in 0.8.5a

however, is it possible to have your script working with a "normal" qmail installation (not the one from lifewithqmail.com) ?
i tried to play with the log paths but without success, graphs are empty
thanks
julien_lf

Post by julien_lf »

okay after a bit of tweaking i finally got it working :)

thanks for this nice addon!

now i'd like to change some colors and correct a few mistakes you did in the comments, how can i do that?

cheers
mukmin
Posts: 6
Joined: Thu Apr 22, 2004 1:06 pm

Great !

Post by mukmin »

your tweaking is to "make it work for normal qmail instalation" ?
Great tweaking. :D

You meant colors and comment on the graph ?
You can change it through Graph Templates.

BTW, Recently I found XML that can not be imported to cacti. Where can I found about "config_arrays bug in 0.8.5a" you mentioned before ?
julien_lf

Post by julien_lf »

well it wasn't that hard, i basically just had to change some paths and remove some others (clamd and spamd, can't find the logs though they must be somewhere) in the snmpd.conf on the qmail box (freebsd 4.9).

i did not have a look a the graph templates, i'll check this later, thanks.

for the import bug, i found the solution in this thread:
http://www.raxnet.net/board/viewtopic.php?t=3671

i edited config_arrays as explained in some of the posts and it works fine now :)
Junior

qmail stats for cacti.. how-to :D

Post by Junior »

Hi...

I want a script for qmailstats... for use in cacti..

anyone use this?


Thanks
tenkawa69
Posts: 5
Joined: Wed Jun 29, 2005 5:25 am

Post by tenkawa69 »

hi,

i am looking for this script but i am using qmail and not life with qmail.

mukmin thx for these great scripts , but is it possible to use them with normal qmail?

thx for your help.
schani
Posts: 11
Joined: Thu Jun 01, 2006 12:19 pm

Post by schani »

What can i do ? I have a combined qmail logfile named mail.info with all in it.

Is it posible to read it via qmail7mrtg ?

Thanks for help

Christian
mamoman
Posts: 4
Joined: Wed Aug 27, 2008 8:27 am

Post by mamoman »

Hi,

I tried it, but am allready stuck with qmailmrtg as I want to run this on a machine which has more then one domain on it ?

How can I configure that ?
I don't want for every domain have stats, just the total i would like to have.

/Martin
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests