
 
		
		
    
-  Erro no nagios
 
	
	
 
 
 
		
			
	+ Responder ao Tópico
	
	
	
	
	
	
		
			
- 
	
	
		
		
			
				
				
				
					
 Erro no nagios
				
				
						
							
							
						
						
				
					
						
							Ae galera, estou usando de base:
https://under-linux.org/modules.php?...ticle&sid=4519 e
https://under-linux.org/modules.php?...ticle&sid=4415
Configurei os arquivos de forma mais simples e enxuta
Qdo tento subir o serviço, dá um erro:
Error: Template 'generic-host' specified in host definition could not be not found (config file '/etc/nagios/hosts.cfg', line 1)
O conteúdo do arquivos segue abaixo
cat hostgroups.cfg
# 'gwin2003' host group definition
define hostgroup{
        hostgroup_name  servidores
        alias           servers
        contact_groups  admin_win2003
        members         w3k
        }
cat hosts.cfg
define host{
        use                     generic-host
        host_name               nccserver
        alias                   w3k
        address                 10.10.0.1
        check_command           check-host-alive
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r
        }
cat contactgroups.cfg
define contactgroup{
        contactgroup_name       admin_2003
        alias                   Administrador Win2003
        members                 whinston
        }
cat contacts.cfg
define contact{
        contact_name                    whinston
        alias                           whinston
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-email,notify-by-epager
        host_notification_commands      host-notify-by-email,host-notify-by-epager
        email                           [email protected]
        pager                           [email protected]ldomain
        }
						
					 
					
				 
			 
			
			
		 
	 
		
	
 
- 
	
	
		
		
			
				
				
				
					
 resposta
				
				
						
						
							
						
				
					
						
							vc teria que criar o arquivo hosts.cfg em /etc/nagios/
ex.:/etc/nagios/hosts/cfg
ele da esse erro porque ele nao axa esse arquivo nesse diretorio!!!! 
Espero que tenha resolvido.
Abracoo!!!