Acess Denied when posting external test 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
thenderson
Posts: 4
Joined: Tue Mar 15, 2016 9:55 am

Acess Denied when posting external test results

Post by thenderson »

We are unable to post test results externally due to an access denied error.

Running Hostmon 9.90 on windows server 2012 R2.

Error: "Action error: Cannot execute command "c:\hostmonitor\curl\curl". Access is denied."

Permissions to file and folder granted full control granted all the way down.
UAC has been disabled.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

HostMonior started as Service or as Application?
If HostMonitor is started as Service what user account is used on "Service" page of HostMonitor Options dialog and on Windows Services applet (services.msc) ?
thenderson
Posts: 4
Joined: Tue Mar 15, 2016 9:55 am

Post by thenderson »

We have it running as an application not a service.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We cannot reproduce problem on our systems.
Have you started HostMonitor application using "run as administrator" option?

>We are unable to post test results externally due to an access denied error.
Post test results? Are you trying to start external application after each test probe? I think this is bad idea, you will waste a lot of system resources.
There are logs, reports, you may use database to store test results (ODBC logging), etc

Regards
Alex
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

What exactly text have you specified in "Command line" parameter of Action properties dialog?
thenderson
Posts: 4
Joined: Tue Mar 15, 2016 9:55 am

We are unable to post test results externally due to an acce

Post by thenderson »

We have an external alert board in slack we are attempting to send failures to. We are not sending the results of every test. We have an application in the hostmon folder to send out failures using:

"c:\hostmonitor\curl\curl --retry 3 -k -H "Authorization: XXXXX" -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d "{'feed': 'hostmonitor', 'source': '%TestName%', 'status': '%Status%', 'message': '%Reply%', 'resolver': 'NA-Lab', 'data': { } }"

Using the same string we are able to send alerts to our alert board from without issue, however we are unable to get Hostmon to send to the same due to the access denied error. Hostmon does run as administrator on the system.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

curl - EXE module?
May be incomplete path? E.g. if you specify folder path without exe module name, you will get "access denied" error.
Please check path and try to start some other external program...

Regards
Alex
thenderson
Posts: 4
Joined: Tue Mar 15, 2016 9:55 am

Post by thenderson »

Thank you very much the explicit .exe call resolved the issue.
Post Reply