Performance Counter Error

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
Harroguk
Posts: 25
Joined: Mon Jul 30, 2007 2:23 am

Performance Counter Error

Post by Harroguk »

Hi,

I have a test set up to monitor the available memory via performance counters.

The test is \\x.x.x.x\Memory\Available MBytes. When configuring the test I am able to click "Get current value" and I get the correct reply in the alert value Text Box.

However when I accept the test it will not update, the only response I get is "Error: Unable to connect to specified machine"

I have a similar test working correctly on other servers however am having real problems getting this one to work.

Any help you can give would be much appreciated.

Test Code listed below

Code: Select all

;-----------------------------------------------------------------------------
;- HostMonitor`s export/import file                                          -
;- Generated by HostMonitor at 04/01/2008 12:43:17                           -
;- Source file: C:\Program Files\HostMonitor6\KS-Host-Config.hml             -
;- Generation mode: Selected_Tests                                           -
;-----------------------------------------------------------------------------


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


Method      = PerfCounter
;--- Common properties ---
DestFolder  = Root\IBM x326 Servers\[ServerName]\
Title       = [ServerName] - Free Memory
Comment     = Free Memory
RelatedURL  = 
ScheduleMode= Regular
Schedule    = 
Interval    = 600
Alerts      = Message, Sound
ReverseAlert= No
UnknownIsBad= Yes
WarningIsBad= No
UseWarning  = Yes
WarningExpr = (("%SuggestedSimpleStatus%"=="UP") and ("%SuggestedReply%">="256") and ("%SuggestedReply%"<="512"))
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
SyncCounters= Yes
SyncAlerts  = No
DependsOn   = list
MasterTest-Alive = [ServerName] - Alive - Ping
;--- Test specific properties ---
PerfCounter = \\[ServerIP]\Memory\Available MBytes
Condition   = LessThan
Value       = 256.00
DisplayMode = AsIs
Username    = [Domain]\[ServiceAccount]
Password    = [Password]

;-----------------------------------------------------------------------------
; Exported 1 items
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Could you provide more information, please?
- What version of HostMonitor do you use?
- What Windows do you use? Service Pack?
- Is HostMonitor started as a service or as an application?
- Are you trying to setup the test using RCC or HostMonitor itself?

Please note: Performance counter test requires admins privileges. Does the service account, that you have specified into "Connect as" box, have necessary rights?

If you are trying to setup the test using RCC, please ensure:
1. RPC service is started on target machine
2. Remote Registry service is starged on target machine
3. There are no firewalls between target system, and the system, where HostMonitor is running.

In fact, you may install Remote Monitoring Agent (RMA) on the target system: http://www.ks-soft.net/hostmon.eng/rma-win/index.htm

Also, Microsoft implementation of Performance Counters is not reliable. We recommend to use WMI instead, it works much better. For instance, to check available memory, you may use "WMI" test method with the following query: Select FreePhysicalMemory from Win32_OperatingSystem

Regards,
Max
Harroguk
Posts: 25
Joined: Mon Jul 30, 2007 2:23 am

Post by Harroguk »

KS-Soft Europe wrote:Could you provide more information, please?
- What version of HostMonitor do you use?
6.80
KS-Soft Europe wrote:- What Windows do you use? Service Pack?
RCC is running on Windows XP
Hostmonitor is running on Server 2003 Standard SP1
Machine to be tested is Server 2003 Standard SP1
KS-Soft Europe wrote:- Is HostMonitor started as a service or as an application?
As a service.
KS-Soft Europe wrote:- Are you trying to setup the test using RCC or HostMonitor itself?
I have set up teh test via the RCC
KS-Soft Europe wrote:Please note: Performance counter test requires admins privileges. Does the service account, that you have specified into "Connect as" box, have necessary rights?
I can log onto teh server that Hostmonitor is installed to with the [ServiceAccount], if I do this I am able to successfully remotely view the counters of the Server to be tested via Perfmon.
KS-Soft Europe wrote:If you are trying to setup the test using RCC, please ensure:
1. RPC service is started on target machine
2. Remote Registry service is starged on target machine
3. There are no firewalls between target system, and the system, where HostMonitor is running.
There is a firewall between the Hostmonitor server and the Server to be tested however other tests to that server are working correctly. These include free drive space tests, 3 Event Log tests, a CPU usage test and a ping response test.
KS-Soft Europe wrote:In fact, you may install Remote Monitoring Agent (RMA) on the target system: http://www.ks-soft.net/hostmon.eng/rma-win/index.htm
This is not really an option for us as the Server in question is a Domain Controller
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Harroguk wrote:There is a firewall between the Hostmonitor server and the Server to be tested however other tests to that server are working correctly. These include free drive space tests, 3 Event Log tests, a CPU usage test and a ping response test.
So, the test works on XP (RCC), but does not work on Server 2003 (HostMonitor). Hm. Strange. I think, you should assign "Logon as service" privilege to the account, you have specified in "Options" > "Service tab" (account, that is used to start HostMonitor's service).

Do not forget restart the service, please. Could you restart the server, where HostMonitor is running? It might help.

Regards,
Max
Harroguk
Posts: 25
Joined: Mon Jul 30, 2007 2:23 am

Post by Harroguk »

Seems that when the account under "Options > Service" is added to the groups "Performance Logs" and "Performance Counters" in the AD it works correctly, even though I was specifying a different account (That had those permissions already) under the individual tests.

Thanks for the help it all seems to be working now.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Harroguk wrote:Seems that when the account under "Options > Service" is added to the groups "Performance Logs" and "Performance Counters" in the AD it works correctly, even though I was specifying a different account (That had those permissions already) under the individual tests.
Thank you for the feedback. Really useful information.
Harroguk wrote:Thanks for the help it all seems to be working now.
Glad to hear that.
You are welcome! :-)

Regards,
Max
Post Reply