NSClient - ERROR: Invalid password.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

NSClient - ERROR: Invalid password.

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NSClient - ERROR: Invalid password.

Post 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.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: NSClient - ERROR: Invalid password.

Post 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!
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NSClient - ERROR: Invalid password.

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: NSClient - ERROR: Invalid password.

Post 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
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NSClient - ERROR: Invalid password.

Post 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!!!!!
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: NSClient - ERROR: Invalid password.

Post 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!
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NSClient - ERROR: Invalid password.

Post 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?
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: NSClient - ERROR: Invalid password.

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NSClient - ERROR: Invalid password.

Post 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
Former Nagios Employee
Locked