Windows monitoring nagios check_nt problem

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.
donKanon
Posts: 18
Joined: Wed Jun 08, 2016 4:38 pm

Re: Windows monitoring nagios check_nt problem

Post by donKanon »

the versión is NSCP-0.4.4.19-x64.

my service still get the error "NSClient - ERROR: Invalid password. " and like I said Again NSCLIENT doesn't have a password
Attachments
error.PNG
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Windows monitoring nagios check_nt problem

Post by rkennedy »

rkennedy wrote:From the command line of your Windows machine, please run this and post the full output -

Code: Select all

dir "C:\Program Files\NSClient++"
As there is no reference in your configuration file for a password, it shouldn't be requiring one. Do you know what version of NSClient++ you're running?
Please run this command as I first mentioned.

To add to this, please post the /usr/local/nagios/var/objects.cache file for us to look at as well.
Former Nagios Employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Windows monitoring nagios check_nt problem

Post by lmiltchev »

Run the following commands on the Windows server from the CMD prompt and show the output:

Code: Select all

ipconfig /all
tasklist | find "nscp"
dir "C:\Program Files\NSClient++"
Be sure to check out our Knowledgebase for helpful articles and solutions!
donKanon
Posts: 18
Joined: Wed Jun 08, 2016 4:38 pm

Re: Windows monitoring nagios check_nt problem

Post by donKanon »

Here are the result of the commands I attach it on the this post.

about the cache object I can't find what ask me for.
Attachments
not_found.PNG
ns dir.PNG
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Windows monitoring nagios check_nt problem

Post by lmiltchev »

On the Nagios server run:

Code: Select all

grep objects.cache /usr/local/nagios/etc/nagios.cfg
and show the output (change the path to the config file if necessary).

Try to locate the file by running:

Code: Select all

updatedb
locate "objects.cache"
or

Code: Select all

find / -name "objects.cache"
On the Windows machine run:

Code: Select all

ipconfig /all
and display the output.
Be sure to check out our Knowledgebase for helpful articles and solutions!
donKanon
Posts: 18
Joined: Wed Jun 08, 2016 4:38 pm

Re: Windows monitoring nagios check_nt problem

Post by donKanon »

I find the file is in this post the two of them that you ask.

thx for the your support :)
Attachments
objects.cache.txt
(302.54 KiB) Downloaded 244 times
IP_config_all.PNG
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Windows monitoring nagios check_nt problem

Post by rkennedy »

Looking at your DC-02 host, what is the output of this command from the CLI on Nagios? /usr/local/nagios/check_nt -H 10.30.1.80 -p 12489 -v USEDDISKSPACE -l c -w 90 -c 80 (might be /usr/lib/nagios/check_nt -H 10.30.1.80 -p 12489 -v USEDDISKSPACE -l c -w 90 -c 80 in your case.)
Former Nagios Employee
donKanon
Posts: 18
Joined: Wed Jun 08, 2016 4:38 pm

Re: Windows monitoring nagios check_nt problem

Post by donKanon »

the same error that always invalid password but mi NSCLIENT++ configuration DOESN'T have a password :(
Attachments
error1.PNG
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Windows monitoring nagios check_nt problem

Post by rkennedy »

Can you completely uninstall NSClient++, and re-install? At this point, there is nothing that explains what you're seeing, or where the password is saved. From what I can tell, everything is setup correctly except NSClient++ isn't accepting the password. Is there an old process of it running by any chance?
Former Nagios Employee
donKanon
Posts: 18
Joined: Wed Jun 08, 2016 4:38 pm

Re: Windows monitoring nagios check_nt problem

Post by donKanon »

I did it and the result is the same still says "invalid password" . I compare the configuration with and old copy of nagios from my backups ( virtual machine ) and works without problem. could be this error about a SSL key or something like that?
Locked