Page 1 of 1

NSClient ++ nsclient.ini help needed

Posted: Sat Jul 23, 2016 5:38 pm
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

Re: NSClient ++ nsclient.ini help needed

Posted: Sat Jul 23, 2016 6:07 pm
by kwhogster
Solved

open command prompt run as administrator

net stop nscp

notepad nsclient.ini
save nsclient.ini

net start nscp

Re: NSClient ++ nsclient.ini help needed

Posted: Mon Jul 25, 2016 10:22 am
by mcapra
Thanks for sharing your solution! Is it alright if we lock this thread and mark the issue as resolved?