TCP ping?

Marc Powell marc at ena.com
Thu Dec 4 18:35:33 CET 2003



> -----Original Message-----
> From: Fabien SEISEN [mailto:dakol at freesurf.fr]
> Sent: Thursday, December 04, 2003 4:38 AM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] TCP ping?
> 
> ktulu at net2000.com.au writes:
> 
> > Hi All,
> >
> > I have a situation that I'm sure many of you have some across before
- I
> have
> > several machines in a DMZ that does not allow ICMP packets.  I was
> wondering if
> > there is a plugin that allows "TCP pings" in the same manner that
nmap
> can
> > report a hosts status with:
> 
> i use a custom check_tcp:
> define command {
>         command_name check-tcp-host1
>         command_line $USER1$/check_tcp -H 127.0.0.1 -p 15004
> }
> 
> and check_command check-tcp-host1 in a "define host { }"

A more flexible way of doing this so you don't have to create custom
check commands for every port would look like --

define command {
	command name check-tcp
	command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
	}

define host {
	host_name foo
	yada yada
	yada yada
	address 127.0.0.1
	}

define service {
	host_name foo
	yada yada
	yada yada
	check_command check_tcp!15004
	}

--
Marc


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list