UndeliveredMessages count via API

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
martin.zeug
New user
New user
Posts: 11
Joined: 2008-01-28 12:09

UndeliveredMessages count via API

Post by martin.zeug » 2009-03-10 11:46

Hi everybody,
I started to build an data Source for cacti graphing for hamilserver.
My last probem ist, that I wanna know how much mails are in queue. But how to count single messages in UndeliveredMessages ?

Greetings,

Martin

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

Re: UndeliveredMessages count via API

Post by ^DooM^ » 2009-03-10 12:57

Any .eml files in the hmailserver/data directory (not sub folders) are emails currently in the queue.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

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

Re: UndeliveredMessages count via API

Post by martin » 2009-03-10 19:04

> But how to count single messages in UndeliveredMessage

Split the string returned by the UndeliveredMessages property on newline and count the number of items in the list. Should work in any language.

martin.zeug
New user
New user
Posts: 11
Joined: 2008-01-28 12:09

Re: UndeliveredMessages count via API

Post by martin.zeug » 2009-03-11 16:40

Thanks.
Sometimes answers are direct in front of you, and you don't see :-).

Now my Cacti Datasource works perfect for Graphing Mails (processed, Spam, virus, undelivered)

If anybody is interested in monitoring hmailserver with cacti, feel free, to contact me. Or post here


Thanks,

Martin

laurpnp
New user
New user
Posts: 2
Joined: 2010-08-11 17:18

Re: UndeliveredMessages count via API

Post by laurpnp » 2010-08-11 17:21

martin.zeug wrote:Thanks.
Sometimes answers are direct in front of you, and you don't see :-).

Now my Cacti Datasource works perfect for Graphing Mails (processed, Spam, virus, undelivered)

If anybody is interested in monitoring hmailserver with cacti, feel free, to contact me. Or post here


Thanks,

Martin
Hello Martin,

I'm interested to monitor hmailserver activity with cacti.
Can you help me please ?

Thank you in advance.

Laur

laurpnp
New user
New user
Posts: 2
Joined: 2010-08-11 17:18

Re: UndeliveredMessages count via API

Post by laurpnp » 2010-08-13 17:36

Hello Martin,

I'm new to the forum so I can't send you PM's yet.

My email address is laurm at ew.ro
We have a standard Cacti 0.8.7e on CentOS Linux 5.4 and MySQL 5.0.77.

Thank you in advance,

Laur

Post Reply