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

Performance Counter Error

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Harroguk



Joined: 30 Jul 2007
Posts: 25

PostPosted: Fri Jan 04, 2008 6:43 am    Post subject: Performance Counter Error Reply with quote

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:
;-----------------------------------------------------------------------------
;- 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
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri Jan 04, 2008 7:31 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Harroguk



Joined: 30 Jul 2007
Posts: 25

PostPosted: Fri Jan 04, 2008 7:53 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri Jan 04, 2008 8:16 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Harroguk



Joined: 30 Jul 2007
Posts: 25

PostPosted: Fri Jan 04, 2008 8:55 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri Jan 04, 2008 9:11 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting 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