NSClient++

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.
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: NSClient++

Post by donnyforbes »

Question ..
Password used to authenticate againast server

Is this the password used for the Nagios server or WIndows server?
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NSClient++

Post by lmiltchev »

Post the updated nsclient.ini and the configs for the "failing" services. It seems like a configuration issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NSClient++

Post by lmiltchev »

Question ..
Password used to authenticate againast server

Is this the password used for the Nagios server or WIndows server?
It is the password that you set in the nsclient.ini file. I gave you an example with "welcome", but if you want to use something else, more secure, for example "AtL@Nt15", you will need to put it in the nsclient.ini file

Code: Select all

; PASSWORD - Password used to authenticate againast server
password = AtL@Nt15
and restart the NSClient++ service.
Be sure to check out our Knowledgebase for helpful articles and solutions!
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: NSClient++

Post by donnyforbes »

Thanks I did this and restarted the NSClient on the remote server and then ran the following command and it seems good.

Code: Select all

[root@nag objects]# /usr/local/nagios/libexec/check_nt -H 192.168.1.6 -s AtL@Nt15 -p 12489 -v CLIENTVERSION NSClient++ 0,4,1,73 2012-12-17
NSClient++ 0,4,1,73 2012-12-17
However I am still getting this error message
NSClient - ERROR: Invalid password.

Why would I still be getting this error message. I am getting closer and at least not getting connection refused error anymore, but need to get this working. Again thank you for your assistance it has been helpful.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NSClient++

Post by lmiltchev »

Did you re-schedule the next check for one of the failing services to see if the status is going to change?

Please post one of the the service configs, along with the config of the host that service is attached to, the check command, and any relevant templates (if applicable).
Be sure to check out our Knowledgebase for helpful articles and solutions!
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: NSClient++

Post by donnyforbes »

Did you re-schedule the next check for one of the failing services to see if the status is going to change?

How do I do this?
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: NSClient++

Post by donnyforbes »

Please post one of the the service configs, along with the config of the host that service is attached to, the check command, and any relevant templates (if applicable).

Do you mean the windows.cfg on the Nagios server? and the .ini file on the remote hosts? Is that what you are asking for sorry again I am still really new to nagios.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NSClient++

Post by tgriep »

What I think the issue is that the example password has an @ symbol in it and it runs from the command line fine but it fails to be run by the Nagios process.
The simplest thing to do is to edit the nsclient.ini file on the windows system and remove the @ from the password

Code: Select all

AtLNt15
Save the file and restart the NSClient++ service on the Windows server.

Then edit the service checks in Nagios and remove the @ from the commands, restart nagios and that should fix the issue for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: NSClient++

Post by donnyforbes »

Ok I will try this.
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: NSClient++

Post by donnyforbes »

where is this located
Then edit the service checks in Nagios and remove the @ from the commands
Locked