Page 1 of 1

nsclient ++ install

Posted: Thu Mar 29, 2018 9:30 am
by hlaten01
When installing the agent nsclient++ and we are asked for allowed host and when following the video for the client install the presenter puts in the IP address of the Nagios server, is there a reason why we cannot use the fqdn or web host name?

Re: nsclient ++ install

Posted: Thu Mar 29, 2018 10:30 am
by tacolover101
nope - that should work as well.

i have seen ipv6 be an issue here though, so you may have some troubleshooting to work through. the nsclient log is pretty verbose though, and should help to work through.

Re: nsclient ++ install

Posted: Thu Mar 29, 2018 10:50 am
by lmiltchev
...is there a reason why we cannot use the fqdn or web host name?
I assume this is by design. I say "assume" as NSClient++ is not developed or maintained by Nagios. I found the following comment in the nsclient.ini file:

Code: Select all

; ALLOWED HOSTS - A coma separated list of hosts which are allowed to connect. You can use netmasks (/ syntax) or * to create ranges.
so it's safe to assume that you cannot use a FQDM instead of IP address/netmask.

I also found a very old thread on the topic here:

http://nagios-users.narkive.com/TaqLSPf ... ip-address

I am not sure if things are different in the very latest version of NSClient++. You may want to ask your question on the NSClient++ support forum. Perhaps, the developer of NSClient++ could give you a definite answer.