Servidor de monitoramento Nagios
Imagine poder monitorar todos seus servidores, clientes, impressoras, roteadores e switches em um único servidor e serviço. Receber relatórios por e-mail, celular, bem como saber quantas vezes um servidor ficou fora do ar e voltou a funcionar.
Parte 6: Arquivo windows.cfg
Neste arquivo você configura para monitorar máquinas Windows na rede, a sintaxe é idêntica ao arquivo anterior, com suas devidas seções.
# HOST DEFINITIONS - Define o nome, alias, ip.
# 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(NÃO ALTERE)
host_name winserver ; The name we're giving to this host
alias Windows 2003 Server ; A longer name associated with the host
address 192.168.198.171 ; IP address of the host
}
# HOST GROUP DEFINITIONS - Define o grupo, nomes.
# 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 - Define os serviços.
# 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 winserver
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
# 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(NÃO ALTERE)
host_name winserver ; The name we're giving to this host
alias Windows 2003 Server ; A longer name associated with the host
address 192.168.198.171 ; IP address of the host
}
# HOST GROUP DEFINITIONS - Define o grupo, nomes.
# 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 - Define os serviços.
# 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 winserver
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
Parabéns!!!