Страница 1 из 1

MRTG

Добавлено: 2009-03-13 13:18:44
Mix
Чего хотелся бы начинят настройка MRTG
Система FreeBSD 7.0
Mrtg, net-snmp
Всё поставил но не зная с чего начат

Re: MRTG

Добавлено: 2009-03-13 13:22:48
f_andrey
Как обычно с чтения документации, и составления техзадания, даже для себя любимого оно нужно хоть и мысленное.
А вообше mrtg по моему устаревшее и стоит посмотреть на rrd тулз, как точно пишится и используется уточните в гугле.

Re: MRTG

Добавлено: 2009-03-13 13:41:10
Mix
ну доку на русском не как не могу найти

Re: MRTG

Добавлено: 2009-03-13 14:03:11
blackjackchik
Доки русской нет, говори че надо, помогу.

Re: MRTG

Добавлено: 2009-03-13 14:28:42
Mix
процесс настройки

Re: MRTG

Добавлено: 2009-03-13 14:50:46
blackjackchik
настрой сначала net-snmp? вот мой конфиг

Код: Выделить всё

###########################################################################
#
# 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  "CN"
syslocation  "CN"

# 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@cn.ua
syscontact  admin@cn.ua

# sysservices: The proper value for the sysServices object.
#   arguments:  sysservices_number

sysservices 15
sysservices 79



###########################################################################
# 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  admin auth 

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser  admin auth 

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

rocommunity  admin localhost 

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

rwcommunity  admin  

agentaddress  127.0.0.1:161

Не забудь сделать это

Код: Выделить всё

echo "snmpd_enable=\"YES\"" >> /etc/rc.conf
Дальше

Код: Выделить всё

cd /usr/ports/databases/rrdtool && make install clean
ну и потом посмотреть примеры использования на сайте
http://www.rrdtool.org/

И еще одна полезная ссылка
http://forums.freebsd.org/showthread.php?t=182