issues using check_http ..HELP!!

Jarrod FRIEDLAND jarrod.friedland at dhl.com
Wed Sep 1 04:15:05 CEST 2004


Hi All

Any help would be muchly appreciated.

I have recently installed nagios 1.2 on a RH9 box. I am trying to test a
proxy port ie 8080.

When I run at CLI ./check_http -H proxy.syd-co.au.dhl.com -p 8080

I get 

[root at aubnenms:/etc/nagios] /usr/lib/nagios/plugins/check_http -H
proxy.syd-co.au.dhl.com -p 8080
HTTP ok: HTTP/1.0 200 OK -   0.062 second response time |time=  0.062

Which tells me everything is working as in the cmd can be excuted and
returns the correct response. However below is an extract of my hosts.cfg
and services.cfg file as well as the output after running service nagions
restart.

Any lead in the right direction will be muchly appreciated.

What am I missing???????

<extract from services.cfg>

# Service definition
define service{
        use                             generic-service         ; Name of
service template to use

        host_name                       proxy.syd-co.au.dhl.com
        service_description             http
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  genadmin
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_http -H
proxy.syd-co.au.dhl.com -p 8080
      }

<extract from hosts.cfg>

# 'proxy.syd-co.au.dhl.com' host definition
define host{
        use                     generic-host            ; Name of host
template to use

        host_name               proxy.syd-co.au.dhl.com
        alias                   proxy
        address                 199.xxx.xxx.xxx
        check_command           check_http
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r
        }

<insert after running  service nagios restart>

Running configuration check...
Nagios 1.2
Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org)
Last Modified: 02-02-2004
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Error: Service check command 'check_http -H proxy.syd-co.au.dhl.com -p 8080'
specified in service 'http' for host 'proxy.syd-co.au.dhl.com' not defined
anywhere!
        Checked 4 services.
Checking hosts...
        Checked 3 hosts.
Checking host groups...
        Checked 3 host groups.
Checking contacts...
        Checked 1 contacts.
Checking contact groups...
        Checked 1 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking host group escalations...
        Checked 0 host group escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 22 commands.
Checking time periods...
        Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular service execution dependencies...
Checking global event handlers...
Checking obsessive compulsive service processor command...
Checking misc settings...

Total Warnings: 0
Total Errors:   1

***> One or more problems was encountered while running the pre-flight
check...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation on the main and host config files, as well as
the
     'Whats New' section to find out what has changed.

failed - aborting restart.



--
Regards,

Jarrod Friedland
Communications Analyst

DHL
Oceania Information Services

Phone: +61 (7) 3845 7777
Direct: +61 (7) 3845 7735
Fax: +61 (7) 3845 7979
*Mobile: 0401 500 134

* Mobile for international callers +61 401 500 134

E-mail: jarrod.friedland at dhl.com
WWW: http://www.dhl.com/


--------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DHL International.

Scanning of this message and addition of this footer is performed
by SurfControl SuperScout Email Filter software in conjunction with 
virus detection software.



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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