cyrusTvirus
08-17-2002, 01:00 PM
Hi all,
I'm running mrtg on the famous blue box and wonder how I can create a script which tells mrtg to monitor sendmail (smtp/pop3/files in que)
I found the prog mailstats but that doesnt want to run for me.
Can some cobalt/mrtg guru shed some light on this. I suspect cobalt having the standard elited to the difference and that is causing the problem.
Any tips and tricks would be very welcome...
Rob
CoastHost
08-17-2002, 07:21 PM
Hi Rob,
Take a look at Stat.pl Version 1.2
visit : http://www.bursztein.net/prog/stat/index.html
this script will output active pop3/smtp/imap sessions (plus much more) for use in MRTG
I have it setup on a RaQ4i and it works well.
Cheers,
Albert
cyrusTvirus
08-18-2002, 11:15 AM
Thanks !!!!!!!!!!!!!!!!!! :D
cyrusTvirus
08-19-2002, 04:22 AM
:( Thanks again. However mail (smtp/pop3) you are refering to doesn't seem to work for me here. Still there goes a LOT of mail through the server no stats.....
Any hints ???
CoastHost
08-19-2002, 09:29 AM
the pop3 and smtp graphs don't necessarily show every instance.
it has to be an established connection when the script is run, so it can miss it.
from shell type: netstat -tn
you will see that connections aren't always in the established state, and that is what the stat.pl script looks for.
Maybe your problem is something else though, does the script work for the other graphs - ftp/ssh/http etc?
cyrusTvirus
08-19-2002, 09:33 AM
Only httpd works. But ftp/ssh don't even work when there is an established connection....
Strange..
CoastHost
08-20-2002, 01:52 AM
Hi Rob,
Sounds strange.
A couple of questions/points:-
do you have ssh/ftp etc running on the standard ports?
is the stat.pl script set for Linux and not BSD?
Are you running standard cobalt sendmail?
cheers,
Albert
cyrusTvirus
08-20-2002, 10:13 AM
Originally posted by CoastHost
Hi Rob,
Sounds strange.
A couple of questions/points:-
do you have ssh/ftp etc running on the standard ports?
is the stat.pl script set for Linux and not BSD?
Are you running standard cobalt sendmail?
cheers,
Albert
Standard sendmail
ssh/ftp running on standard ports.
only i think i have forgotten to set it for linux.... might be the case let me check.....
Thanks in advance albert.