Olá Senhores,
Estou começando a monitorar minha rede com o nagios e estou apanhando muito.
Os tutoriais que eu acho são de versões diferentes e pelo que entendi o
Nagios 3.2.3 mesclou vários arquivos em um só.

Os routers eu consegui inserir e já estão sendo monitorados sem problema.
Os hosts win e Linux não estou conseguindo


Eu edito o arquivos Windows.cfg 

Coloco ele da seguitne forma:

############################################################################
###
# 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        serverdb ; The name we're giving to this
host
                alias                       Servidor de Arquivos     ; A
longer name associated with the host
                address                               192.168.0.3         ;
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                        serverdb
                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                        serverdb
                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                        serverdb
                service_description       CPU Load
                check_command                            check_nt!CPULOAD!-l
5,80,90
                }



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

define service{
                use                                        generic-service
                host_name                        serverdb
                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                        serverdb
                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                        serverdb
                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                        serverdb
                service_description       Explorer
                check_command                           
check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
                }



E a monitoração de um host funciona perfeitamente, mas ao adicionar o
segundo o programa para. Vejam só como eu estou colocando

############################################################################
###
# 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        serverdb ; The name we're giving to this
host
                alias                       Servidor de Arquivos     ; A
longer name associated with the host
                address                               192.168.0.x         ;
IP address of the host
                }


define host{
                use                        windows-server              ;
Inherit default values from a template
                host_name        SERVER_TS_B1; The name we're giving to this
host
                alias                       Servidor de Arquivos     ; A
longer name associated with the host
                address                               192.168.0.xx      ; 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                        serverdb
                service_description       NSClient++ Version
                check_command                           
check_nt!CLIENTVERSION
                }

define service{
                use                                        generic-service
                host_name                        SERVER_TS_B1
                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                        serverdb
                service_description       Uptime
                check_command                            check_nt!UPTIME
                }

define service{
                use                                        generic-service
                host_name                        SERVER_TS_B1
                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                        serverdb
                service_description       CPU Load
                check_command                            check_nt!CPULOAD!-l
5,80,90
                }


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

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

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


define service{
                use                                        generic-service
                host_name                        SERVER_TS_B1
                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                        serverdb
                service_description       C:\ Drive Space
                check_command                           
check_nt!USEDDISKSPACE!-l c -w 80 -c 90
                }

define service{
                use                                        generic-service
                host_name                        SERVER_TS_B1
                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                        serverdb
                service_description       W3SVC
                check_command                           
check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
                }

define service{
                use                                        generic-service
                host_name                        SERVER_TS_B1
                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                        serverdb
                service_description       Explorer
                check_command                           
check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
                }


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



Desde já eu agradeço qualquer ajuda que vier.

Marcos



------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki

Reply via email to