Connection refused by host"
Blake
blakes_email at yahoo.com
Thu Apr 1 21:03:29 CEST 2004
check your services.cfg again, your missing an 's' for
the command check_https
--- Levy <levym at bhphoto.com> wrote:
---------------------------------
Hi#160;
I'm monitoring HTTPS on our web servers, when runing
it via command line it works fine. But when runing it
through Nagios it gives me back "Connection refused by
host"
This is my services.cfg file:
# Service Definition HTTPS
define service{
#160;#160;#160;#160;#160;#160;#160;
use#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;
generic-service
#160;#160;#160;#160;#160;#160;#160;
host_name#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;
secure02
#160;#160;#160;#160;#160;#160;#160;
service_description#160;#160;#160;#160; HTTPS
#160;#160;#160;#160;#160;#160;#160;
is_volatile#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;
0
#160;#160;#160;#160;#160;#160;#160;
check_period#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;
24x7
#160;#160;#160;#160;#160;#160;#160;
max_check_attempts#160;#160;#160;#160;#160; 4
#160;#160;#160;#160;#160;#160;#160;
normal_check_interval#160;#160; 5
#160;#160;#160;#160;#160;#160;#160;
retry_check_interval#160;#160;#160; 1
#160;#160;#160;#160;#160;#160;#160;
contact_groups#160;#160;#160;#160;#160;#160;#160;#160;#160;
System_Group
#160;#160;#160;#160;#160;#160;#160;
notification_interval#160;#160; 240
#160;#160;#160;#160;#160;#160;#160;
notification_period#160;#160;#160;#160; 24x7
#160;#160;#160;#160;#160;#160;#160;
notification_options#160;#160;#160; n
#160;#160;#160;#160;#160;#160;#160;
check_command#160;#160;#160;#160;#160;#160;#160;#160;#160;#160;
check_http!/testme.html
this is the checkcommands.cfg file:
# 'check_https' command definition
define command{
#160;#160;#160;#160;#160;#160;#160;
command_name#160;#160;#160; check_https
#160;#160;#160;#160;#160;#160;#160;
command_line#160;#160;#160; $USER1$/check_http -H
$HOSTADDRESS$ -u $ARG1$ -S
When I run it in command line:
./check_http -H 000.000.000.000 -u testme.html -S#160;
This is what I will get HTTP ok: HTTP/1.1 200 OK
-#160;#160; 0.029 second response time |time=#160;
0.029
Nagios Version 1.2 - Plugins 1.3 - Red hat linux
9#160;#160;
-------------------------------------------------------This
SF.Net email is sponsored by: IBM Linux TutorialsFree
Linux tutorial presented by Daniel Robbins, President
and CEO ofGenToo technologies. Learn everything from
fundamentals to
systemadministration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click_______________________________________________Nagios-users
mailing
listNagios-users at lists.sourceforge.nethttps://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
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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