Nagios UNKNOW

1. Nagios UNKNOW

Welington Silva de Lima
welington27

(usa Debian)

Enviado em 26/06/2013 - 09:00h

Bom dia pessoal, gostaria de verificar o seguinte, estou configurando um servidor Nagios na minha empresa e estou tendo comunicação de ping com os ips desejados acontece que no Nagios o meu serviços de Ping só aparece como UNKNOWN o que devo fazer com esse problema??



Só ressaltando que nem o próprio servidor ele pinga sendo que o servidor não tem bloqueio
nenhum e eu pingo ele só que o serviço no nagios esta dando UNKNOWN por favor me ajudem???


  


2. Re: Nagios UNKNOW

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 26/06/2013 - 09:03h

bom vamos lá
tu monitora outra serviço do mesmo servidor ?
tive o mesmo problema mas mas era o ms que era muito alto



3. Responder

Welington Silva de Lima
welington27

(usa Debian)

Enviado em 26/06/2013 - 09:17h

Não estou monitorando apenas o Ping até o momento.


4. Re: Nagios UNKNOW

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 26/06/2013 - 09:29h

welington27 escreveu:

Não estou monitorando apenas o Ping até o momento.


seguinte faz o teste com outro serviço pra ver o que pode ser
vamos eliminado as possibilidades


5. Responder

Welington Silva de Lima
welington27

(usa Debian)

Enviado em 26/06/2013 - 09:30h

Bem, no localhost eu habilitei o Root Partition, Total Processes, Current Users e Current Load e deu certo o status esta ok e verdinho.


6. Re: Nagios UNKNOW

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 26/06/2013 - 09:32h

welington27 escreveu:

Bem, no localhost eu habilitei o Root Partition, Total Processes, Current Users e Current Load e deu certo o status esta ok e verdinho.


ok , esse Unknow é uma outra maquina ?


7. Responder

Welington Silva de Lima
welington27

(usa Debian)

Enviado em 26/06/2013 - 09:34h

Não, na verdade eu cadastrei o localhost e 5 firewall e todos os serviços de ping deles estão UNKNOW sendo que eu pingo eles normalmente.


8. Re: Nagios UNKNOW

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 26/06/2013 - 09:37h

ok , como tu configurou o serviço do ping pra monitorar


9. Responder

Welington Silva de Lima
welington27

(usa Debian)

Enviado em 26/06/2013 - 09:39h

Já peguei o padrão do nagios não modifiquei nada.

define service{
use local-service ; Name of service template to use
host_name localhost
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}


---------------------------------------------------------------------------------------

O meu Local host ficou assim:

###############################################################################
# LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE
#
# Last Modified: 05-31-2007
#
# NOTE: This config file is intended to serve as an *extremely* simple
# example of how you can create configuration entries to monitor
# the local (Linux) machine.
#
###############################################################################




###############################################################################
###############################################################################
#
# HOST DEFINITION
#
###############################################################################
###############################################################################

# Define a host for the local machine

define host{
use linux-server ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
max_check_attempts 10
notification_interval 120
check_command check-host-alive
notification_period 24x7
notification_options d,u,r
host_name localhost
alias localhost
address 172.100.100.10
}



###############################################################################
###############################################################################
#
# HOST GROUP DEFINITION
#
###############################################################################
###############################################################################

# Define an optional hostgroup for Linux machines

define hostgroup{
hostgroup_name SystemBsb ; The name of the hostgroup
alias Linux Servers ; Long name of the group
members localhost ; Comma separated list of hosts that belong to this group
}



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


# Define a service to "ping" the local machine

define service{
use local-service ; Name of service template to use
host_name localhost
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}

# Define a service to check the disk space of the root partition
# on the local machine. Warning if < 20% free, critical if
# < 10% free space on partition.

define service{
use local-service ; Name of service template to use
host_name localhost
service_description Root Partition
check_command check_local_disk!20%!10%!/
}



# Define a service to check the number of currently logged in
# users on the local machine. Warning if > 20 users, critical
# if > 50 users.

define service{
use local-service ; Name of service template to use
host_name localhost
service_description Current Users
check_command check_local_users!20!50
}


# Define a service to check the number of currently running procs
# on the local machine. Warning if > 250 processes, critical if
# > 400 users.

define service{
use local-service ; Name of service template to use
host_name localhost
service_description Total Processes
check_command check_local_procs!250!400!RSZDT
}



# Define a service to check the load on the local machine.

define service{
use local-service ; Name of service template to use
host_name localhost
service_description Current Load
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}



# Define a service to check the swap usage the local machine.
# Critical if less than 10% of swap is free, warning if less than 20% is free

#define service{
# use local-service ; Name of service template to use
# host_name localhost
# service_description Swap Usage
# check_command check_local_swap!20!10
# }



# Define a service to check SSH on the local machine.
# Disable notifications for this service by default, as not all users may have SSH enabled.

#define service{
# use local-service ; Name of service template to use
# host_name localhost
# service_description SSH
# check_command check_ssh
# notifications_enabled 0
# }



# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may have HTTP enabled.

#define service{
# use local-service ; Name of service template to use
# host_name localhost
# service_description HTTP
# check_command check_http
# notifications_enabled 0
# }




#--------------------------------------------------------------------------------------------------------------------

#Localhost
define hostextinfo{
host_name localhost
icon_image linux.png
icon_image_alt localhost
vrml_image linux.png
gd2_image linux.gd2
register 1



10. Re: Nagios UNKNOW

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 26/06/2013 - 13:09h

desativa o check_ping pra ver se resolve






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts