Nagios NSCA tunning

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vyacheslav.artyukhov
Posts: 3
Joined: Wed Jan 29, 2014 7:07 am

Nagios NSCA tunning

Post 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!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios NSCA tunning

Post 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?
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios NSCA tunning

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked