Page 1 of 1

Nagios NSCA tunning

Posted: Fri Feb 21, 2014 7:12 am
by vyacheslav.artyukhov
Good day! Could you help me config nsca agent?

I try to send messages from the client host (CentOS 6) to the nagios host (CentOS 6 also). I have nsca installed on the nagios host and nsca client installed in client machine.
I installed nagios-nsca-client-2.7.2-4.el6.rf.x86_64.rpm from this location: http://pkgs.repoforge.org/nagios-nsca/

The problem is following:

Code: Select all

$ echo -e "foo.example.com\ttest\t0\t0" | /usr/sbin/send_nsca -H 10.66.48.29 -c /etc/nagios/send_nsca.cfg
Error: Server closed connection before init packet was received
Error: Could not read init packet from server
On the client side, file /etc/nagios/send_nsca.cfg has default content i.e. a lot of commented rows and a row "encryption_method=1"

Thanks!

Re: Nagios NSCA tunning

Posted: Fri Feb 21, 2014 2:47 pm
by slansing
Can you post your nsca configuration file from the nagios server, and the remote host? Are they both running nsca 2.7.2-4?

Re: Nagios NSCA tunning

Posted: Fri Feb 21, 2014 2:50 pm
by lmiltchev
Did you enter the proper IP in the "only_from" line in the "/etc/xinetd.d/nsca"? Is port 5667 open? Have you tried running:

Code: Select all

nmap <remote box> -p 5667
Run the following command, and show us the output:

Code: Select all

tail -50 /var/log/messages