Page 2 of 3
Re: Having Trouble With Window Check Disk and Memory
Posted: Mon Aug 28, 2017 2:45 pm
by bolson
Try this from the command line on your XI server:
Code: Select all
/usr/local/nagios/libexec/check_nt -H 192.168.57.12 -v USEDDISKSPACE -l c -w 90 -c 95 -p 12489
Re: Having Trouble With Window Check Disk and Memory
Posted: Wed Aug 30, 2017 10:44 am
by rnadon
I believe this has to do with permissions on the client side. But I am new and not sure how to find out which user Nagios is using to connect. Any help on that?
Re: Having Trouble With Window Check Disk and Memory
Posted: Wed Aug 30, 2017 10:50 am
by bolson
Post the result of this command run from the CLI on the NagiosXI server:
Code: Select all
/usr/local/nagios/libexec/check_nt -H 192.168.57.12 -v USEDDISKSPACE -l c -w 90 -c 95 -p 12489
Re: Having Trouble With Window Check Disk and Memory
Posted: Wed Aug 30, 2017 11:02 am
by rnadon
https://support.nagios.com/forum/viewto ... =7&t=24914 seems to be my exact problem but I am struggling fixing it...
Re: Having Trouble With Window Check Disk and Memory
Posted: Wed Aug 30, 2017 11:39 am
by bolson
Please post the result of the following command:
Code: Select all
/usr/local/nagios/libexec/check_nt -H 192.168.57.12 -v USEDDISKSPACE -l c -p 12489
Re: Having Trouble With Window Check Disk and Memory
Posted: Wed Aug 30, 2017 1:49 pm
by rnadon
I tried that exact command and am getting:
[root@eng-nagiosxi local]# /usr/local/nagios/libexec/check_nt -H 192.168.57.12 -v USEDDISKSPACE -l c -p 12489
CRITICAL - Socket timeout after 10 seconds
I have also added a -t 30 and got: CRITICAL - Socket timeout after 30 seconds
Re: Having Trouble With Window Check Disk and Memory
Posted: Wed Aug 30, 2017 1:52 pm
by rnadon
I assume from the server as I do not have a check_nt on the client. I have check_nrpe and nscp, but no check_nt that I can see.
Re: Having Trouble With Window Check Disk and Memory
Posted: Wed Aug 30, 2017 2:28 pm
by bolson
What is the IP address of the windows host you are monitoring? Please replace 192.168.57.12 with that IP address and report your result.
Re: Having Trouble With Window Check Disk and Memory
Posted: Wed Aug 30, 2017 4:34 pm
by rnadon
Before things go up the wrong direction, that was the incorrect IP from the system I am using this command
[root@eng-nagiosxi nagios]# /usr/local/nagios/libexec/check_nt -H 172.16.0.125 -v USEDDISKSPACE -l c -p 12489
No data was received from host!
could not fetch information from server
Re: Having Trouble With Window Check Disk and Memory
Posted: Thu Aug 31, 2017 7:44 am
by bheden
Just as a quick bump - I've actually got this reproduced on my end.
I can't even run ./check_nt -v CLIENTVERSION.
I'll be spending a bit of time towards a resolution - but in the meantime, can you operate NSClient++ in test mode for verification on your end?
Open a cmd prompt as administrator and run the following:
Code: Select all
cd "C:\Program Files\NSClient++"
net stop nscp
nscp test