Page 1 of 1

check_tcp error

Posted: Wed Nov 18, 2015 1:38 am
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]

Re: check_tcp error

Posted: Wed Nov 18, 2015 10:55 am
by rkennedy
On the client, try configure the dont_blame_nrpe option in nrpe.cfg -

Code: Select all

dont_blame_nrpe=1