check_http port argument

Ferrill, James james.ferrill at NEXTIRAONE.COM
Mon Nov 15 18:24:44 CET 2004


Hey Steve,

Here's one way you can do it.

In checkcommands.cfg, put this command:

# 'check_http_port' command definition
define command{
	command_name	check_http_port
	command_line	$USER1$/check_http -H $HOSTADDRESS$ -p $ARG1$
	}

In services.cfg, define your service to check with the port specified on the check_command line:

# Generic web site - HTTP service check
define service{
	use					generic-service		; Name of service template to use
	host_name				hosttocheck
	service_description		Generic Website
	is_volatile				0
	check_period			24x7
	max_check_attempts		3
	normal_check_interval		5
	retry_check_interval		1
	contact_groups			contact-admins
	notification_interval		120
	notification_period		24x7
	notification_options		w,u,c,r
	check_command			check_http_port!8080
	}

That should get you running.

James Ferrill
NextiraOne LLC


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Steve
OBrien
Sent: Monday, November 15, 2004 10:20 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_http port argument

I am trying to write a service check for http on a nonstandard port.  It
works from libexec as ./check http -H host -p 8080 but not from
services.cfg as check_http!-p 8080.  Does anyone know the syntax from the
services.cfg?

TIA,
Steve O'Brien

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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