nsca debugging
Posted: Wed Jul 13, 2011 12:32 pm
I'm trying to get NSCA working, and could use some advice on debugging.
On our Nagios XI 2011R1.2 server (Centos 5.5), I've followed the "Nagios XI - Using the NSCA Addon" guide to configure NSCA.
In /etc/xinetd.d/nsca, I commented out "only_from".
In nsca.cfg, I've got "debug=1", "password" commented out, and "decryption_method=0".
In send_nsca.cfg, I've got "password" commented out, and "decryption_method=0".
"telnet localhost 5667" shows the port open, but gets a gibberish response.
"send_nsca -H localhost -c send_nsca.cfg < test.txt", where test.txt is "localhost TestMessage 0 Testing" (tab separated), writes to syslog, showing Xinetd receiving the request, passing it to nsca, the parsed Service Check that matches test.txt, and an error-free exit.
"tail -f" on nagios.cmd never shows any activity, though.
Moving over to a Solaris 9 Sparc client, I can ping the XI server, but "telnet <XI Server's IP> 5667" just hangs.
Using the same send_nsca.cfg and test.txt, "send_nsca -H <XI Server IP> -c send_nsca.cfg < test.txt" just times out after 10 seconds, with no entry in the Client or Server's syslog files.
The only thing I can think of is that port 5667 is somehow still blocked. Any ideas?
Thanks....Lyle
On our Nagios XI 2011R1.2 server (Centos 5.5), I've followed the "Nagios XI - Using the NSCA Addon" guide to configure NSCA.
In /etc/xinetd.d/nsca, I commented out "only_from".
In nsca.cfg, I've got "debug=1", "password" commented out, and "decryption_method=0".
In send_nsca.cfg, I've got "password" commented out, and "decryption_method=0".
"telnet localhost 5667" shows the port open, but gets a gibberish response.
"send_nsca -H localhost -c send_nsca.cfg < test.txt", where test.txt is "localhost TestMessage 0 Testing" (tab separated), writes to syslog, showing Xinetd receiving the request, passing it to nsca, the parsed Service Check that matches test.txt, and an error-free exit.
"tail -f" on nagios.cmd never shows any activity, though.
Moving over to a Solaris 9 Sparc client, I can ping the XI server, but "telnet <XI Server's IP> 5667" just hangs.
Using the same send_nsca.cfg and test.txt, "send_nsca -H <XI Server IP> -c send_nsca.cfg < test.txt" just times out after 10 seconds, with no entry in the Client or Server's syslog files.
The only thing I can think of is that port 5667 is somehow still blocked. Any ideas?
Thanks....Lyle