Page 1 of 1

Nagios XI VM NSCA problems

Posted: Mon Apr 27, 2015 4:50 am
by esendex
We are currently trying to get passive checks working with our NagiosXI downloaded VM appliance. The Nagios box does not seem to be running NSCA, or have it installed.

Trying to connect from a remote machine or localhost we get the same error;

Code: Select all

~$ echo "Testing 123" | /usr/sbin/send_nsca -H nagios.domainname -c /etc/send_nsca.cfg 
Connection refused or timed out
Error: Could not connect to host nagios.domainname on port 5667
There is no nsca process running on the Nagios box

Code: Select all

~]#  ps aux | grep nsca
root      9156  0.0  0.0 103244   872 pts/1    R+   17:33   0:00 grep nsca
There is nothing listening the nsca port 5667

This is the xinetd config

Code: Select all

service nsca
{
       	flags           = REUSE
        socket_type     = stream        
       	wait            = no
        user            = nagios
	group		= nagios
       	server          = /usr/local/nagios/bin/nsca
        server_args     = -c /usr/local/nagios/etc/nsca.cfg --inetd
       	log_on_failure  += USERID
        disable         = no
	only_from       = 127.0.0.1,192.168.3.1/24
}
We've tried installing nsca, but we get deps errors.

Code: Select all

~]# yum install nagios-nsca
Loaded plugins: fastestmirror, priorities
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.sov.uk.goscomb.net
 * epel: mirrors.coreix.net
 * extras: mirror.sov.uk.goscomb.net
 * rpmforge: www.mirrorservice.org
 * updates: mirrors.coreix.net
Resolving Dependencies
--> Running transaction check
---> Package nagios-nsca.x86_64 0:2.7.2-4.el6.rf will be installed
--> Processing Dependency: nagios-nsca-client for package: nagios-nsca-2.7.2-4.el6.rf.x86_64
--> Running transaction check
---> Package nagios-nsca-client.x86_64 0:2.7.2-4.el6.rf will be installed
--> Processing Conflict: nagiosxi-deps-2014r1.2-1.noarch conflicts nagios-nsca
--> Processing Conflict: nagiosxi-deps-2014r1.2-1.noarch conflicts nsca
--> Finished Dependency Resolution
Error: nagiosxi-deps conflicts with nagios-nsca-2.7.2-4.el6.rf.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
What should our next steps be?

Re: Nagios XI VM NSCA problems

Posted: Mon Apr 27, 2015 9:31 am
by jdalrymple
Have you followed the steps here:

Admin --> Check Transfers --> Inbound Transfers --> NSCA (tab)

Sorry, that's maybe not too clear in the interface, however there is good documentation for it:


http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

Re: Nagios XI VM NSCA problems

Posted: Mon Apr 27, 2015 9:44 am
by esendex
Yes we have checked that already and amended the only_from setting but there's nothing listening on this port once we restart xinetd?

Re: Nagios XI VM NSCA problems

Posted: Mon Apr 27, 2015 10:56 am
by lmiltchev
I believe the issue is caused by the fact that your IPs are comma separated. They need to be space separated. Change this:

Code: Select all

only_from       = 127.0.0.1,192.168.3.1/24
to this:

Code: Select all

only_from       = 127.0.0.1 192.168.3.1/24
and restart xinetd:

Code: Select all

service xinetd restart
Also, I am not sure why you are trying to install nsca. It's already installed in XI. This can only create issues...
Let us know if this helped.

Re: Nagios XI VM NSCA problems

Posted: Wed May 13, 2015 9:35 am
by esendex
Thanks for your suggestion.
This has indeed fixed our problem.

Jonathan

Re: Nagios XI VM NSCA problems

Posted: Wed May 13, 2015 9:48 am
by lmiltchev
I am glad I could help! :)