SMTP problem and IMAP test

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
clerevan
Posts: 54
Joined: Fri Dec 13, 2013 11:41 am
Location: Ontario, Canada

SMTP problem and IMAP test

Post by clerevan »

Hi hostmonitor,

I have some problem with my hostmonitor.
1. I setup mailer setting of my hostmonitor with my smtp server, but last week that smtp server has some problem and somehow stop to send the message. This week monday my company already fix the problem with smtp server but somehow hostmonitor still didn't send the message from that smtp server. My question is : is there any threshold before hostmonitor start to stop sending email from a failing smtp server? Or how to make hostmonitor send the mail from that smtp server after that smtp server is fixed?
2. I want to monitor that SMTP server itself using IMAP test, by checking the inbox in one of our account we can understand whether the smtp server is working or not because that smtp server supposed to send email at least 1 every hour. In IMAP testing configuration there is "RECENT" for the email which is tested by Hostmonitor, my question is: How long "RECENT" is?

Thank you very much

Regards,

Chris
clerevan
Posts: 54
Joined: Fri Dec 13, 2013 11:41 am
Location: Ontario, Canada

Post by clerevan »

for the 2nd question i've already got the answer :D, thank you.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

>my company already fix the problem with smtp server but somehow hostmonitor still didn't send the message from that smtp server

Do you mean
a) HostMonitor does not send e-mail at all?
b) HostMonitor sends e-mail using backup SMTP server?
Did you setup primary and backup servers or just one server?

>In IMAP testing configuration there is "RECENT" for the email which is tested by Hostmonitor, my question is: How long "RECENT" is?

Quote from the manual:
Recent option tells HostMonitor to check for messages that were received since last test probe (last check by HostMonitor).

Regards
Alex
clerevan
Posts: 54
Joined: Fri Dec 13, 2013 11:41 am
Location: Ontario, Canada

Post by clerevan »

So:
A. for testing we have action send email, we check the log for that day until we found the problem, hostmonitor should send some email to us but they didn't even though our smtp server already fixed.

SMTP server down : 3 April 2014
Hostmonitor stop sending message: 3 aprill 2014

SMTP server is fixed: 7 April 2014
Hostmonitor still not send email until we recognized it from the log that it should send some email but it's not

B. yes we only use one smtp server right now, no backup server.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Then please check the following article
http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=4804

Have you checked alerts status, action settings, errors in Quick Log and system log file?

Regards
Alex
clerevan
Posts: 54
Joined: Fri Dec 13, 2013 11:41 am
Location: Ontario, Canada

Post by clerevan »

So Alex I already check the the system log and found some error within it, for several days, it keep the same error:

1. SMTP client error: Error reading ResultsMemo.Lines.Strings: System Error. Code: 8. Not enough storage is available to process this command

2. SMTP client error: Error reading ResultsMemo.Lines.Strings: System Error. Code: 1400. Invalid window handle


The first error happened i think everytime hostmonitor tried to send email. For the second error it happened but not as much as the first one.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Looks like your Windows is out of resources.
Use Task Manager to check which application uses the most of memory, handles, GDI objects

Regards
Alex
clerevan
Posts: 54
Joined: Fri Dec 13, 2013 11:41 am
Location: Ontario, Canada

Post by clerevan »

Hem... the problem right after we change the SMTP server in mailer setting using public smtp server, suddenly we got no error message anymore, and the email is working like there is nothing wrong before. My question is, is there any possibity the SMTP client doesn't send email and somehow eat some memory because of some processing thread from hostmonitor? (since they can not connect to the smtp server and then tried to connect again and again.)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

the problem right after we change the SMTP server in mailer setting using public smtp server, suddenly we got no error message anymore
Have you restarted HostMonitor or Windows?
My question is, is there any possibity the SMTP client doesn't send email and somehow eat some memory because of some processing thread from hostmonitor
HostMonitor should not "eat" memory unless some 3rd party software replaced system modules and changed system behavior (e.g. old versions of Symantec antivirus often lead to problems because of bug in module that checks SMTP traffic).

Anyway, I cannot answer for sure because you have not checked resource usage.
Could you please check what process uses the most resources?
What numbers do you see for hostmon.exe process (Handles, GDI objects, threads)?

HostMonitor version?
Windows?
Service Pack?
Antivirus monitor?
Do you use ODBC logging or ODBC test method? If yes, what ODBC driver do you use?

Regards
Alex
clerevan
Posts: 54
Joined: Fri Dec 13, 2013 11:41 am
Location: Ontario, Canada

Post by clerevan »

Yes, i restart the hostmonitor service at that time and then it worked perfectly.

For the CPU:
highest process: svchost.exe with total 23% of CPU
Total CPU process 55%-60% & idle process still 40%-45%
Memory:
Highest memory process:
SQL server Windows NT: 128Mb
Free memory process:
12.8 GB
consumed: 1.2 GB

This is Physical server.

-Hostmonitor v. 9.82
-Windows server 2012
-No service pack
-no anti virus
-Yes i have ODBC test method but i disabled it when the error occured. MS-SQL ODBC driver.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What numbers do you see for hostmon.exe process (Handles, GDI objects, threads)? Actually these numbers do not have much sense now, it should be checked before HostMonitor restart.

If this problem happens again, please check resource usage before restarting HostMonitor.

>Windows server 2012

Officially we do not support this OS, there are some bugs related to NT Events Log API, ICMP...

Regards
Alex
clerevan
Posts: 54
Joined: Fri Dec 13, 2013 11:41 am
Location: Ontario, Canada

Post by clerevan »

Oh ok, we also read several error with this version of windows in your forum.

Ok i will just report some other bug (maybe), actually it also happened with Drive Free Space Method which it will give unknown result for the same reason:
"Error: Not enough storage is available to process this command"

I hope host monitor can fix this problem someday.

Well, i guess i will relocate to the new server which run in windows server 2008 then.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok i will just report some other bug (maybe), actually it also happened with Drive Free Space Method which it will give unknown result for the same reason:
"Error: Not enough storage is available to process this command"
Could you please check resource usage when this error appears?
I hope host monitor can fix this problem someday.
How can we fix Windows?
We are waiting when Microsoft will provide fix...

Regards
Alex
Post Reply