Page 1 of 1

NSClient - ERROR: Invalid password.

Posted: Tue Jun 28, 2016 5:14 am
by Naveed
Hello,

My nagios was working fine with all added hosts and services,

Suddenly I have noticed that One service on all nodes start giving the below error.
Moreover I did not make any change in those nodes on which this is showing this alert.

Service state: Unknown state

NSClient - ERROR: Invalid password.

I am new at nagios xi, kindly do let me know the cause of this alert.

Thank you!

Re: NSClient - ERROR: Invalid password.

Posted: Tue Jun 28, 2016 10:19 am
by rkennedy
Please post the service definition for the service that's reporting this, the nsclient configuration file on the client side, and the nsclient log file as well. All of this will help us determine what's going on exactly.

Re: NSClient - ERROR: Invalid password.

Posted: Tue Jun 28, 2016 10:42 am
by Naveed
I am unable to edit the problematic service, as I started to edit it, it does not allow me to edit this.

Moreover I have checked it on nagios config file, its also not defined there in abc.cfg file.

I have attached screenshot and nsclient.ini file for review.

Thank you!

Re: NSClient - ERROR: Invalid password.

Posted: Tue Jun 28, 2016 1:43 pm
by lmiltchev
From the Nagios XI web UI, go to Configure->Core Config Manager->Services, find the "PRODAX01 AOS services" service, click on it, and show us a screenshot of the page.

Re: NSClient - ERROR: Invalid password.

Posted: Tue Jun 28, 2016 3:26 pm
by Naveed
Thank you

As per your suggestions, I did the same, as service is in unknown state thats why it is not showing in list of said host.

Kindly find attached screenshot for verification.

Please assist

Thank you

Re: NSClient - ERROR: Invalid password.

Posted: Tue Jun 28, 2016 3:49 pm
by rkennedy
You have two different passwords defined for the different service checks, please update these accordingly as this is why the one for AX02 is failing -

Code: Select all

define service {
	host_name	PRODAX02
	service_description	PRODAX02 AOS services
	display_name	PRODAX02 AOS services
	check_period	xi_timeperiod_24x7
	check_command	check_xi_service_nsclient!mydvBXDT40kGGf82!SERVICESTATE!-l AOS60\$01 -d SHOWALL!!!!!
	
	define service {
	host_name	PRODAX02
	service_description	PRODAX01 AOS services
	display_name	PRODAX01 AOS services
	check_period	xi_timeperiod_24x7
	check_command	check_xi_service_nsclient!yog1hD3tFg0nGxUt!SERVICESTATE!-l AOS60\$01 -d SHOWALL!!!!!

Re: NSClient - ERROR: Invalid password.

Posted: Tue Jun 28, 2016 4:05 pm
by Naveed
Good catch!

I have try to find this service in required file from Command line on nagios server.

But I did not find the problematic service in my .cfg file whereas other service which prodax02 AOS services exist in .cfg file.

This was the main problem due to which I was unable to find the problematic service.

Screenshots are attached.

Thank you!

Re: NSClient - ERROR: Invalid password.

Posted: Tue Jun 28, 2016 4:14 pm
by rkennedy
It may be worth getting in contact with whomever setup your Nagios initially, as I believe you're using templates for a few things which could be causing you some confusion at this point. The powerful thing about Nagios is that every machine can be setup differently, to needs that fit specifically for each environment.

Code: Select all

define hostgroup {
	hostgroup_name	Dutch DAX PROD Servers
	alias	Dutch DAX PROD Envirnament
	members	PRODSQL02,PRODSQL01,PRODRETAIL02,PRODRETAIL01,PRODeCOM01,PRODAX03,PRODAX02,PRODAX01,PRODASYNC01,JoieAzureDC01
	}
Do you have a template or service assigned to this hostgroup?

Re: NSClient - ERROR: Invalid password.

Posted: Wed Jun 29, 2016 10:02 am
by Naveed
Thank you very much!

No, We did not assigned any services template to hostgroup for monitoring?

I asked the concerned person, he does not even have Idea of it.

Kindly help!

Thank you!

Re: NSClient - ERROR: Invalid password.

Posted: Wed Jun 29, 2016 10:44 am
by rkennedy
Since this issue is resolved, I'm going to close it out. We can continue talking about the templates @ this post - https://support.nagios.com/forum/viewto ... =6&t=39091