Passive check for service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
twalters2
Posts: 6
Joined: Wed Sep 06, 2017 10:08 am

Passive check for service

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Passive check for service

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
RobertWebb
Posts: 13
Joined: Wed May 11, 2016 1:30 pm

Re: Passive check for service

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Passive check for service

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
RobertWebb
Posts: 13
Joined: Wed May 11, 2016 1:30 pm

Re: Passive check for service

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Passive check for service

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked