Check your host config for mail.myvest.com. Also when you do
check_http -H $HOSTADDRESS$
it's expecting the IP Address of the host that you gave in the host
config.
-Lori
-Original Message-
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of Julie S. Lin
Sent: Wednesday, February 15, 2006 10:54 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_http problems
Hi
i wish to enable check_http monitoring for my webmail server under
nagios 1.2 but
i get the following failure ..
[1140027855] SERVICE ALERT:
mail.myvest.com;HTTP;CRITICAL;SOFT;2;Connection refused by host
[1140027915] SERVICE ALERT:
mail.myvest.com;HTTP;CRITICAL;HARD;3;Connection refused by host
here is my services.cfg entry
define service{
use generic-service
host_name ns1, mail.myvest.com
service_description HTTP
is_volatile 0
check_period24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval1
contact_groups admin
notification_interval 120
notification_period 24x7
notification_optionsw,u,c,r
check_command check_http
}
here is my checkcommands.cfg entry (pretty default)
# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}
HOWEVER, here's the kicker, and why I'm asking for a little nudge in
the
right direction ..when I manually run the check it works! Any advice
would be
greatly appreciated.
[EMAIL PROTECTED] plugins]# ./check_http -H mail.myvest.com
HTTP ok: HTTP/1.1 200 OK - 0.003 second response time |time= 0.003
i can do it as any user and it works. and the ns1 http check is
working
fine.
---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Nagios-users mailing list
Nagios-users@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: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Nagios-users mailing list
Nagios-users@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