Connection refused question
Assaf Flatto
assaf.flatto at ssp-intl.com
Mon Mar 2 10:37:41 CET 2009
Mark
First - welcome the a world of wonder (meaning nagios) .
Second - the nagios install comes with a complete set of documentation you can access via the wen
interface .
And for your question - the file containing the definitions you are looking for is called either
commands.cfg or misccommnd.cfg , it resides in the etc directory of the nagios installation .
most likely you'll find a command called check_http with no parameters , that is because it is going
to the default ports , RTFM and made the modifications .
Good luck .
Assaf
On Saturday 28 February 2009 00:32:05 Mark Weaver wrote:
> Brian A. Seklecki wrote:
> >> My question is where in the nagios configuration do I change the setting
> >> so nagios knows what ports these two services are listening on?
> >
> > $ egrep -ir "check_(ssh|http)" in your {/usr/local,}/etc/nagios config
> > dir:
> >
> >
> > $ /usr/local/libexec/nagios/check_http -h|grep -i port
> > strings and regular expressions, check connection times, and report on
> > Usage: check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
> > Append a port to include it in the header (eg: example.com:5000)
> > -p, --port=INTEGER
> > Port number (default: 80)
> > Connect via SSL. Port defaults to 443
> > Minimum number of days a certificate has to be valid. Port defaults to
> > 443
> >
> >
> > $ /usr/local/libexec/nagios/check_ssh -h|grep -i port
> > Try to connect to an SSH server at specified server and port
> > Usage:check_ssh [-46] [-t <timeout>] [-r <remote version>] [-p <port>]
> > <host>
> > -p, --port=INTEGER
> > Port number (default: 22)
> >
> >
> > Adjust the templates as nessecary, or customize.
> >
> > Great books out there, too, eat em up!
> >
> > ~BAS
>
> Hi Brian,
>
> While I appreciate your reply I have absolutely no idea what you said.
> As I mentioned earlier I'm a complete noobie when it comes to Nagios.
> I.e. this is my first time ever exposure to this system. i've been all
> over the config file and I can't find anywhere where it would appear you
> could set the ports services run on for a given host.
>
> Do they even exist?
>
> Mark
>
> ---------------------------------------------------------------------------
>--- 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
--
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