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?