Connection refused question
Assaf Flatto
assaf.flatto at ssp-intl.com
Tue Mar 3 10:47:04 CET 2009
Mark ,
first - please always post your questions to the list , you'll get faster answers and will share the
knowledge earned with other members .
As for your issue , see below :
> Background info:
> SSH Service: Reconfigure to non-standard port. 22 => 2270
> HTTPD Service: Reconfigure to non-standard port. 80 => 8080 (I've got
> multiple web servers on the LAN serving different purposes. Apache on
> the Nagios server, (this server is my sandbox) listens on port 8080.
>
> In the localhost.cfg file:
> =========================
> define host{
> use linux-server ; Name of host
> template to use
> ; This host
> definition will inherit all variables that are defined
> ; in (or
> inherited by) the linux-server host template definition.
> host_name localhost
> alias localhost
> address 127.0.0.1
> }
>
> define service{
> use local-service ; Name of
> service template to use
> host_name localhost
> service_description HTTP
> check_command check_http
> notifications_enabled 1
> }
>
> ==================
>
> in the services.cfg file
> ===============
> # 'check_http' command definition
> define command{
> command_name check_http
> command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
> }
since you define a command to wait a argument , you need to supply that in the command call in the
check execution - meaning in the declaration of the service .
so your service definition should be something like this :
define service{
use local-service ; Name of service template to use
host_name localhost
service_description HTTP
check_command check_http!$ARG1$
notifications_enabled 1
}
where $ARG!$ is the "-p 8080 " string you with to direct the HTTP request to .
Assaf
--
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE
IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.
We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.
Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.
Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.
Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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