z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

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.

NSClient with http attachment scripts

Postby SharphSonirak » Mon Sep 26, 2022 11:24 pm

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_DA-RemoteAccess.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?
SharphSonirak
 
Posts: 5
Joined: Sun Jul 17, 2022 3:15 am

Return to Open Source Nagios Projects

Who is online

Users browsing this forum: No registered users and 8 guests