NSClient - ERROR: Invalid password.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

NSClient - ERROR: Invalid password.

Post by sheld0r »

I've got kind of a simple question, so I'm getting an error stating 'NSClient - ERROR: Invalid password.' on a few newly added nodes. I know I entered the right password, but how can I go back and edit the password. I don't see an option. I wanted to see if I'm able to go back and edit, whether it be on the client or server node before I uninstall the NSClient++ agent and reinstall it where it will then ask me for the password again.

Cheers,
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: NSClient - ERROR: Invalid password.

Post by gshergill »

Hi sheld0r,

On a windows server you can change the password in the following file (depending on install location):
C:\Program Files\NSClient++\nsclient.ini
Scroll down till you find "password = " and change the password as required.

Hope this helps.

Kind Regards,

Gary Shergill
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NSClient - ERROR: Invalid password.

Post by slansing »

Gshergill is correct, that is the location to edit the password for all inbound checks from your nagios systems. The you must use the password flag on check_nrpe checks which should be set to:

Code: Select all

-s "passwordhere"
sheld0r
Posts: 49
Joined: Thu Jan 03, 2013 5:39 pm

Re: NSClient - ERROR: Invalid password.

Post by sheld0r »

As I thought, the password is indeed correct on the client. I don't quite understand what to do slansing. Is this a command I run, or an edit to the host? Very new to Nagios, especially the inner workings of Nagios.

Cheers,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NSClient - ERROR: Invalid password.

Post by scottwilkerson »

First let me verify, does the password have special chars,
ie

Code: Select all

$ ! \ ;
etc?

If so these will need to be escaped in XI.

Second, if this isn't the case, you will want to go to Configure -> CCM -> Services -> Modify (one of these services)

Verify the $ARG1$ field does match the password.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NSClient - ERROR: Invalid password.

Post by slansing »

Lets start with a simple CLI ran check to the remote host, run the following from your command line filling in the quoted areas with your information:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H "YOUR HOST ADDRESS" -p 5666 -s "YOUR PASSWORD" -c "your check's alias here followed by it's flags and values"
Locked