|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Alexander Pechenin 2:5020/400 04 Jan 2006 21:37:51 To : Igor Zemliansky Subject : Re: Примеры взаимодействия Net-snmp + MRTG -------------------------------------------------------------------------------- "Igor Zemliansky" <igor@magisters.kiev.ua> wrote in message news:dpgkc3$7s6$1@host.talk.ru... > Hello, Alexander! > Я не использую snmptrapd. Hа сколько я знаю, этот демон нужен для реакции на > соответствующие события, которые отлавливаются по SNMP. > > AP> запущены, но не настроены из конфигурационные файлы. > > Мне кажеться, если не настроены конфигурационные файлы, то ничего не выйдет. > Hа одной из систем ставил snmpd, и во время установки скипнул конфигурацию > (там, где задаются вопросы про system location, administrator name, etc). Hа > этой системе snmpd запускался, но получить от него я ничего не мог. Как > только я глянул в /var/log/snmpd.log, все стало на свои места. Там было > написано приблизительно следующее: "Set up configuration for snmpd before > use it". > > AP> Может приведешь пример своих snmpd.conf, snmptrapd.conf? > AP> Или на каждой системе это индивидуально и нужно запускать snmpconf > AP> -g basic_setup для построения оных? > > В основном, настройки индивидуальны для каждой системы, хоть и можно найти > что-то общее. Думаю, лучше будет запустить конфигуратор. Там не так много > вопросов. Hи черта не понял пройдя snmpconf -g basic_setup, бред какой-то получился. Создал он мне кое-как snmpd.conf который посоветовал переместить из /var/net-snmp в /usr/local/share/snmp, что я и сделал. Перестартовал оба демона, в /var/log/snmpd.log ничего кроме NET-SNMP version 5.2.2, snmpwalk соответственно ничего не выдает. Прошу помощи, в данной ситуации совершенно не врубаюсь. alex:/usr/local/share/snmp# cat snmpd.conf ########################################################################### # # snmpd.conf # # - created by the snmpconf configuration program # ########################################################################### # 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 home # 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 admin@alex.hostname.ru ########################################################################### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rwuser: a SNMPv3 read-write user # arguments: user [noauth|auth|priv] [restriction_oid] rwuser nobody # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity nobody alex.hostname.ru ########################################################################### # SECTION: Trap Destinations # # Here we define who the agent will send traps to. # informsink: A SNMPv2c inform (acknowledged trap) receiver # arguments: host [community] [portnum] informsink alex.hostname.ru # trapcommunity: Default trap sink community to use # arguments: community-string trapcommunity public # authtrapenable: Should we send traps when authentication failures occur # arguments: 1 | 2 (1 = yes, 2 = no) authtrapenable 1 ########################################################################### # SECTION: Monitor Various Aspects of the Running Host # # The following check up on various aspects of a host. # proc: Check for processes that should be running. # proc NAME [MAX=0] [MIN=0] # # NAME: the name of the process to check for. It must match # exactly (ie, http will not find httpd processes). # MAX: the maximum number allowed to be running. Defaults to 0. # MIN: the minimum number to be running. Defaults to 0. # # The results are reported in the prTable section of the UCD-SNMP-MIB tree # Special Case: When the min and max numbers are both 0, it assumes # you want a max of infinity and a min of 1. proc 0 # disk: Check for disk space usage of a partition. # The agent can check the amount of available disk space, and make # sure it is above a set limit. # # disk PATH [MIN=100000] # # PATH: mount path to the disk in question. # MIN: Disks with space below this value will have the Mib's errorFlag set. # Can be a raw byte value or a percentage followed by the % # symbol. Default value = 100000. # # The results are reported in the dskTable section of the UCD-SNMP-MIB tree disk / # load: Check for unreasonable load average values. # Watch the load average levels on the machine. # # load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0] # # 1MAX: If the 1 minute load average is above this limit at query # time, the errorFlag will be set. # 5MAX: Similar, but for 5 min average. # 15MAX: Similar, but for 15 min average. # # The results are reported in the laTable section of the UCD-SNMP-MIB tree load 1 5 15 load 1 5 15 load 1 5 15 load 12 12 12 # # Unknown directives read in from other files by snmpconf # setserialno 569428617 engineBoots 4 oldEngineID 0x80001f888036fa4355b59ab943 -- Отправлено через сервер Форумы@mail.ru - http://talk.mail.ru --- ifmail v.2.15dev5.3 * Origin: Talk.Mail.Ru (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор Архивное /ru.unix.bsd/6488581012f8.html, оценка из 5, голосов 10
|