Page 1 of 1

Disable NSCA and xinetd

Posted: Tue Sep 04, 2018 1:49 am
by monit_burb
Hi,

We do not use NSCA in our infrastructure and as part of a hardening project we are thinking about disabling NSCA and xinetd. I can see and nrpe xinetd service file but I don't this is being used as I tested disabling xinetd service and checks were still coming trough.

In there an official way for disable NSCA and xinetd? can both be safely disabled?

Re: Disable NSCA and xinetd

Posted: Tue Sep 04, 2018 12:43 pm
by npolovenko
Hello, @monit_burb. You should be able to open the NSCA configuration file under:
/etc/xinetd.d
And change:
disable = no
To:
disable = yes
Then run:
service xinetd restart
Or if you just want to stop the xinetd service you can run:
service xinetd stop

Re: Disable NSCA and xinetd

Posted: Wed Sep 05, 2018 4:45 am
by monit_burb
Hi npolovenko,

My question really is if its needed by NagiosXI? I disabled xinetd and saw that checks were still being processed so I guess is just there for legacy purpose.

Re: Disable NSCA and xinetd

Posted: Wed Sep 05, 2018 10:45 am
by npolovenko
@monit_burb, It's used by NSCA and NRPE. If you're not using either one of these feel free to turn it off. Nagios performance will not be affected.

Re: Disable NSCA and xinetd

Posted: Thu Sep 06, 2018 7:20 am
by monit_burb
Hi,

The think is that I do use NRPE but after turning the whole xinetd service off, checks were being processed anyway and that puzzled me.

Re: Disable NSCA and xinetd

Posted: Thu Sep 06, 2018 9:34 am
by npolovenko
@monit_burb, Sorry, I forgot to add that if you compiled the latest NRPE v3 from Source it will run as a standalone "Nagios" daemon and not under xinetd. Either way, NRPE is only used when you're collecting data on this particular server and sending it over to another server. If all you do is checking services on different remote servers, the local NRPE agent is not used.
93.png

Re: Disable NSCA and xinetd

Posted: Fri Sep 07, 2018 2:51 am
by monit_burb
HI,

Now I get that what might not work if I disable xinetd are the local checks of the Nagios server itself. I have NRPE 3.2.1 that was installed by the Nagios installer itself but I do not know if it was compiled from sources or the installer downloaded some .rpm from Nagios servers.

We have is a fresh install of nagiosXI 5.4 so I guess it was compiled from source during the install because I just tested to force check some local services with xinted service disabled and they do work.

Thank you for your support, fell free to close the post.