Error: The remote procedure call failed

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).
SIF
Posts: 42
Joined: Thu Oct 30, 2003 7:15 am

Error: The remote procedure call failed

Post by SIF »

OS: Windows 2000 Server
HM: 5.82 Beta (tested with 5.66 as well)
Test Method: Performance Counter
Check Counter: \\SERVERNAME\Memory\Available MBytes

Problem: it works with some servers and with some not. There is no relation between them. Some are in the same LAN, some not. Some are the same hardware, some not. Some are on the same domain, some not. Sometimes we redo the configuration and it starts working again and it breaks after some time.

What can we do to fix this?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may find many articles related to Performance Counter problems in this forum. Please use Search function
Sometimes its simple configuration issue (e.g. Remote Registry service is not started on remote system). But often problems caused by various bugs in Performance Counter implementation, IMHO its the worst part of the Windows.
That's why we have implemented WMI test method in version 5.82, it works much more releable and can provide even more information.
Some are in the same LAN, some not. Some are the same hardware, some not. Some are on the same domain, some not.
If you want to monitor remote networks, we recommend to install RMA
http://www.ks-soft.net/hostmon.eng/rma-win/index.htm

Regards
Alex
SIF
Posts: 42
Joined: Thu Oct 30, 2003 7:15 am

Post by SIF »

As I didn't see it fixed in any of those posts you mention and if I use the button to get the current status in the test setup it works 100% of the times, I considered it a new thread was needed. Quite strange that it works inside the setup but not in the automated test...
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

"Test button" and "test item" use exactly the same code to perform the test. I assume test fails when HostMonitor tries to perform several tests at the same time. Am I right?
Some version of pdh.dll have such problem. What Service Pack have you installed?
I would recomment to use "One by one" or "External" test mode (see Misc page in the Options dialog), usually it helps

Regards
Alex
SIF
Posts: 42
Joined: Thu Oct 30, 2003 7:15 am

Post by SIF »

SP4 with Update Roll up Package and last updates (last Tuesday).

I prefer to go the WMI way as testing one by one would delay the testings or I'm wrong?

About WMI, the memory query I'm trying is:
select AvailableMBytes from Win32_PerfRawData_PerfOS_Memory
and it seems to work, but only if the server is in the same domain. If not I get an access denied. How can I overcome this?
SIF
Posts: 42
Joined: Thu Oct 30, 2003 7:15 am

Post by SIF »

Another problem with WMI test. A server is reporting 1564 free but is treated as bad while it should be if less than 256. :/
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

May I see your test settings?

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

Post by KS-Soft »

and it seems to work, but only if the server is in the same domain. If not I get an access denied. How can I overcome this?
Try to setup trusting relations between domains
Or better use RMA

Regards
Alex
SIF
Posts: 42
Joined: Thu Oct 30, 2003 7:15 am

Post by SIF »

KS-Soft wrote:May I see your test settings?

Regards
Alex
Host: daemon.sif.com.ar
Name space: root\cimv2
Query: select AvailableMBytes from Win32_PerfRawData_PerfOS_Memory
Alert if: any AvailableMBytes is < than 256
Treat unknown status as bad disabled

About the trust relationship, is not possible/desirable and some are servers without a domain. Why not using this?:

http://msdn.microsoft.com/library/defau ... mputer.asp
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Host: daemon.sif.com.ar
Name space: root\cimv2
Query: select AvailableMBytes from Win32_PerfRawData_PerfOS_Memory
Alert if: any AvailableMBytes is < than 256
Treat unknown status as bad disabled
I cannot import this into HostMonitor. However I used similar settings, it works fine.
I can try to use your settings, but you should export test settings into text file. Use menu File->Export into text file
Why not using this?:
What exactly is your proposition? Specify credentials for the Remote Connection?
I though you already have specified user name and password that should be used for WMI test. If not, you can do that using menu Profiles -> Connection Manager

Regards
Alex
SIF
Posts: 42
Joined: Thu Oct 30, 2003 7:15 am

Post by SIF »

Code: Select all

;-----------------------------------------------------------------------------
;- HostMonitor`s export/import file                                          -
;- Generated by HostMonitor at 21/02/2006 09:42:39                           -
;- Source file: C:\Program Files\HostMonitor4\HMList.hml                     -
;- Generation mode: Selected_Tests                                           -
;-----------------------------------------------------------------------------


; ------- Test #01 -------


Method      = WMI
;--- Common properties ---
;DestFolder = Root\Servidores\Peru\DAEMON\
Title       = DAEMON: Memory
Disabled    = Yes
Comment     = 
RelatedURL  = 
ScheduleMode= Regular
Schedule    = 
Interval    = 600
Alerts      = Send Mail Servers
ReverseAlert= No
UnknownIsBad= No
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
SyncCounters= Yes
SyncAlerts  = No
DependsOn   = list
MasterTest-Alive = DAEMON: Ping
;--- Test specific properties ---
Host        = daemon.sif.com.ar
NameSpace   = root\cimv2
Query       = select AvailableMBytes from Win32_PerfRawData_PerfOS_Memory
SumMode     = any ...
CompareMode = LessThan
CompareVal  = 256
NoResStatus = Unknown

;-----------------------------------------------------------------------------
; Exported 1 tests
Didn't know about the connection manager. That should do, thanks!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

H'm... problem is:
Microsoft manuals declares Win32_PerfRawData_PerfOS_Memory.AvailableMBytes counter as uint64 type but in real life Windows returns OleStr type to the application (HostMonitor). That's why HostMonitor applies string compare rules to the counter.
I checked AvailableKBytes and AvailableBytes counters - strings as well :(

May be we can implement some conversion options in future versions of HostMonitor...

Regards
Alex
SIF
Posts: 42
Joined: Thu Oct 30, 2003 7:15 am

Post by SIF »

So is there a workaround for that or we can't use the feature for now?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I would recomment to use "One by one" or "External" test mode (see Misc page in the Options dialog), usually it helps
Regards
Alex
SIF
Posts: 42
Joined: Thu Oct 30, 2003 7:15 am

Post by SIF »

Well, one by one doesn't. And about external, it says the file is missing, but I'm administering from RCC Console. Is that a bug on the console because it's checking the local system that has not the full installation? The file is in the server installation directory but after this option was checked all performance counter tests failed.
Post Reply