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

Windows monitoring nagios check_nt problem

Post by donKanon »

hello guys

I hope you can help me , my problem is with de check_nt. this problem is very confusing because I have server with windows and the nsclient configurated without password and every time that I tried to check services like disk space , mem or CPU load nagios only show me 2 things

"missin parameters -l " conection refuse

this server am doing it from new all new so I don't know what more to do. I upload pics and configuration maybe you can help me.

thanks.
Attachments
nsclient.ini
(7.1 KiB) Downloaded 308 times
nagios error2.PNG
nagios error1.PNG
nagios error1.PNG (21.79 KiB) Viewed 3876 times
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 »

Can you post the configs of the "check_nt" command and failing services?
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 »

lmiltchev wrote:Can you post the configs of the "check_nt" command and failing services?
I attach them on the post but is kind of this:

##SERVICE
define service{
use generic-service
host_name App_Produccion,
service_description C DRIVE.
check_command check_nt!USEDDISKSPACE!-l c -w 90 -c 80

}
NT.CFG

define command {
command_name check_nt
command_line /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -v '$ARG1$'
}


# 'check_nscp' command definition
define command {
command_name check_nscp
command_line /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p 12489 -v '$ARG1$'
}


I hope you can help me thx!
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 »

Change this:

Code: Select all

define command {
command_name check_nt
command_line /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -v '$ARG1$'
}
to this:

Code: Select all

define command {
command_name check_nt
command_line /usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS$ -v $ARG1$ $ARG2$
}
verify configuration, and if there are no errors, restart nagios.
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 »

Hello friend I did it! and the unknown error disappear but the problem about "connection" refuse is sitll on :( like I said before my NSCLIENT++ doesn't have a password and still give me this error. I debug one server and says:

"2016-06-08 14:31:01: e:..\..\..\..\trunk\modules\NSClientServer\NSClientServer.cpp:254: Invalid password (Ninguno)." I attach my nsclient.ini . ON NAGIOS I check the command and says the same:

"/check_nt -H 10.30.1.191 -p 12489 -v USEDDISKSPACE -d SHOWALL -l c
NSClient - ERROR: Invalid password. "

thx.
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 »

Are you sure that the "nsclient.ini" file you uploaded is from the "10.30.1.191" machine? Can you verify?

Also, if you used to have a password set up in the "nsclient.ini", then removed it, you must restart the NSClient++ service on the Windows server, so that changes can take effect.
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 »

yes that's nsclient.ini from that server. and I did what you say many times (start - storp nsclient service). The nsclient is configurated to not used password.

I don't know what to do about it.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Windows monitoring nagios check_nt problem

Post by Box293 »

Is there an NSC.ini file as well?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
donKanon
Posts: 18
Joined: Wed Jun 08, 2016 4:38 pm

Re: Windows monitoring nagios check_nt problem

Post by donKanon »

I attach it again. can you check it
Attachments
nsclient.ini
(7.1 KiB) Downloaded 339 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Windows monitoring nagios check_nt problem

Post by rkennedy »

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