HM process dont answer

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).
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

HM process dont answer

Post by violant »

I have HM.v7.78 run as a service on win2003.
There are some script (command line c# http/soap query) run on it.
After about 1 hours of restart service - HM down. service dont restart, so I kill process.
Procees have 214 threads in Process Explorer (too much I think).
Image

http://www.postimage.org/image.php?v=TsV8rGA

Image
http://www.postimage.org/image.php?v=TsYoski
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Procees have 214 threads in Process Explorer (too much I think).
Its not normal in most cases. However if you have a lot of tests with short test interval and many of these tests require a lot of time to execute, this may happen. Could you start Auditing Tool? Menu View -> Auditing Tool. Any errors or warnings? What is average test frequency?

What exactly test method do you use to start this script? I assume Shell Script. or may be External test method?
What exactly means "HM down"? You cannot open HostMonitor GUI? You cannot connect to HostMonitor using RCC or Web Service?

Regards
Alex
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

Post by violant »

On other(old) server all works fine.
Avarage speed in auditing tool 1test/sec. Avarage test interval about 3 min. No warnings. This configuration on old server - result 17 thread. But may be I select other option in option menu on new server.
For script I use Shell script method. One of it - your tscheck. Other - console c# script that I write myself (Http/soap request).
Also I use Oracle test.
On new server I change order of my NIC without stop HM.
"HM down" - after 1 hour after kill hostmon.exe I have:
-Icon in tray in console session . When I click on it - nothing hapends (no hostmon window)
-When I want restart HM service - Windows write that service cant stop and dont answer on request.
So in result I kill Hostmon procces and after that start Hm service.
After restart all works fine (17 thread) for sometime.
When HM down it has about 215 thread.
Q.: How to move option and other profile to another server?
Tests I import / export by hml file. Shell script by export/import by exp files.
I want move lst file from folder c:\ProgrFiles\H..M...7\*.lst for import profile and options, but some of it include information of source server. Now I think about it.
I think this threads it some request that dont end (maybe wait for something).
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We cheked Shell Script test method, do not see any error in the code.
Could you send your script to support@ks-soft.net?
"HM down" - after 1 hour after kill hostmon.exe I have:
-Icon in tray in console session . When I click on it - nothing hapends (no hostmon window)
That's because you killed process. It cannot remove or manage tray icon.
Q.: How to move option and other profile to another server?
Please read the following article: http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=1099

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

BTW: Do you mean you had exactly the same HostMonitor configuration on old system? Then probably problem is caused not by Shell Script test method... I assume it caused by some other test that uses 3rd party DLLs. E.g. Oracle test.
Do you have installed the same version of Oracle client installed on both systems?
What other test methods do you use?
Could you try to disable Oracle and Shell Script tests for a while?

Regards
Alex
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Tell me please what command line (exact) do you use to run c# scripts ?

Regards,
Tom
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

Post by violant »

That's because you killed process. It cannot remove or manage tray icon.
No. When I restart HM all Ok. But when Hm down icon in tray dont disapear. I click on it - nothing. So I kill process - then icon disapear.
Do you have installed the same version of Oracle client installed on both systems?
Yes the same Oracle client v. 10.2.0.4. I install 10.2.0.1 then install patchset 10.2.0.4.
Do you mean you had exactly the same HostMonitor configuration on old system?
Yes. And on old server work fine.
What other test methods do you use?
Image
http://www.postimage.org/image.php?v=Ts1oU8K9
ODBC by Informix client.v9td6
Tell me please what command line (exact) do you use to run c# scripts ?
1st script: Http request from 1 corp system to another. xml request => xml result. I have etalon result and I check it.
command line from script manager
"C:\Program Files\HostMonitor7\script\dir\script.exe" %1 %2 %3
parametrs from test options
http://mywwwserver/virtdir/prog.exe "C:\Program Files\HostMonitor7\script\somedir\request.xml" "C:\Program Files\HostMonitor7\script\somedir\response.xml"
May be I incorect move Hm to new server? But I do this not first time.
Kill threads (Close handle) in process explorer dont help.

I read your instriction and maybe find reason.
Copy configuration files from old system to new one. Please copy ALL *.HML, *.LST and *.INI files from HostMonitor's folder and subfolders AT ONCE.
hml I import, ini dont copy, but lst I copy only 4 files - actions.lst, MailList.lst, Palettes.lst, users.lst.
Now I copy all lst and ini and will see what happends
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

Post by violant »

Hm works fine for 10 hours.
It my mistake that I dont read instruction How to move Hm to another server.
Can you do my feature request.
Create in new version of HM backup/restore or export/import method (GUI and command line for backup) for stupid user like me that include backup :
1)option;
2)profile;
3)shell script;
4)tests;
5)other.
Let user to chouse what he want to export/import (1+2+4 or only 1).
I dont think its difficult.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

violant wrote:Hm works fine for 10 hours.
It my mistake that I dont read instruction How to move Hm to another server.
What about threads and other resources usage ? Is it normal now?

Regards,
Tom
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Create in new version of HM backup/restore or export/import method (GUI and command line for backup) for stupid user like me that include backup :
1)option;
2)profile;
3)shell script;
4)tests;
5)other.
Let user to chouse what he want to export/import (1+2+4 or only 1)
You can easily create such option by yourself.
Simple BAT file like the following
====================
cd c:\program files\hostmon
pkzip -r hmcfg *.hml *.lst *.ini *.hms *.vbs *.js
====================

Unless you store your own scripts in various folders.. In such case HostMonitor can check test settings and action profiles, find all custom scripts and backup all files.
Ok, I have added task into "to do" list. Low priority

Regards
Alex
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

Post by violant »

What about threads and other resources usage ? Is it normal now?
After copy of all lst files from old server - my server still down with many threads. I dont now why such many threads, but I saw at HM GUI when threads begin up. On HM windows many tests (ping DB ODBC LDAP and others) was in state checking. Threads very quickly up.
So I reinstall HM with full copy lst ini hml. All works fine for 1 day.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We have to narrow down the problem somehow.
Could you try to disable tests related on 3rt party software? ODBC, Oracle, MS SQL... Shell Script and ODBC logging?

Do you have installed some antivirus monitors, personal firewall, content monitoring software? Non stanard winsock components?

Regards
Alex
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

Post by violant »

On HM windows many tests (ping DB ODBC LDAP and others) was in state checking.
down again. all ping test in state checking. Other test Ok. 170 thread. Try to refresh some ping test - nothing. after 1 min GUI dont answer. Kill process - start HM service
Do you have installed some antivirus monitors, personal firewall,
Yes Symantec Endpoint Protection.v 10.0.5002 with firewall module. I have some rule on firewall.
Test description of rule from SEP firewall
Rule Summary:
Allow both incoming and outgoing traffic to/from: All hosts. This applies to traffic from the following protocols and ports: All IP protocol types. For these network adapters: All network adapters.
The following applications will be affected by this rule: Advanced Host Monitor, Web Service for HostMonitor.
END
Later I have rule that block all
Could you try to disable tests related on 3rt party software? ODBC, Oracle, MS SQL... Shell Script and ODBC logging?
Disable all - enable only Ping, HTTP, URL test. All logging off.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Symantec often leads to problems :( Especially when you use SMTP test or "Send e-mail" action...
Could you try to disabled it?
Did you have Symantec installed on old system? The same version?

Regards
Alex
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

Post by violant »

Especially when you use SMTP test or "Send e-mail" action
I use SMTP test and Send e-mail action but I never have problem with it. For send e-mail action I have rule in SEP firewall. Mail always send.
Did you have Symantec installed on old system? The same version?
Yes on old system the same client - the same version. I use SEP unmanaged client. Firewall rule I export/ import from old system to new.
Could you try to disabled it?
Now I can't disable it. It have very detailed traffic log. So if HM down next time I will see traffic log. There are block and allow traffic with all detail in thit log.
Post Reply