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
Passive check for service
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Passive check for service
A default is listed in the NRDS Config Manager in XI, but for a CentOS machine you can use this for the host
The irony is, using NRDS, if you get results the host is probably up because this would be necessary for the results to send
Code: Select all
command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1-
RobertWebb
- Posts: 13
- Joined: Wed May 11, 2016 1:30 pm
Re: Passive check for service
scottwilkerson wrote:A default is listed in the NRDS Config Manager in XI, but for a CentOS machie you can use this for the hostThe irony is, using NRDS, if you get results the host is probably up because this would be necessary for the results to sendCode: Select all
command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
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
I honestly think the question changed..
Here is information on checking services with NCPA
https://www.nagios.org/ncpa/help.php#ap ... s-services
Here is information on checking services with NCPA
https://www.nagios.org/ncpa/help.php#ap ... s-services
-
RobertWebb
- Posts: 13
- Joined: Wed May 11, 2016 1:30 pm
Re: Passive check for service
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
Yes it does, we have packaged that with our NRPE XI Linux AgentRobertWebb wrote:Also, the check_init_service works great for checking the status of a specific service. At least under RHEL 7 with systemctl.