Status CRITICAL no nagios

1. Status CRITICAL no nagios

Leonardo Piffero Curti
CurT1

(usa Debian)

Enviado em 30/10/2018 - 13:04h

Bom dia, fiz a instalação e configuração snmp do nagios seguindo este tutorial: https://www.youtube.com/watch?v=BTqxDo3Vt38
A princípio funcionou corretamente, mas o status da máquina que eu adicionei permanece sempre como "CRITICAL - Plugin timed out while executing system call".
Imagino que seja a OID da máquina adicionada que esteja errada, procurei pela internet, mas não consegui achar nada que me ensinasse a descobrir o OID.
A configuração do meu snmp.cfg é a seguinte:

###############################################################################
# LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE
#
#
# 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.
host_name maquina_snmp1
alias SNMP INTRANET
address 10.144.73.101
}
###############################################################################
#
# HOST GROUP DEFINITION
#
###############################################################################

# Define an optional hostgroup for Linux machines

define hostgroup {

hostgroup_name monitoradas-snmp ; The name of the hostgroup
alias MAQUINAS MONITORADAS SNMP ; 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 generic-service ; Name of service template to use
host_name maquina_snmp1
service_description IFMIB - Packets IN
check_command check_snmp! 1.3.6.1.2.1.2.2.1.13.1
}

Alguém pode me dar uma ajuda?


  


2. Re: Status CRITICAL no nagios

Perfil removido
removido

(usa Nenhuma)

Enviado em 31/10/2018 - 20:43h

Não está faltando a community?

Teste o OID via snmpwalk.

*Obs: Veja que o erro é de timed out.
Plugin timed out while executing system call 



3. Re: Status CRITICAL no nagios

Leonardo Piffero Curti
CurT1

(usa Debian)

Enviado em 01/11/2018 - 10:18h

amarildosertorio escreveu:

Não está faltando a community?

Teste o OID via snmpwalk.

*Obs: Veja que o erro é de timed out.
Plugin timed out while executing system call 


Onde iria a community?
Quando testo com "snmpwalk -c public -v1 10.144.73.101" volta a respota: "Timeout: No Response from 10.144.73.101"



4. Re: Status CRITICAL no nagios

Perfil removido
removido

(usa Nenhuma)

Enviado em 01/11/2018 - 13:44h

CurT1 escreveu:

amarildosertorio escreveu:

Não está faltando a community?

Teste o OID via snmpwalk.

*Obs: Veja que o erro é de timed out.
Plugin timed out while executing system call 


Onde iria a community?
Quando testo com "snmpwalk -c public -v1 10.144.73.101" volta a respota: "Timeout: No Response from 10.144.73.101"


Suponho que o snmp está instalado, configurado com a community "public" e autorizando o servidor Nagios no cliente 10.144.73.101.


5. Re: Status CRITICAL no nagios

Leonardo Piffero Curti
CurT1

(usa Debian)

Enviado em 01/11/2018 - 15:27h

amarildosertorio escreveu:

CurT1 escreveu:

amarildosertorio escreveu:

Não está faltando a community?

Teste o OID via snmpwalk.

*Obs: Veja que o erro é de timed out.
Plugin timed out while executing system call 


Onde iria a community?
Quando testo com "snmpwalk -c public -v1 10.144.73.101" volta a respota: "Timeout: No Response from 10.144.73.101"


Suponho que o snmp está instalado, configurado com a community "public" e autorizando o servidor Nagios no cliente 10.144.73.101.


Está instalado sim, a configuração que vc se refere é no snmpd.conf? Pode me dar um exemplo de como deve ficar? O meu está no "padrão de fábrica".






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts