[1116192157] Error: Host '1nx1' specified in service 'SMTP' not defined anywhere!

D.S. org_nagios at L93.com
Mon May 16 02:55:47 CEST 2005


I've tried to greatly simplify the sample configuration files that come
with nagios.. To this end I have only 1 sample host, and two services
that are monitored.  The problem is I get in the logs:


[1116192157] Nagios 1.2 starting... (PID=28945)
[1116192157] Error: Host '1nx1' specified in service 'SMTP' not defined
anywhere!
[1116192157] Warning: Contact group 'linux-admins' is not used in any
hostgroup/service definitions or host/hostgroup/service escalations!
[1116192157] Warning: Contact group 'nt-admins' is not used in any
hostgroup/service definitions or host/hostgroup/service escalations!
[1116192157] Warning: Contact group 'printer-admins' is not used in any
hostgroup/service definitions or host/hostgroup/service escalations!
[1116192157] Warning: Contact group 'router-admins' is not used in any
hostgroup/service definitions or host/hostgroup/service escalations!
[1116192157] Warning: Contact group 'switch-admins' is not used in any
hostgroup/service definitions or host/hostgroup/service escalations!
[1116192157] Bailing out due to errors encountered while running the
pre-flight check.  Run Nagios from the command line with the -v option
to verify your config before restarting. (PID=28945)

The host lnx1 is defined below in the hosts.cfg file?  I don't know
where else I should put it.. Any suggestions?

--David


-----------------------hosts.cfg
# Generic host definition template
define host{
        name                            generic-host    ; The name of
this host template - referenced in other host definitions,
used for template recursion/resolution
        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 across 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!
        }

# 'novell1' host definition
define host{
        use                     generic-host            ; Name of host
template to use
        host_name               lnx1
        alias                   Test Lnx Svr #1
        address                 192.168.1.1
        check_command           check-host-alive
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r
        }

----------------------services.cfg
define service{
        name                            generic-service ; The 'name' of
this service template, referenced in other service definitions
        active_checks_enabled           1       ; Active service checks
are enabled
        passive_checks_enabled          1       ; Passive service checks
are enabled/accepted
        parallelize_check               1       ; Active service checks
should be parallelized (disabling this can lead to major
performance problems)
        obsess_over_service             1       ; We should obsess over
this service (if necessary)
        check_freshness                 0       ; Default is to NOT
check service 'freshness'
        notifications_enabled           1       ; Service notifications
are enabled
        event_handler_enabled           1       ; Service 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 across program restarts
        retain_nonstatus_information    1       ; Retain non-status
information across program restarts

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



define service{
        use                             generic-service         ; Name
of service template to use

        host_name                       1nx1
        service_description             SMTP
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           3
        retry_check_interval            1
        contact_groups                  novell-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_smtp
        }


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

        host_name                       lnx1
        service_description             FTP
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  novell-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_ftp
        }



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&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