KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Host Monitor Service Crash

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports
View previous topic :: View next topic  
Author Message
Guerito



Joined: 14 Oct 2009
Posts: 7

PostPosted: Thu Nov 05, 2009 12:17 am    Post subject: Host Monitor Service Crash Reply with quote

I am running HM as a service (but I am still logged on to the console of the virtual machine). Every few days the program crashes. The error message is:

Runtime Error!
Program: C:\Programme\HostMonitor8\hostmon.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Even more of a problem is that while this message box is on the screen, the watchdogs still find the host monitor task and are perfectly happy with it.

System: Windows XP Pro, Version 2002, Service Pack 3
Host Monitor: Version 8.26

running in a VMWare Virtual Machine: Version 4

Console opened in VMWare Infrastructure Client: Version 2.5.0 Build 104249

My desktop computer: Windows Vista Business 64bit Service Pack 2
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12339
Location: USA

PostPosted: Thu Nov 05, 2009 12:03 pm    Post subject: Reply with quote

Quote:
Even more of a problem is that while this message box is on the screen, the watchdogs still find the host monitor task and are perfectly happy with it.

This means HostMonitor is not crashed. It does respond to requests and send data to WatchDog so HostMonitor works fine.

Quote:
Runtime Error!
Program: C:\Programme\HostMonitor8\hostmon.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

I don't think HostMonitor shows this error. It looks like this error is recorded (or displayed?) by some 3rd party software. Probably you are using Shell Script test method that starts some 3rd party application? If this application does not finish its job within specified timeout, HostMonitor will kill that process.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Guerito



Joined: 14 Oct 2009
Posts: 7

PostPosted: Mon Nov 09, 2009 1:16 am    Post subject: Reply with quote

KS-Soft wrote:

This means HostMonitor is not crashed. It does respond to requests and send data to WatchDog so HostMonitor works fine.

I don't think HostMonitor shows this error. It looks like this error is recorded (or displayed?) by some 3rd party software. Probably you are using Shell Script test method that starts some 3rd party application? If this application does not finish its job within specified timeout, HostMonitor will kill that process.


Sorry, I forgot to mention that when I click OK on this dialog box, the watchdog starts barking and the HostMonitor service is stopped. I have to start the HostMonitor service manually again. This led me to thinking that the watchdog just looks for the existence of the HM process.

I do actually have one Shell Script test. It tests a certain value inside a file. It is dependend of a File existence test. It has been working fine so far, giving proper results in both cases, good and bad. I don't think the script is to blame.

There seems to be a Microsoft knowledge base article (http://support.microsoft.com/kb/884538) about this problem, although it applies only to XP SP 2 and I have SP 3. Do you think I should try to install the hotfix anyway?

Is there anything else I can do to fix this?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12339
Location: USA

PostPosted: Mon Nov 09, 2009 10:12 am    Post subject: Reply with quote

Quote:
Sorry, I forgot to mention that when I click OK on this dialog box, the watchdog starts barking and the HostMonitor service is stopped. I have to start the HostMonitor service manually again. This led me to thinking that the watchdog just looks for the existence of the HM process.

No. WatchDog sends request to HostMonitor on regular basis. If HostMonitor does not respond, WatchDog starts alerts.
May we see that dialog box?

Quote:
There seems to be a Microsoft knowledge base article (http://support.microsoft.com/kb/884538) about this problem, although it applies only to XP SP 2 and I have SP 3. Do you think I should try to install the hotfix anyway?

Not sure. Could you try to disable this test item for testing?
Do you use some other functions (like "External" test or "Execute external program" action) that launch 3rd party applications created by Visual C++?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Guerito



Joined: 14 Oct 2009
Posts: 7

PostPosted: Tue Nov 10, 2009 3:37 am    Post subject: Reply with quote

Here is a screenshot with the dialog box:



Quote:
Could you try to disable this test item for testing?


I don't really want to do this. I need this test once every morning.

Quote:
Do you use some other functions (like "External" test or "Execute external program" action) that launch 3rd party applications created by Visual C++?


Nope, sorry.

I found a recommendation for this error to reinstall the dotnet framework, which I have done meanwhile. I also changed the shell script test to make sure it doesn't crash when the file is not available (I hadn't done this before because the test runs dependant on a file existency test).

As the problem occurs at irregular intervals, I will observe this and wait for it to happen again. Next time it happens I will try to find out which test ran last, before restarting the service.

Best regards and thanks for your support,
Juergen
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12339
Location: USA

PostPosted: Tue Nov 10, 2009 11:25 am    Post subject: Reply with quote

Message looks like its HostMonitor fault. But HostMonitor does not use Microsoft Visual C++ Runtime Library!! So it must be some 3rd party software that uses C++ Runtime Library.

How it can crash HostMonitor? Not sure...
Probably its not Shell Script test. May be its ODBC or Active Script test. ODBC drivers work in address space of the host process. So any bug in ODBC driver can crash HostMonitor.
Do you use ODBC logging or ODBC test method? If yes, what ODBC driver do you use?
Active Shell tests?
Do you have installed some antivirus monitors, personal firewall, content monitoring software? Non stanard winsock components?

If you do not want to disable that test, please send e-mail to support@ks-soft.net, provide your registration name and/or order number. We will provide "debugging" version of HostMonitor, it may provide a little more information regarding the problem.
Could you disable ODBC logging and tests (if you have one) and install HostMonitor on "clean" system without antiviruses?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Guerito



Joined: 14 Oct 2009
Posts: 7

PostPosted: Wed Nov 11, 2009 1:25 am    Post subject: Reply with quote

Last night I got the error again. This time I checked things before restarting them...

I have a (refreshing) browser window open for host monitor webservice:



The host monitor shows this (note that the systray icon is still moving):



The last entries in host monitor log file look like this:


It seems you may be right about the ODBC check. There is another ODBC check that has last been logged at 00:00:20 and had the result OK.

The last entries in host monitor syslog file look like this:


Note the IP address is my desktop computer - the one that has the browser open and refreshing. The last connection was at 03:28:05, roughly 30 minutes after the last logged ODBC test. Both ODBC tests run every 10 minutes. The log is written only when the status changes (Midnight setting). I changed this option now to "Full", maybe we get more info.

The ODBC driver in question is the driver supplied with the Oracle instant client, Version 10.02.00.04, file SQORA32.DLL from 03/03/2008.

I am not aware that I am running any Active Shell tests.

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


No, this is a standard WinXP SP3 with nothing else running on it. Windows Firewall ist active, though. Firewall exceptions are Advanced Host Monitor, Network diagnosis for Windows XP, Remote desktop, Remote support, rma, and Web Service for HostMonitor.

I will do as you suggested and ask the support for a debugging version of HostMonitor. I wouldn't like to disable the ODBC tests, they provide valuable information. The problem is that the tests are running every 10 minutes and everything seems to be fine for days. Because of the irregularity of the error, even if HostMonitor ran fine without the ODBC tests for a few days, we wouldn't really be sure if the reason is the ODBC driver.

Best Regards,
Juergen
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12339
Location: USA

PostPosted: Wed Nov 11, 2009 4:28 pm    Post subject: Reply with quote

We sent you a link to test version of HostMonitor. Please install official release 8.28 before using that update.

However I doubt it can help
This problem is caused by some 3rd party software (DLL) written in Microsoft Visual C++. If you will not disable some tests/options one by one, how you can find what exactly software leads to the problem?
Google did not find anything similar in relation to Oracle ODBC driver.

BTW: Do you use "Send message to pager" or "Send message to beeper" actions? These actions use some 3rd party DLLs. Though we never heared about such problem related to these actions.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Guerito



Joined: 14 Oct 2009
Posts: 7

PostPosted: Thu Nov 12, 2009 12:41 am    Post subject: Reply with quote

Quote:
We sent you a link to test version of HostMonitor. Please install official release 8.28 before using that update.


Thanks, I will do this.

Quote:
If you will not disable some tests/options one by one, how you can find what exactly software leads to the problem?


My problem is, I have 105 tests in 53 folders, and at the moment I don't have a clue were to start. The error occurs in irregular intervals - last night everything went fine. If I disable and enable tests one by one and see if the host monitor runs fine for let's say three days, it might take months to find the culprit. I am actually hoping that, by determining when exactly the crash happens, I might be able to find the offending test.

Quote:
Do you use "Send message to pager" or "Send message to beeper" actions?


No, I don't use this.

I will install the newest software and the debugging hostmon.exe. Also, I have now the log settings on "Full", so I hope to see the last successful test that was executed. From there I'm planning to find out what the next test would have to be - this should be the one causing the crash.

I will get back to this thread when I have more info.

Thanks a lot for your support.

Regards,
Juergen
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12339
Location: USA

PostPosted: Thu Nov 12, 2009 8:59 am    Post subject: Reply with quote

Quote:
My problem is, I have 105 tests in 53 folders, and at the moment I don't have a clue were to start. The error occurs in irregular intervals - last night everything went fine. If I disable and enable tests one by one and see if the host monitor runs fine for let's say three days, it might take months to find the culprit. I am actually hoping that, by determining when exactly the crash happens, I might be able to find the offending test.

Well, you don't need to disable all tests one by one.
If you do not have some non-standard winsock/antivirus/firewall software, then you may skip the following tests
Ping TCP Trace SMTP POP3 IMAP
DNS LDAP RAS UDP NTP/SNTP
Radius HTTP URL
Drive free space
Folder/file size
Folder/file availability
Compare files
File Integrity
Count Files
Text Log
UNC Process Service SNMP
CPU usage Temp. Monitor Traffic Monitor
SNMP Trap Mail Relay DICOM
DHCP SSH HM Monitor

Also you may copy HostMonitor folder, start 2nd instance from new folder, disable logging and alerts and use this 2nd instance for testing. So you may disable 10 tests at a time and see what happens.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index