Connection refused question
Mark Weaver
mweaver at compinfosystems.com
Sat Feb 28 01:32:05 CET 2009
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
More information about the Users
mailing list