NSClient Not Working
Re: NSClient Not Working
PROD
login as: MARTY
MARTY@PRODXI's password:
Last login: Mon Jul 15 08:59:39 2019 from 10.188.197.50
[MARTY@PRODXI]:[/home/MARTY]# dzdo /bin/su - NAGIOSUSER
[dzdo] password for MARTY:
Last login: Mon Jul 15 08:59:58 EDT 2019 on pts/0
[NAGIOSUSER@PRODXI]:[/home/NAGIOSUSER]# cd /usr/local/nagios/libexec
[NAGIOSUSER@PRODXI]:[/usr/local/nagios/libexec]# ./check_nt -H 000.00.0.000 -s "" -p 12489 -v CLIENTVERSION
[NAGIOSUSER@PRODXI]:[/usr/local/nagios/libexec]#
TEST
login as: MARTY
u070168@TESTXI's password:
Last login: Thu Jun 20 15:18:21 2019 from 10.188.197.50
[MARTY@TESTXI]:[/home/MARTY]# dzdo /bin/su - NAGIOSUSER
[dzdo] password for MARTY:
Last login: Mon Jun 24 09:45:58 EDT 2019 on pts/0
[NAGIOSUSER@TESTXI]:[/home/NAGIOSUSER]# cd /usr/local/nagios/libexec
[NAGIOSUSER@TESTXI]:[/usr/local/nagios/libexec]# ./check_nt -H 000.00.0.000 -s "" -p 12489 -v CLIENTVERSION
NSClient++ 0.4.4.23 2016-04-05
[NAGIOSUSER@TESTXI]:[/usr/local/nagios/libexec]#
login as: MARTY
MARTY@PRODXI's password:
Last login: Mon Jul 15 08:59:39 2019 from 10.188.197.50
[MARTY@PRODXI]:[/home/MARTY]# dzdo /bin/su - NAGIOSUSER
[dzdo] password for MARTY:
Last login: Mon Jul 15 08:59:58 EDT 2019 on pts/0
[NAGIOSUSER@PRODXI]:[/home/NAGIOSUSER]# cd /usr/local/nagios/libexec
[NAGIOSUSER@PRODXI]:[/usr/local/nagios/libexec]# ./check_nt -H 000.00.0.000 -s "" -p 12489 -v CLIENTVERSION
[NAGIOSUSER@PRODXI]:[/usr/local/nagios/libexec]#
TEST
login as: MARTY
u070168@TESTXI's password:
Last login: Thu Jun 20 15:18:21 2019 from 10.188.197.50
[MARTY@TESTXI]:[/home/MARTY]# dzdo /bin/su - NAGIOSUSER
[dzdo] password for MARTY:
Last login: Mon Jun 24 09:45:58 EDT 2019 on pts/0
[NAGIOSUSER@TESTXI]:[/home/NAGIOSUSER]# cd /usr/local/nagios/libexec
[NAGIOSUSER@TESTXI]:[/usr/local/nagios/libexec]# ./check_nt -H 000.00.0.000 -s "" -p 12489 -v CLIENTVERSION
NSClient++ 0.4.4.23 2016-04-05
[NAGIOSUSER@TESTXI]:[/usr/local/nagios/libexec]#
Last edited by mkeey on Mon Jul 22, 2019 7:40 am, edited 1 time in total.
Re: NSClient Not Working
Please run all of the commands from my previous post on the Prod server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NSClient Not Working
Would you please remind me what commands you are requesting that I run on the PROD servers? I looked back at the last couple of posts and all I saw were changes to the INI file. Thank you.
Re: NSClient Not Working
These are the commands I need you to run on the Prod server.
Code: Select all
/usr/local/nagios/libexec/check_nt -V
/usr/local/nagios/libexec/check_nt -H xxx.xxx.xxx.xxx -s "" -p 12489 -v CLIENTVERSION
ip addrBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: NSClient Not Working
[nagiosxi@PROD]:[/usr/local/nagios/libexec]# ./check_nt -V
check_nt v2.2.1 (nagios-plugins 2.2.1)
[nagiosxi@PROD]:[/usr/local/nagios/libexec]# ./check_nt -H 000.00.0.000 -s "" -p 12489 -v CLIENTVERSION
[nagiosxi@PROD]:[/usr/local/nagios/libexec]#
Same results as always. Just an empty response.
check_nt v2.2.1 (nagios-plugins 2.2.1)
[nagiosxi@PROD]:[/usr/local/nagios/libexec]# ./check_nt -H 000.00.0.000 -s "" -p 12489 -v CLIENTVERSION
[nagiosxi@PROD]:[/usr/local/nagios/libexec]#
Same results as always. Just an empty response.
Re: NSClient Not Working
That is strange, the plugin should output something.
Try running all of the following commands on the PROD server and post the output.
After running those commands, get the C:\Program Files\NSClient++\nsclient.log file from the Windows server and post or PM me the full log file.
Thanks
Try running all of the following commands on the PROD server and post the output.
Code: Select all
/usr/local/nagios/libexec/check_nt -H xxx.xxx.xxx.xxx -s "" -p 12489 -v CLIENTVERSION
echo $?
/usr/local/nagios/libexec/check_nt -H xxx.xxx.xxx.xxx -s "" -p 12489 -v UPTIME
echo $?Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NSClient Not Working
My apologies for the excessive delay. Lot's going on at work! Finally got to issue the echo commands you requested...
[nagios@NAGIOSXI]:[/home/nagios]# cd /usr/local/nagios/libexec/
[nagios@NAGIOSXI]:[/usr/local/nagios/libexec]# ./check_nt -H 10.000.00.0 -s "" -p 12489 -v CLIENTVERSION echo $?
[nagios@NAGIOSXI]:[/usr/local/nagios/libexec]# ./check_nt -H 10.000.00.0 -s "" -p 12489 -v UPTIME echo $?
System Uptime - 0 day(s) 0 hour(s) 0 minute(s) |uptime=0
[nagios@NAGIOSXI]:[/usr/local/nagios/libexec]#
I also sent a PM containing the nsclient.log for the remote host referenced as "10.000.00.0" in the above commands.
[nagios@NAGIOSXI]:[/home/nagios]# cd /usr/local/nagios/libexec/
[nagios@NAGIOSXI]:[/usr/local/nagios/libexec]# ./check_nt -H 10.000.00.0 -s "" -p 12489 -v CLIENTVERSION echo $?
[nagios@NAGIOSXI]:[/usr/local/nagios/libexec]# ./check_nt -H 10.000.00.0 -s "" -p 12489 -v UPTIME echo $?
System Uptime - 0 day(s) 0 hour(s) 0 minute(s) |uptime=0
[nagios@NAGIOSXI]:[/usr/local/nagios/libexec]#
I also sent a PM containing the nsclient.log for the remote host referenced as "10.000.00.0" in the above commands.
Re: NSClient Not Working
In your example commands, the echo $? should be on a separate line or you can separate them with a semicolon.
I asked a question in the PM.
Code: Select all
/usr/local/nagios/libexec/check_nt -H xxx.xxx.xxx.xxx -s "" -p 12489 -v CLIENTVERSION ; echo $?Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NSClient Not Working
INI file and IP info sent via PM - MKeey
Re: NSClient Not Working
I got the data and shared it with the other techs,
Bad news is that I did not see that IP address in the nsclient.log file so run the test again and check the nsclient.log file right away to see what errors are in it.
Another question, is there some sort of device filtering traffic to NATing the IP addresses?
Bad news is that I did not see that IP address in the nsclient.log file so run the test again and check the nsclient.log file right away to see what errors are in it.
Another question, is there some sort of device filtering traffic to NATing the IP addresses?
Be sure to check out our Knowledgebase for helpful articles and solutions!