LINUX.ORG.RU

Сообщения rybyanets

 

Тонкая настройка snmpd.conf

Форум — Admin

Мы настроили систему мониторинга по SNMP. На одной из виртуальных машин на SUSE (suse-vm) общий ресурс подключен к машине Windows (win-cifs) по протоколу cifs, допустим, он смонтирован в /share. А если от win-cifs нет ответа (перезагружается или интернет-канал нестабильный), соответственно не работает «df -h» или «ls/», то и на все остальные OID ответа нет.

Если отключить опрос OID, который отслеживает /share и связь с win-cifs теряется, проблем нет. Но мне нужно его мониторить.

Можно ли настроить snmpd.conf так, чтобы, когда /share недоступен, другие OID отвечали, не дожидаясь доступности win-cifs?

Буду признателен за любую помощь или костыль. Вожусь уже неделю.

Мой snmpd.conf

###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity public 127.0.0.1
rocommunity  name_community 192.168.1.1

###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation Server Room

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontact Sysadmin (root@localhost)

#
# Unknown directives read in from other files by snmpconf
#
dontLogTCPWrappersConnects yes

 ,

rybyanets
()

RSS подписка на новые темы