check_tcp error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
harsha.s.aryan
Posts: 52
Joined: Fri Nov 13, 2015 9:05 am

check_tcp error

Post by harsha.s.aryan »

hi please help me to monitor ports in Nagios

server.cfg (in Server)

#Service definition - Swap usage
define service{
use generic-service ; Name of service template to use
host_name 3DS-APP10_53.10
service_description acs-app1-enroll-n1
check_command check_nrpe!check_tcp!8580
}

nrpe.cfg (in client)

command[check_tcp]=/usr/lib/nagios/plugins/check_tcp -H 10.x.x.x -w 1 -c 2 -p $ARG1$

error in webconsole:-
Current Status:
UNKNOWN
(for 0d 0h 4m 24s)
Status Information: Usage:
check_tcp -H host -p port [-w <warning time>] [-c <critical time>] [-s <send string>]
[-e <expect string>] [-q <quit string>][-m <maximum bytes>] [-d <delay>]
[-t <timeout seconds>] [-r <refuse state>] [-M <mismatch state>] [-v] [-4
Performance Data: -6] [-j] [-D <warn days cert expire>[,<crit days cert expire>]] [-S <use SSL>] [-E]
Regards,
Harsha
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_tcp error

Post by rkennedy »

On the client, try configure the dont_blame_nrpe option in nrpe.cfg -

Code: Select all

dont_blame_nrpe=1
Former Nagios Employee
Locked