Page 1 of 1

Passive check for service

Posted: Wed Mar 07, 2018 11:27 am
by twalters2
Im using NRDS and NCPA to passive checks on a remote fleet. Im having trouble creating a check in the nrdp.cfg that allows me to see if the service is up or down. Can you help with the syntax that should go in the nrdp.cfg file?, for checking a specific service on a Linux machine.

Passive device
centos7

Re: Passive check for service

Posted: Wed Mar 07, 2018 12:27 pm
by scottwilkerson
A default is listed in the NRDS Config Manager in XI, but for a CentOS machine you can use this for the host

Code: Select all

command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
The irony is, using NRDS, if you get results the host is probably up because this would be necessary for the results to send

Re: Passive check for service

Posted: Wed Apr 04, 2018 8:35 am
by RobertWebb
scottwilkerson wrote:A default is listed in the NRDS Config Manager in XI, but for a CentOS machie you can use this for the host

Code: Select all

command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
The irony is, using NRDS, if you get results the host is probably up because this would be necessary for the results to send

I believe he is looking for a service check not a ping check. So something like check_services to see if sshd is running. I am trying to set this up myself but am getting error messages from check_services which I will start a different post about.

Re: Passive check for service

Posted: Wed Apr 04, 2018 8:39 am
by scottwilkerson
I honestly think the question changed..

Here is information on checking services with NCPA
https://www.nagios.org/ncpa/help.php#ap ... s-services

Re: Passive check for service

Posted: Wed Apr 04, 2018 9:35 am
by RobertWebb
scottwilkerson wrote:I honestly think the question changed..

Here is information on checking services with NCPA
https://www.nagios.org/ncpa/help.php#ap ... s-services

Understood...

Also, the check_init_service works great for checking the status of a specific service. At least under RHEL 7 with systemctl.

Re: Passive check for service

Posted: Wed Apr 04, 2018 9:42 am
by scottwilkerson
RobertWebb wrote:Also, the check_init_service works great for checking the status of a specific service. At least under RHEL 7 with systemctl.
Yes it does, we have packaged that with our NRPE XI Linux Agent