How to check nrpe service status/start/stop under xinetd?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikgali
Posts: 46
Joined: Thu Apr 07, 2016 9:18 am

How to check nrpe service status/start/stop under xinetd?

Post by srikgali »

can i know how to check nrpe agent start/stop/status, which is running under xinetd?
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: How to check nrpe service status/start/stop under xinetd

Post by avandemore »

Easiest way is use "netstat -plnt | grep 5666" it may require installing netstat depending on your distro/version.

Did this resolve your issue?
Previous Nagios employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to check nrpe service status/start/stop under xinetd

Post by lmiltchev »

If NRPE is running under xinetd, you can just check if xinetd is running.

Code: Select all

service xinetd status
Be sure to check out our Knowledgebase for helpful articles and solutions!
srikgali
Posts: 46
Joined: Thu Apr 07, 2016 9:18 am

Re: How to check nrpe service status/start/stop under xinetd

Post by srikgali »

Thanks for your reply, but i am not sure how to start/stop nrpe under xinetd.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to check nrpe service status/start/stop under xinetd

Post by lmiltchev »

To stop:

Code: Select all

service xinetd stop
To start:

Code: Select all

service xinetd start
To restart:

Code: Select all

service xinetd restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked