(no subject)

Chris Ehlers Chris.Ehlers at Mosaic-UK.com
Fri Sep 13 17:59:02 CEST 2002



When I want to start nagios I get the following error message.

[root at stats cxxx]# /usr/local/nagios/bin/nagios -v
/usr/local/nagios/etc/nagios.cfg

Nagios 1.0b5
Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
Last Modified: 08-12-2002
License: GPL

Reading configuration data...

Error: Host 'mail.mdsuk.net' has already been defined

Error: Could not register host (config file
'/usr/local/nagios/etc/hosts.cfg', line 34)

***> One or more problems was encountered while processing the config
files...

     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.


I have the following hosts.cfg file
# Generic host definition template
define host{
        name                            generic-host    ; The name of this
host
template - referenced in other host definitions, used for template
recursion/res
olution
        notifications_enabled           1       ; Host notifications are
enabled
        event_handler_enabled           1       ; Host event handler is
enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information
acro
ss program restarts
        retain_nonstatus_information    1       ; Retain non-status
information
across program restarts

        register                        0       ; DONT REGISTER THIS
DEFINITION
- ITS NOT A REAL HOST, JUST A TEMPLATE!
        }

# 'host.name' host definition
define host{
        use                     generic-host            ; Name of host
template
to use

        host_name               host.name
        alias                   Mail
        address                 a.x.y.z
        check_command           check-host-alive
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r
        }



Christiaan Ehlers
Network Specialist
Mosaic UK
40 The Strand, London, WC2N 5HZ
Direct Dial: 0207925 8741
Fax: 0870 7368822
Email: chris.ehlers at mosaic-uk.com
www.mosaic.com

Real Solutions. Real Results



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list