check_dhcp problem

Andreas Ericsson ae at op5.se
Tue Oct 18 14:23:58 CEST 2005


Andreas Brandino wrote:
> hi all
> 
> 
> 
> in hosts.cfg:
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> define service{
> 
>         use                             generic-service        
>  ; Name of service template to use
> 
>         host_name                       gw
> 
>         service_description             DHCP
> 
>         is_volatile                     0
> 
>         check_period                    24x7
> 
>         max_check_attempts              3
> 
>         normal_check_interval           5
> 
>         retry_check_interval            1
> 
>         contact_groups                  linux-admins
> 
>         notification_interval           120
> 
>         notification_period             24x7
> 
>         notification_options            c,r
> 
>         check_command                   check_dhcp
> 
>         }
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> and i get this error:
> 
> 
> 
> Error: Service check command 'check_dhcp' specified in service 'DHCP'
>  for
> 
> host 'exc' not defined anywhere!
> 
> 


You need to specify the checkcommand for it. They are (by default) in 
checkcommands.cfg in your nagios configuration directory.

The answer is covered in detail in the documentation.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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