Nagios XI VM NSCA problems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
esendex
Posts: 10
Joined: Tue Apr 21, 2015 11:14 am

Nagios XI VM NSCA problems

Post 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?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios XI VM NSCA problems

Post 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
esendex
Posts: 10
Joined: Tue Apr 21, 2015 11:14 am

Re: Nagios XI VM NSCA problems

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI VM NSCA problems

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
esendex
Posts: 10
Joined: Tue Apr 21, 2015 11:14 am

Re: Nagios XI VM NSCA problems

Post by esendex »

Thanks for your suggestion.
This has indeed fixed our problem.

Jonathan
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI VM NSCA problems

Post by lmiltchev »

I am glad I could help! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked