NSClient with http attachment scripts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
SharphSonirak
Posts: 5
Joined: Sun Jul 17, 2022 3:15 am

NSClient with http attachment scripts

Post 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.

[/attachments]
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?
Post Reply