Page 1 of 1

NSClient with http attachment scripts

Posted: Mon Sep 26, 2022 11:24 pm
by SharphSonirak
i've just found out that nsclient allows a http point to serve configs and scripts. a new IIS site is fired up, add ini and ps1 to mime type (both text/plain and application/octet-stream), and tell nscp to obtain the nsclient.ini file from the web server - all works well.

however, adding the following to the nsclient.ini file and restarting nscp service results with the below error in logs.

scripts/check_DA-RemoteAccess.ps1=http://webserver/nsclient/Scripts/check ... Access.ps1
error:c:\source\master\include\settings/impl/settings_http.hpp:101: Failed to find cached settings: scripts/check_DA-RemoteAccess.ps1.tmp

the ps1 file can be downloaded via web browser so I'm happy IIS is serving the file correctly, just nsclient isnt playing ball. is there anything else i need to do to get this echatspin echatrandom working?