|Documentation - MRTGWebCfg|
MRTGWebCfg: How to add new host, step by step
The following steps are required for adding a host:
Step 1: Host creation
Go to Control Panel and navigate to IP Address Management, next choose Add an IP address
Fields IP Address, Description and Password are mandatory
IP Address - 127.0.0.1
Description - My HOST
Password - public
Step 2: Basic setup
Go to Control Panel, then choose Add Record and and create Basic settings for MRTG.
Select the host created in 1st step (match by ip field).
Specify title specify how to name new setting (For instance: Traffic Analysis for fxp0 on localhost)
ver_snmp - SNMP protocol version (for instance: 1 or 2)
filename - RRD file name, where MRTG data stores collected data (For instance: traffic_fxp0_localhost)
target - SNMP OID
OID values are standardized for most equipment and can be browsed by any SNMP browser.
For instance: The first server NIC defines the following OIDs:
184.108.40.206.220.127.116.11.1.1 à ifIndex -> Interface identifier
18.104.22.168.22.214.171.124.1.10 à ifInOctets -> Packets count
126.96.36.199.188.8.131.52.1.16 à ifOutOctets -> Number of packets sent
184.108.40.206.220.127.116.11.1.14.1 à ifInErrors -> Errors rate in incoming flow
18.104.22.168.22.214.171.124.1.20.1 à ifInErrors -> Errors rate in outgoing flow
Red digit states for interface number.
In general Targer filed is determined by MRTG configuration, it is supposed that SNMP and MRTG things are known for You. Target field is assembled as the following:
Target["filename"]: target:Password@IP Address
Target["traffic_fxp0_localhost "]: .126.96.36.199.188.8.131.52.1.14.1&.184.108.40.206.220.127.116.11.1.20.1:firstname.lastname@example.org
For SNMP v2:
Target["filename"]: target:Password@IP Address :::::2
Target["traffic_fxp0_localhost"]: .18.104.22.168.22.214.171.124.1.10&.126.96.36.199.188.8.131.52.1.16:email@example.com :::::2
Target["traffic_fxp0_localhost "]: .184.108.40.206.220.127.116.11.1.14.1&.18.104.22.168.22.214.171.124.1.20.1:firstname.lastname@example.org :::::2
Parameters interface_ip and interface_name describe the following MRTG things:
SetEnv["filename"]: MRTG_INT_IP="interface_ip" MRTG_INT_DESCR="interface_name"
SetEnv["traffic_fxp0_localhost"]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="fxp0"
The rest of the parameters on Adding record page are the same as MRTG parameters. They are maxbytes, iftype, absmax, withpeak, options, colours, ylegend, shortlegend and others.
Step 3: Template management, placing graphic at the page.
Placing graphic on MRTGWebCfg is the next thing to do after the Basic settings.
Graphic information is organized by groups. The Default group always exists and new objects are placed in that group. Also Default group is displayed on the first page of MRTGWebCfg.
Groups are managed in Group Management
Next go to Template Management
Templates can be created manually by choosing proper basic settings and specifying group and page place (row and column). Also Template management - GUI can be used.
MRTG configuration file may be created after the 2nd step.
3rd step is only required for proper placing graphic on MRTGWebCfg page