FAN - Fully Automated Nagios

1. FAN - Fully Automated Nagios

Cleber Aris Bacelar
madrugaPower

(usa Ubuntu)

Enviado em 15/12/2008 - 16:46h

Olá pessoal do vol!!!

Quero monitorar minha rede com o Nagios, e ouvi falar do FAN. Alguém da lista conhece/usa??
Eu instalei o mesmo, mas estou com dificuldades em adicionar máquinas. Se alguém der o "caminho das pedras" ficarem grato!!
abs


  


2. FAN

Thiago dos Santos
bogusrj

(usa CentOS)

Enviado em 25/03/2010 - 15:15h

Eu estou usando o Fan Nagios.

Eu já tinha o nagios instalado em outra máquina então foi só copiar os arquivos de configuração. Eu crio um arquivo para cada servidor e salvo na pasta /var/etc/nagios/servers habilitada dentro do nagios.cfg

Eu monitoro somente máquinas windows, vou colocar o exemplo dos meu arquivo windows.cfg que fica na pasta padrão /var/etc/nagios/objects e um arquivos de configuração do servidor, preste atenção nos detalhes e fica fácil de configurar

O arquivos Windows.cfg serve de exemplo para configuração dos servidores mas deixei apenas a definição de grupo nele e comentei todas as outroas linhas.

Server10.cfg


define host{
use windows-server ; Inherit default values from a template
host_name SERVER10
alias SERVER10 ; A longer name associated with the host
address 127.0.0.1(ip do server) ; IP address of the host
}

###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################


# Create a service for monitoring the version of NSCLient++ that is installed
# Change the host_name to match the name of the host you defined above

define service{
use generic-service
host_name SERVER10
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}



# Create a service for monitoring the uptime of the server
# Change the host_name to match the name of the host you defined above

define service{
use generic-service
host_name SERVER10
service_description Uptime
check_command check_nt!UPTIME
}



# Create a service for monitoring CPU load
# Change the host_name to match the name of the host you defined above

define service{
use generic-service
host_name SERVER10
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}

# Create a service for monitoring
# Change the host_name to match the name of the host you defined above

define service{
use generic-service
host_name SERVER10
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}



# Create a service for monitoring C:\ disk usage
# Change the host_name to match the name of the host you defined above

define service{
use generic-service
host_name SERVER10
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}

# Create a service for monitoring D:\ disk usage

define service{
use generic-service
host_name SERVER10
service_description D:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l d -w 80 -c 90
}



Windows.cfg

###############################################################################
# WINDOWS.CFG - SAMPLE CONFIG FILE FOR MONITORING A WINDOWS MACHINE
#
# Last Modified: 06-13-2007
#
# NOTES: This config file assumes that you are using the sample configuration
# files that get installed with the Nagios quickstart guide.
#
###############################################################################




###############################################################################
###############################################################################
#
# HOST DEFINITIONS
#
###############################################################################
###############################################################################

# Define a host for the Windows machine we'll be monitoring
# Change the host_name, alias, and address to fit your situation

#define host{
# use windows-server ; Inherit default values from a template
# host_name nagioshost ; The name we're giving to this host
# alias XP Teste ; A longer name associated with the host
# address 127.0.0.1 ; IP address of the host
# }




###############################################################################
###############################################################################
#
# HOST GROUP DEFINITIONS
#
###############################################################################
###############################################################################


# Define a hostgroup for Windows machines
# All hosts that use the windows-server template will automatically be a member of this group

define hostgroup{
hostgroup_name windows-servers ; The name of the hostgroup
alias Windows Servers ; Long name of the group
}




###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################


# Create a service for monitoring the version of NSCLient++ that is installed
# Change the host_name to match the name of the host you defined above

#define service{
# use generic-service
# host_name nagioshost
# service_description NSClient++ Version
# check_command check_nt!CLIENTVERSION
# }



# Create a service for monitoring the uptime of the server
# Change the host_name to match the name of the host you defined above

#define service{
# use generic-service
# host_name nagioshost
# service_description Uptime
# check_command check_nt!UPTIME
# }



# Create a service for monitoring CPU load
# Change the host_name to match the name of the host you defined above

#define service{
# use generic-service
# host_name nagioshost
# service_description CPU Load
# check_command check_nt!CPULOAD!-l 5,80,90
# }



# Create a service for monitoring
# Change the host_name to match the name of the host you defined above

#define service{
# use generic-service
# host_name nagioshost
# service_description Memory Usage
# check_command check_nt!MEMUSE!-w 80 -c 90
# }



# Create a service for monitoring C:\ disk usage
# Change the host_name to match the name of the host you defined above

#define service{
# use generic-service
# host_name nagioshost
# service_description C:\ Drive Space
# check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
# }



# Create a service for monitoring the W3SVC service
# Change the host_name to match the name of the host you defined above

#define service{
# use generic-service
# host_name nagioshost
# service_description W3SVC
# check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
# }
#


# Create a service for monitoring the Explorer.exe process
# Change the host_name to match the name of the host you defined above

#define service{
# use generic-service
# host_name nagioshost
# service_description Explorer
# check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
# }




3. \o/

Cleber Aris Bacelar
MadrugaPower

(usa Ubuntu)

Enviado em 26/03/2010 - 21:05h

Valeu bogusrj
Vou voltar a esse projeto e testar utilizando suas configurações como exemplo!!

abs


4. Re: FAN - Fully Automated Nagios

Fábio C Premoli
premoli

(usa Fedora)

Enviado em 03/01/2013 - 18:14h

Postei uma idéia em outra pergunta parecida, veja se ainda ajuda:

http://www.vivaolinux.com.br/topico/Redes/FAN-NAGIOS-ERRO-NAGVIS/?pagina=1

Usando o centreon é bem tranquilo.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts