nKB

nKB

シンプルにいこうよ

MRTG 設定ファイル

mrtg.cfg
# Created by
# /usr/bin/cfgmaker --ifref=descr --ifdesc=descr public@192.168.0.101


### Global Config Options

#  for UNIX
WorkDir: /var/www/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
# System: enterprise.localdomain
# Description: Linux enterprise.localdomain 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64
# Contact: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
# Location: Unknown (edit /etc/snmp/snmpd.conf)
######################################################################


### Interface 1 >> Descr: 'lo' | Name: 'lo' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[192.168.0.101_lo]: \lo:public@192.168.0.101:
# SetEnv[192.168.0.101_lo]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[192.168.0.101_lo]: 1250000
# Title[192.168.0.101_lo]: lo -- enterprise.localdomain
# PageTop[192.168.0.101_lo]: <h1>lo -- enterprise.localdomain</h1>
#               <div id="sysdetails">
#                       <table>
#                               <tr>
#                                       <td>System:</td>
#                                       <td>enterprise.localdomain in Unknown (edit /etc/snmp/snmpd.conf)</td>
#                               </tr>
#                               <tr>
#                                       <td>Maintainer:</td>
#                                       <td>Root &lt;root@localhost&gt; (configure /etc/snmp/snmp.local.conf)</td>
#                               </tr>
#                               <tr>
#                                       <td>Description:</td>
#                                       <td>lo  </td>
#                               </tr>
#                               <tr>
#                                       <td>ifType:</td>
#                                       <td>softwareLoopback (24)</td>
#                               </tr>
#                               <tr>
#                                       <td>ifName:</td>
#                                       <td>lo</td>
#                               </tr>
#                               <tr>
#                                       <td>Max Speed:</td>
#                                       <td>1250.0 kBytes/s</td>
#                               </tr>
#                               <tr>
#                                       <td>Ip:</td>
#                                       <td>127.0.0.1 (localhost)</td>
#                               </tr>
#                       </table>
#               </div>


### Interface 2 >> Descr: 'eth0' | Name: 'eth0' | Ip: '192.168.0.101' | Eth: '00-0c-29-ef-33-28' ###

Target[192.168.0.101_eth0]: \eth0:public@192.168.0.101:
SetEnv[192.168.0.101_eth0]: MRTG_INT_IP="192.168.0.101" MRTG_INT_DESCR="eth0"
MaxBytes[192.168.0.101_eth0]: 125000000
Title[192.168.0.101_eth0]: eth0 -- enterprise.localdomain
PageTop[192.168.0.101_eth0]: <h1>eth0 -- enterprise.localdomain</h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>System:</td>
                                        <td>enterprise.localdomain in Unknown (edit /etc/snmp/snmpd.conf)</td>
                                </tr>
                                <tr>
                                        <td>Maintainer:</td>
                                        <td>Root &lt;root@localhost&gt; (configure /etc/snmp/snmp.local.conf)</td>
                                </tr>
                                <tr>
                                        <td>Description:</td>
                                        <td>eth0  </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>ethernetCsmacd (6)</td>
                                </tr>
                                <tr>
                                        <td>ifName:</td>
                                        <td>eth0</td>
                                </tr>
                                <tr>
                                        <td>Max Speed:</td>
                                        <td>125.0 MBytes/s</td>
                                </tr>
                                <tr>
                                        <td>Ip:</td>
                                        <td>192.168.0.101 (enterprise)</td>
                                </tr>
                        </table>
                </div>
設定 説明
WorkDir html出力先
広告を非表示にする