Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Val Yankin                           2:5020/400     10 Jun 2003  12:10:58
 To : Alexander Kuzhelev
 Subject : Re: Показывать трафик MRTG без SNMP
 -------------------------------------------------------------------------------- 
 
 Tue Jun 10 2003 10:49, Alexander Kuzhelev wrote to Val Yankin:
 
  >> Короче, плюнув на все, я посмотрел лог MRTG и скормил этой проге данные по
  >> трафику, которые генерирует pf -s info. В принципе цель достигнута, обидно
  >> только, что с SNMP ничего не получилось.
  >> 
 
  AK> а ucd-snmp-4.2.3 настроил? Там вроде нужно snmpd.conf создать. Кажись это
  AK> делалось командой snmpconf -g basic_setup.  Отвечаешь на вопросы и все.
  AK> Перезапускаешь snmpd, и конфиг mrtg сгенериться.
 
 Да, я так и сделал, сгенерился конфиг snmpd.conf, с ним я запустил snmpd, но
 ничего не получилось с cfgmaker'ом. То же самое пишет - # cfgmaker
 192.168.1.188
 --base: Get Device Info on public@192.168.1.188:
 Error:
   creating socket: No such file or directory
  at /usr/local/libdata/perl5/site_perl/SNMP_util.pm line 400
 SNMPGET Problem for public@192.168.1.188:
  at /usr/local/bin/cfgmaker line 448
 --base: Vendor Id:
 --base: Populating confcache
 Error:
   creating socket: No such file or directory
  at /usr/local/libdata/perl5/site_perl/SNMP_util.pm line 400
 SNMPWALK Problem for public@192.168.1.188:
  at /usr/local/libdata/perl5/site_perl/MRTG_lib.pm line 1218
 --snpo: confcache public@192.168.1.188: Descr  -->
 Error:
   creating socket: No such file or directory
  at /usr/local/libdata/perl5/site_perl/SNMP_util.pm line 400
 --------------------------------------------------------------
 И так далее. А вот конфиг 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.
 
 # rwcommunity: a SNMPv1/SNMPv2c read-write access community name
 #   arguments:  community [default|hostname|network/bits] [oid]
 
 rwcommunity  public  
 
 # rouser: a SNMPv3 read-only user
 #   arguments:  user [noauth|auth|priv] [restriction_oid]
 
 rouser  user5 noauth 
 
 # rwuser: a SNMPv3 read-write user
 #   arguments:  user [noauth|auth|priv] [restriction_oid]
 
 rwuser  root noauth 
 
 ###########################################################################
 # SECTION: Monitor Various Aspects of the Running Host
 #
 #   The following check up on various aspects of a host.
 
 # 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  12.0 10.0 11.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  /home 15M
 
 # 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  httpd 10 3
 
 ###########################################################################
 # 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.
 #   arguments:  location_string
 
 syslocation  "Home"
 
 # sysservices: The proper value for the sysServices object.
 #   arguments:  sysservices_number
 
 sysservices 15
 
 # syscontact: The contact information for the administrator
 #   arguments:  contact_string
 
 syscontact  "Valeriy Yankin"
 
 -----------------------------------------------------
 
 У меня ни малейшего понятия, что делать. SNMP, наверное, не для таких мозгов,
 как у меня. Или руки кривые :)
 
 Валерий, val(AT)mail.nnov.ru
 
 --- ifmail v.2.15dev5
  * Origin: FidoNet Online - http://www.fido-online.com (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Показывать трафик MRTG без SNMP   Val Yankin   06 Jun 2003 23:07:24 
 Показывать трафик MRTG без SNMP   Eugene M. Zheganin   08 Jun 2003 00:18:34 
 Показывать трафик MRTG без SNMP   Val Yankin   08 Jun 2003 18:11:27 
 Re: Показывать трафик MRTG без SNMP   Alexander Kuzhelev   10 Jun 2003 10:49:09 
 Re: Показывать трафик MRTG без SNMP   Val Yankin   10 Jun 2003 12:10:58 
 Re: Показывать трафик MRTG без SNMP   Andrew Lutov   10 Jun 2003 13:24:59 
 Re: Показывать трафик MRTG без SNMP   Andrew Lutov   10 Jun 2003 13:29:05 
 Re: Показывать трафик MRTG без SNMP   Val Yankin   10 Jun 2003 16:50:29 
 Re: Показывать трафик MRTG без SNMP   Val Yankin   11 Jun 2003 21:42:09 
 Показывать трафик MRTG без SNMP   Andrey Ostanovsky   13 Jun 2003 18:25:44 
 Показывать трафик MRTG без SNMP   Eugene M. Zheganin   10 Jun 2003 14:09:44 
 Показывать трафик MRTG без SNMP   Alexandre Kardanev   08 Jun 2003 13:00:25 
 Показывать трафик MRTG без SNMP   Val Yankin   08 Jun 2003 18:15:01 
Архивное /ru.unix.bsd/166793f26e708.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional