Page 4 of 5

Re: NSClient Not Working

Posted: Wed Jul 17, 2019 2:00 pm
by mkeey
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]#

Re: NSClient Not Working

Posted: Wed Jul 17, 2019 2:18 pm
by tgriep
Please run all of the commands from my previous post on the Prod server.

Re: NSClient Not Working

Posted: Thu Jul 18, 2019 7:56 am
by mkeey
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

Posted: Thu Jul 18, 2019 12:27 pm
by tgriep
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 addr

Re: NSClient Not Working

Posted: Mon Jul 22, 2019 7:47 am
by mkeey
[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.

Re: NSClient Not Working

Posted: Mon Jul 22, 2019 9:39 am
by tgriep
That is strange, the plugin should output something.

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 $?
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

Re: NSClient Not Working

Posted: Tue Aug 06, 2019 7:56 am
by mkeey
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.

Re: NSClient Not Working

Posted: Tue Aug 06, 2019 10:06 am
by tgriep
In your example commands, the echo $? should be on a separate line or you can separate them with a semicolon.

Code: Select all

/usr/local/nagios/libexec/check_nt -H xxx.xxx.xxx.xxx -s "" -p 12489 -v CLIENTVERSION ; echo $?
I asked a question in the PM.

Re: NSClient Not Working

Posted: Wed Aug 07, 2019 2:59 pm
by mkeey
INI file and IP info sent via PM - MKeey

Re: NSClient Not Working

Posted: Wed Aug 07, 2019 4:50 pm
by tgriep
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?