Windows monitoring nagios check_nt problem
Windows monitoring nagios check_nt problem
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.
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 error1.PNG (21.79 KiB) Viewed 3880 times
Re: Windows monitoring nagios check_nt problem
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!
Re: Windows monitoring nagios check_nt problem
I attach them on the post but is kind of this:lmiltchev wrote:Can you post the configs of the "check_nt" command and failing services?
##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!
Re: Windows monitoring nagios check_nt problem
Change this:
to this:
verify configuration, and if there are no errors, restart nagios.
Code: Select all
define command {
command_name check_nt
command_line /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -v '$ARG1$'
}Code: Select all
define command {
command_name check_nt
command_line /usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS$ -v $ARG1$ $ARG2$
}Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Windows monitoring nagios check_nt problem
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.
"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.
Re: Windows monitoring nagios check_nt problem
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.
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!
Re: Windows monitoring nagios check_nt problem
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.
I don't know what to do about it.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Windows monitoring nagios check_nt problem
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.
Re: Windows monitoring nagios check_nt problem
I attach it again. can you check it
- Attachments
-
nsclient.ini- (7.1 KiB) Downloaded 339 times
Re: Windows monitoring nagios check_nt problem
From the command line of your Windows machine, please run this and post the full output -
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?
Code: Select all
dir "C:\Program Files\NSClient++"
Former Nagios Employee