NSClient ++ nsclient.ini help needed

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.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

NSClient ++ nsclient.ini help needed

Post by kwhogster »

Running Nagios 4.1.1 on a raspberry PI had some issues with NRPE on Raspbian so I decided to build another Nagios Server running on Ubuntu Server 16.04.1

All my configs copied over and all tested clean.

I just need to get the nsclient to point to the new server

I need to change this line

; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges.
allowed hosts = 10.2.8.72

To
allowed hosts = 10.2.8.79

but when I try to save the file I get access denied. I tried stopping the nsclient service but no luck

short of uninstalling and reinstalling is there a way to modify this nsclient.ini file ?


Thanks
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NSClient ++ nsclient.ini help needed

Post by kwhogster »

Solved

open command prompt run as administrator

net stop nscp

notepad nsclient.ini
save nsclient.ini

net start nscp
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NSClient ++ nsclient.ini help needed

Post by mcapra »

Thanks for sharing your solution! Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Locked