SNMP Support

Use this forum if you want to suggest a new feature to hMailServer. Before posting, please search the forum to confirm that it has not already been suggested.
Post Reply

Do you need this feature?

Yes
67
86%
No
11
14%
 
Total votes: 78

DeanoX
Senior user
Senior user
Posts: 480
Joined: 2005-11-05 00:07
Location: Michigan

SNMP Support

Post by DeanoX » 2005-12-13 19:46

Simple Network Management Protocol - Definition

Provide hMailServer with SNMP monitoring in order to provide mail server statistics, and server monitoring.

The list of possible tests, collection of objects and the list of control values would be enabled with an hMailServer specific Management Information Base (MIB).

The MIB file also defines the structure of the queries and so called OIDs (object ID). The OIDs can be combined in many ways to fetch info about various aspects of hMailServer. examples: POP3, IMAP, SMTP, status up/down, and uptimes. Message counts, spam, virus, processed. And much, much more.

Monitoring. SNMP monitoring can be enabled by the use of almost any SNMP monitoring software. Both free, and commercial software is available. Also, such programs as MRTG can be utilized.

For a complete listing of Messaging Server SNMP monitoring information, refer to RFC 2788 and RFC 2789 These can provide standards development information.


Thank you.

-Dean
Last edited by DeanoX on 2009-11-14 07:11, edited 1 time in total.
hMailServer 5.4.2-1964, mysql, ClamAV, SpamAssassin, SquirrelMail, GeoIP.
hMailServer Support Services for US Based Clients.
Low Rates, Quick Service. Send a Private Message for More Information.

DJP
Normal user
Normal user
Posts: 55
Joined: 2006-06-28 16:26

Post by DJP » 2006-07-06 14:33

That would be great :)

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Post by ^DooM^ » 2006-07-06 15:26

Yeah I wouldn't mind this feature :)

tino
Normal user
Normal user
Posts: 46
Joined: 2006-07-29 23:22

Post by tino » 2006-08-02 22:47

Would be great for a version in the far, far, future. :-)

wharfratjoe
New user
New user
Posts: 3
Joined: 2007-11-16 01:25

Post by wharfratjoe » 2007-11-19 21:43

is there still a possiblilty of this being inplemented as a add-on? MRTG graphs are my friends :)

if anyone has created mibs for hmail already , please share them with us.

DeanoX
Senior user
Senior user
Posts: 480
Joined: 2005-11-05 00:07
Location: Michigan

Re:

Post by DeanoX » 2008-10-28 05:10

tino wrote:Would be great for a version in the far, far, future. :-)
The future is here! :)

*bump*


-Dean
hMailServer 5.4.2-1964, mysql, ClamAV, SpamAssassin, SquirrelMail, GeoIP.
hMailServer Support Services for US Based Clients.
Low Rates, Quick Service. Send a Private Message for More Information.

tino
Normal user
Normal user
Posts: 46
Joined: 2006-07-29 23:22

Re: SNMP Support

Post by tino » 2008-10-28 09:02

Awesome!

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: SNMP Support

Post by martin » 2008-10-28 17:47

tino, just so you don't misunderstand anything: The implementation of this feature has not started. It's not in the top of the feature voting list. :)

DeanoX
Senior user
Senior user
Posts: 480
Joined: 2005-11-05 00:07
Location: Michigan

Re: SNMP Support

Post by DeanoX » 2008-12-25 10:29

Hello,

Sorry about my previous post, I did not mean to imply that the feature was now available, it is not.

It's just been so long, that I wanted to bring some attention to the feature request.


Thanks,
-Dean

Merry Xmas... :)
hMailServer 5.4.2-1964, mysql, ClamAV, SpamAssassin, SquirrelMail, GeoIP.
hMailServer Support Services for US Based Clients.
Low Rates, Quick Service. Send a Private Message for More Information.

brashquido
Normal user
Normal user
Posts: 244
Joined: 2006-06-26 07:14
Location: Melbourne, Australia
Contact:

Re: SNMP Support

Post by brashquido » 2009-06-24 03:46

Would love to see SNMP support in hmailserver, and even willing to throw some funds in to help compensate for Martin's (assuming he'd even be willing of course). Again, assuming this feature request is even appearing on the radar of top requests, would it be worth discussing in more detail what people would like to be made available to monitor via SNMP?
Dominic Ryan
Microsoft IIS MVP
IIS Aid

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: SNMP Support

Post by ^DooM^ » 2009-06-24 11:51

Well it's second on the list http://www.hmailserver.com/?page=feature_voting so I think it would probably be a good idea for Martin to start a topic at some point about what people would like added.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

DeanoX
Senior user
Senior user
Posts: 480
Joined: 2005-11-05 00:07
Location: Michigan

Re: SNMP Support

Post by DeanoX » 2009-06-24 16:33

Starting a new topic for SNMP in the Development & alpha discussions forum, would be a great start.

-Dean

westdam
Senior user
Senior user
Posts: 728
Joined: 2006-08-01 21:24
Location: Padova, Italy
Contact:

Re: SNMP Support

Post by westdam » 2009-11-13 10:40

i'm on the other way.... ;)

i dont like the idea of SNMP support to a mailserver. Hmailserver right now has COM object , phpwebmin and hmailserver administrator to manage/interact. I dont see the needs of another method to control/view hmailserver.

also, 'couse if there's a new method to interact with hmailserver could be new method to "attack" hmailserver too,new bugs or similar.

my .2 cents,feel free to answer me :)

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: SNMP Support

Post by ^DooM^ » 2009-11-13 10:50

It's not there to control it is there to monitor with a package like MRTG. Please go lookup what SNMP is first eh :)
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

westdam
Senior user
Senior user
Posts: 728
Joined: 2006-08-01 21:24
Location: Padova, Italy
Contact:

Re: SNMP Support

Post by westdam » 2009-11-13 11:21

yes, I know what snmp is 8) (well not so much i admit ), just havent tought to MRTG!!!! :shock: hehe sorry.. anyway i believe you can also use to manage a little bit hmailserver, isn't it?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: SNMP Support

Post by ^DooM^ » 2009-11-13 11:42

Yes you can manage with SNMP but there is not much point adding the ability to do so with the COM API available already.

http://en.wikipedia.org/wiki/Simple_Net ... t_Protocol
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

westdam
Senior user
Senior user
Posts: 728
Joined: 2006-08-01 21:24
Location: Padova, Italy
Contact:

Re: SNMP Support

Post by westdam » 2009-11-13 11:51

perfect.i've understood to add snmp support to manage hmailserver ( and i dont need this. ). to attach , for example, to mrtg instead is a good choice.! :)

thansk doom.

DeanoX
Senior user
Senior user
Posts: 480
Joined: 2005-11-05 00:07
Location: Michigan

Re: SNMP Support

Post by DeanoX » 2009-11-14 07:05

The single biggest benefit to adding SNMP support, is simply to provide access to hMailServer, for the purpose of monitoring, and statistics gathering. Take a look at some programs like MRTG and PRTG, and you will see some very nice examples, of what kind of monitoring and statistics gathering could be accomplished.

Using SNMP to manage hMailServer would not be requireed, and like DOOM notes, the COM API already provides management capabilities. SNMP support with read only access, would be just fine and dandy. Strictly data gathering.

Also, I think that a good chunk of the existing feature requests would be obsoleted if SNMP support were added.

It's been 4 years since the initial feature request, but I am still hoping. :)

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: SNMP Support

Post by dzekas » 2009-11-14 10:28

DeanoX wrote:The single biggest benefit to adding SNMP support, is simply to provide access to hMailServer, for the purpose of monitoring, and statistics gathering. Take a look at some programs like MRTG and PRTG, and you will see some very nice examples, of what kind of monitoring and statistics gathering could be accomplished.

Using SNMP to manage hMailServer would not be requireed, and like DOOM notes, the COM API already provides management capabilities. SNMP support with read only access, would be just fine and dandy. Strictly data gathering.

Also, I think that a good chunk of the existing feature requests would be obsoleted if SNMP support were added.

It's been 4 years since the initial feature request, but I am still hoping. :)
If hMailServer and MRTG are on the same machine, you don't need SNMP to monitor hMailServer.

DeanoX
Senior user
Senior user
Posts: 480
Joined: 2005-11-05 00:07
Location: Michigan

Re: SNMP Support

Post by DeanoX » 2009-11-14 17:39

dzekas wrote:If hMailServer and MRTG are on the same machine, you don't need SNMP to monitor hMailServer.
Can you elaborate on this more please?

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: SNMP Support

Post by dzekas » 2009-11-14 17:57

DeanoX wrote:
dzekas wrote:If hMailServer and MRTG are on the same machine, you don't need SNMP to monitor hMailServer.
Can you elaborate on this more please?
On Linux MRTG can use output of a program. I think Windows MRTG should be able to do same thing.

For example: second network card stats

Code: Select all

tomas@xxxx:~$ /usr/bin/mrtg-ip-acct eth1
3834812649
4290001176
  5:42pm  up 30 days,  5:50,  1 user,  load average: 0.00, 0.00, 0.00
xxxx.example.org
MRTG has some sample programs in contrib/ directory. So if you want to monitor local hmailserver in MRTG, all you have to do is to find the way to fetch and display needed info. If that info is available through COM, you don't have to wait for code from hMailServer developers.

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: SNMP Support

Post by martin » 2010-06-27 22:23

Can you guys tell me you would need this functionality for?
What does it add over awstats and what's already available in the API?
And why would these new things be added as a SNMP service rather than being added to the API?

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: SNMP Support

Post by dzekas » 2010-06-27 22:31

martin wrote:What does it add over awstats and what's already available in the API?
And why would these new things be added as a SNMP service rather than being added to the API?
Remote monitoring. API allows only local one. With SMTP you can feed to mrtg data from several hMailServer installs.

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: SNMP Support

Post by Bill48105 » 2010-06-28 00:17

I could see it being useful for remote monitoring but there are so many other ways to do that now (monit & other service monitors) that IMO time is much better spend on what I consider more useful & important things such as ETRN, queue staggering/prioritizing, queue per service port (incoming connections on 25 can tie up queue so no other services can function.. Setting SMTP to non 0 helps but then users get errors trying to send because all connections are tied up.. FAR from ideal!), among others I can't think of right now.

IMO SNMP is a 'luxury' or 'bragging' feature vs many others are 'needs' or 'must haves' to make hmail more functional, reliable or work better..
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: SNMP Support

Post by ^DooM^ » 2010-06-28 10:42

Bill48105 wrote:IMO SNMP is a 'luxury' or 'bragging' feature vs many others are 'needs' or 'must haves' to make hmail more functional, reliable or work better..
I disagree with this, I work away from my machines (In a different country) and have stats setup at home to monitor my machines. Having SNMP support I can have live stats up and can see if there are any issues, compromised accounts where traffic has shot up and so on. SNMP is a useful tool and has nothing to do with bragging rights. :roll:
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: SNMP Support

Post by Bill48105 » 2010-06-28 15:24

DooM you quoted dzekas as saying that & it was me. :D

Sorry but stats ARE a luxury & for bragging.. I will give you knowing quickly an account is compromised could be handy but there are scripts up the wazoo to 'monitor' AND control such things so we're back to luxury IMO. Sounds like you have grand plans for SNMP in your head but SNMP is one of those 'cool' things few people would actually use so to me many many better things to spend time on that more would use..

We all got our opinions I suppose.
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: SNMP Support

Post by ^DooM^ » 2010-06-28 15:39

Hmm not sure why the forum did that, i just selected your line and hit quote.

Each to their own opinion, i guess you have a lot of people bragging about stats round your way, can't say I have ever had the pleasure.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: SNMP Support

Post by Bill48105 » 2010-06-28 16:10

I guess we just have different views and that's OK. :)

Btw LMAO, was that a lil bit of a dig regarding my..? :P

As I said, to me stats are just #'s and don't contribute (much) to the functionality of hmail. They are nice to have and know 'hey 100k emails went thru my server this month and hmm Bob sent 50k of them' but I'd hope fixing hmail shortcomings that can impede email delivery (like the threads & queue stuff I've mentioned before) would be considered more important to hmail than #'s.. (Yeah I know, catching Bob's compromised acct quickly to stop those 50k emails would help make hmail work better so I get that but generally stats are fluff)
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

DeanoX
Senior user
Senior user
Posts: 480
Joined: 2005-11-05 00:07
Location: Michigan

Re: SNMP Support

Post by DeanoX » 2010-06-30 04:58

I would prefer to use SNMP as a monitoring tool at first, and let stats come second.

OID's for simple things like, hmail version #, SMTP, POP3, IMAP, DOWN/0 or UP/1, RBL response times, etc.

Remote monitoring and alerts are a good thing when it comes to the mail server. I hate it when customers tell me there is a problem.

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: SNMP Support

Post by Bill48105 » 2010-06-30 06:37

I hear ya Dean.. I feel your pain! Tis why I have monit setup on my servers monitoring them all as well as monit setup on customers' servers monitoring them all AND they monitor each other so I always get a text/email on my phone within 2 minutes of a problem on any of them. Being that the servers are in different cities on different ISP's odds of them all being down is slim to none and I usually fix things (or monit fixes them for me) before customers are even aware anything was up. Have done it that way for years, no SNMP required. ;)

(Btw why not ask for syslog support in hmail instead? That can spit out all kinds of stats & events to be monitored remotely and likely a crapload easier to code than SNMP.. Give hmail an IP & it can broadcast the same log lines as going into log files and kiwi or other syslog app can do all kinds of things with the info from stats to alerts. For security reasons I log in via VPN & syslogs go to that IP when I'm looking for that info although SSH tunnel would work too.)

Or for those not inclined to run their own monitoring system there are plenty of monitoring services available that'll do a dandy job monitoring your servers. :)
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

Post Reply