After Upgrade - Error: Script returns no results

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
eha
Posts: 4
Joined: Sun Jul 06, 2014 11:43 pm

After Upgrade - Error: Script returns no results

Post by eha »

Hallo,

We are using Hostmon on a Windows Server 2012 (x64), installed Version ist 9.90 - the newest can download at Website.

After upgrading, all of our tests who use cmd oder powershell gets the Message "Error: Script returns no results" when it run from Windows Service. When we test the Script bei Hostmon RCC in Testmode everything is fine and the result is ok, but when we do "Refresh selected test" in RCC the same error becomes as it run as Windows Service.

The Tests are all functional before Upgrading to Windows Server 2012 an Hostmon 9.90.

Also in case of 64Bit, we have a seperate Directory with the Copy of the right powershell. (look at e.g. this topic: http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=7398)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Officially, we do not support Windows 2012 - there some bugs.
http://ks-soft.net/hostmon.eng/index-sysreq.htm

However Shell Script test and powershell should work.
As I understand test does not work when HostMonitor started as Win32 service? but works fine when HostMonitor started as application?

UAC enabled?
What accound have you specified for HostMonitor service?
If UAC is enabled, you should use BUILT-IN administrator account.

Regards
Alex
eha
Posts: 4
Joined: Sun Jul 06, 2014 11:43 pm

Post by eha »

UAC is not enabled. We use SYSTEM account.

Now I change it to an Build In Account with Administrator privileges. At this time I get an other error when I run the Tests: "Error: Cannot create temp file. Access Denied."

The Service Account has full Administrator rights an the Hostmon Server.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

UAC is not enabled. We use SYSTEM account.
Local system account does not allow to check remote systems (using tests like NT Event Log, Service, Process, CPU Usage)
Now I change it to an Build In Account with Administrator privileges. At this time I get an other error when I run the Tests: "Error: Cannot create temp file. Access Denied."
As I understand test does not work when HostMonitor started as Win32 service? but works fine when HostMonitor started as application?

HostMonitor tries to create temp files using TEMP and TMP environ variables. Normally these variables point to C:\Users\<username>\AppData\Local\Temp folder. For system or built-in account it may poing to C:\Windows\Temp
Do you have such folders? Permissions?

Regards
Alex
eha
Posts: 4
Joined: Sun Jul 06, 2014 11:43 pm

Post by eha »

Problem solved doing the following:

1. Grand Access for Authentificated User with write previliges to TEMP Folder (C:\Windows\Temp)
2. Configure Local Security Policy ("Local Security Policy" applet (Start -> Programs -> "Administrative Tools" -> "Local Security Policy" applet -> "Local Policies" -> "User Rights Assignment")) with for UAC: [...] integrated Administrator as "Disabled"
3. Set the Account in with the Service run to "Interact with Desktop"

Restart the System and everything works fine with Windows Server 2012 R2

Here are some related Post to solve the Problem:
http://www.ks-soft.net/phpBB/viewtopic. ... 6a6474dd39
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Thank you for information.
I think "Interact with Desktop" option does not make any difference in this case...

Regards
Alex
Post Reply