Unexpected result

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
aicorda
Posts: 15
Joined: Tue Mar 08, 2011 8:30 am

Unexpected result

Post by aicorda »

I use a powershell script to retrieve information from a sql database.

When I run the powershell script local on the server, I get the good result.

When I use hostmonitor to execute my script on the server, I get an unexpected result (= not good).

How is it possible I get a different result?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Unexpected result

Post by KS-Soft Europe »

What Windows do you use ?
Microsoft provides 2 different versions of PowerShell (32bit and 64bit versions) for x64 Windows OS.
So, you may manually run 64bit powershell console, while HostMonitor uses 32bit.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What exactly Windows and SQL client do you use?
64bit? 32bit? Version?

Regards
Alex
aicorda
Posts: 15
Joined: Tue Mar 08, 2011 8:30 am

Post by aicorda »

Windows Server 2003, 32bit
Microsoft SQL Server 2008, 32bit
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

H'm... may be some permission related issue?
Are you using the same user account when you starting script manually and when you starting HostMonitor itself?
HostMonitor is started as service? as application?
What exactly script do you use?

Regards
Alex
aicorda
Posts: 15
Joined: Tue Mar 08, 2011 8:30 am

Post by aicorda »

I use the same domain administrator account for running it local and for hostmonitor.

I use the rcc to start hostmonitor and run the rest.

It's a selfmade powershell script.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HostMonitor version?
HostMonitor is started as service? as application?
What exactly script do you use? Could you modify it so it will show you what exactly function/method/command fails?
I use the rcc to start hostmonitor and run the rest
Its impossible to start HostMonitor using RCC.
May be you start script different systems? E.g. HostMonitor is running on systemA while you start RCC and test your script on systemB?

Regards
Alex
Post Reply