Hi Everyone,
I am new at Nagios XI with my current company. (Only been here 4 months). Anyway I have had success configuring Windows servers but 1 is giving me an issue. I have the correct password on the client and in the Nagios XI portal. I know this to be true because if I force an immediate check on a monitored service it will respond back as successful and turn the service to green.... If left alone for sometimes a minute or maybe even 30 seconds It will then return with NSClient - ERROR: Invalid password. if i force a check again it will return to green.
This server has approx 22 monitored services and of them at any time 6-7 services will come up with this error.. they are random. Once again If i run the check manually it returns to a good state.
If there is anyone who can offer some help or a suggestion I would really appreciate it....
I can provide more information if needed
Thanks
NSClient - ERROR: Invalid password.
Re: NSClient - ERROR: Invalid password.
Can you show us the actual check that you run from the command line, along with the output of it? Show us the service's config as well.
Do you have any special characters in the password? How do you pass it in your check - directly or via a user macro (defined in the /usr/local/nagios/etc/resource.cfg file)?
Are you using ModGearman or MK LiveStatus?
Do you have any special characters in the password? How do you pass it in your check - directly or via a user macro (defined in the /usr/local/nagios/etc/resource.cfg file)?
Are you using ModGearman or MK LiveStatus?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NSClient - ERROR: Invalid password.
Hi,
I am doing this completely from the Nagios XI GUI interface. I will attach an image so you can see exactly where I am in the GUI. If i force an immediate check it comes back as "good" I have also checked in services to make sure that password is correct for each individual service.
Thanks for any additional help
I am doing this completely from the Nagios XI GUI interface. I will attach an image so you can see exactly where I am in the GUI. If i force an immediate check it comes back as "good" I have also checked in services to make sure that password is correct for each individual service.
Thanks for any additional help
You do not have the required permissions to view the files attached to this post.
Re: NSClient - ERROR: Invalid password.
Go to the CCM->Services-><your service>, and show us a screenshot of this page.
Next, click on the "Test Check Command", and show a screenshot.
Post the "nsclient.ini" file from the Windows machine.
Run the following commands and show the output:
I noticed that you have a "negative duration" on this check. Make sure your php and system time is in sync. Go to Admin->System Profile->Show profile and check the info under the "Date/Time" section. Here's our documentation on changing the system time:
https://assets.nagios.com/downloads/nag ... m_Time.pdf
Have you tried restarting the NSClient++ service on the Windows box?
Next, click on the "Test Check Command", and show a screenshot.
Post the "nsclient.ini" file from the Windows machine.
Run the following commands and show the output:
Code: Select all
ps -ef | grep nagios.cfg | grep -v grep
grep -i 'live\|gearman' /usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/libexec/check_nt -H <client ip> -p 12489 -s "<password>" -v CLIENTVERSION
https://assets.nagios.com/downloads/nag ... m_Time.pdf
Have you tried restarting the NSClient++ service on the Windows box?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NSClient - ERROR: Invalid password.
Good Morning,
I have performed all of the tasks below, and have created a zip file with the documents. I have checked to make sure the system time is correct and it is.
I have also restarted the services on the Windows Client machine as well.
Just as more information, today over half of the services are telling me this morning that the password was invalid and then a few minutes later it was down to 6 and then a little while later back up to 9. it varies from minute to minute.
Thanks
I have performed all of the tasks below, and have created a zip file with the documents. I have checked to make sure the system time is correct and it is.
I have also restarted the services on the Windows Client machine as well.
Just as more information, today over half of the services are telling me this morning that the password was invalid and then a few minutes later it was down to 6 and then a little while later back up to 9. it varies from minute to minute.
Thanks
You do not have the required permissions to view the files attached to this post.
Re: NSClient - ERROR: Invalid password.
It looks like you have multiple processes running, are you able to kill all of them off, and then start Nagios once again? It should then work as expected.[obrieng@USCUNAGAPPP01 ~]$ ps -ef | grep nagios.cfg |grep -v grep
nagios 10733 1 0 Jun08 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 10798 10733 0 Jun08 ? 00:03:13 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 47145 1 0 Aug17 ? 00:35:13 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 47216 47145 0 Aug17 ? 00:00:12 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 63142 1 0 May24 ? 00:00:01 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 63209 63142 0 May24 ? 00:04:04 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 64592 1 0 Aug03 ? 02:12:27 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 64660 64592 0 Aug03 ? 00:00:47 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Former Nagios Employee
Re: NSClient - ERROR: Invalid password.
Hi,
Thanks for the reply. Just to clarify... Are you saying to kill off those processes from the UNIX side of Nagios and then restart the Nagios server itself?
If there anything that needs to be done on the Windows box?
Thanks
Thanks for the reply. Just to clarify... Are you saying to kill off those processes from the UNIX side of Nagios and then restart the Nagios server itself?
If there anything that needs to be done on the Windows box?
Thanks
Re: NSClient - ERROR: Invalid password.
Nope, just the linux side, since you have multiple configurations running (some with the old password / invalic configuration) then they're going to check with the wrong information.
Former Nagios Employee
Re: NSClient - ERROR: Invalid password.
OK Thanks...
So our procedure would be to kill the process and then restart the Nagios server?
Thanks so much in advance.
So our procedure would be to kill the process and then restart the Nagios server?
Thanks so much in advance.