LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-02-2018, 11:04 PM   #1
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Rep: Reputation: Disabled
Nagios question


# NSCAHOST = Nagios Host

NSCAHOST=10.1.100.101

# /usr/sbin/send_nsca -H $NSCAHOST -c /etc/nagios/send_nsca.cfg

Error: Timeout after 10 seconds



When the above works, as above it times out after 10 seconds on a Nagios client which is expected.



But on a different client it fails with following message.

# /usr/sbin/send_nsca -H $NSCAHOST -c /etc/nagios/send_nsca.cfg

Error: Server closed connection before init packet was received

Error: Could not read init packet from server



What am I missing here ?
 
Old 10-03-2018, 10:06 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Firewall blocking the second client's IP from reaching NSCAHOST on the appropriate port?

Are both clients in the same subnet?

Are you sure the second client is using the interface outbound that you think it is?
 
Old 11-08-2018, 06:31 PM   #3
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Original Poster
Rep: Reputation: Disabled
Later I fixed it by adding client ip in nagios-host:/etc/xinetd.d/nsca file and then restarting xinetd.

''only_from = 127.0.0.1 10.1.100.100 ....''
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios Question fbexec Linux - Software 1 05-31-2012 01:34 PM
Question about nagios aocferreira Linux - Server 3 02-24-2011 05:23 AM
Nagios Question penguin09 Linux - Server 20 01-21-2010 02:38 PM
Nagios question jdimalanta Linux - Software 2 04-04-2009 09:54 AM
Nagios Question? helptonewbie Linux - Software 0 04-22-2008 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration