[root@2222]# mrtg start
this error appears
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
[root@2222]# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
After I type the above command, the following error appears:
ERROR: Target[mrtg_373][_IN_] ' $target->[2]{$mode} ' evaluated to 'NaN' instead of a number
ERROR: Target[mrtg_374][_IN_] ' $target->[3]{$mode} ' evaluated to 'NaN' instead of a number
mrtg.cfg
Created by
/usr/bin/cfgmaker --global "Options[]: growright, bits, nobanner" --global "Colours[]: ORANGE#FF7700,GREEN#008000,BLUE#4569E3,VIOLET#ff00ff" --global "Background[_]: #F7F7F7" --global "WorkDir: /var/www/html/mrtg" public@localhost
Global Config Options
for UNIX
WorkDir: /home/http/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 Options[]: growright, bits, nobanner Colours[]: ORANGE#FF7700,GREEN#008000,BLUE#4569E3,VIOLET#ff00ff Background[_]: #F7F7F7 WorkDir: /var/www/html/mrtg
#
System: localhost.localdomain
Description: Linux localhost.localdomain 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC 2012 i686
Contact: root@localhost
Location: Unknown
#
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[localhost_1]: 1:public@localhost:
SetEnv[localhost_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
MaxBytes[localhost_1]: 1250000
Title[localhost_1]: Traffic Analysis for 1 -- localhost.localdomain
PageTop[localhost_1]:
Traffic Analysis for 1 -- localhost.localdomain
System:
localhost.localdomain in Unknown
Maintainer:
root@localhost
Description:
lo
ifType:
softwareLoopback (24)
ifName:
lo
Max Speed:
10.0 Mbits/s
Ip:
127.0.0.1 (localhost.localdomain)
Interface 2 >> Descr: 'eth0' | Name: 'eth0' | Ip: '182.72.157.26' | Eth: '74-d4-35-e3-1a-65'
Target[localhost_2]: 2:public@localhost: SetEnv[localhost_2]: MRTG_INT_IP="xxx.xxx.xxx.xxx" MRTG_INT_DESCR="eth0" MaxBytes[localhost_2]: 12500000 Title[localhost_2]: Traffic Analysis for 2 -- localhost.localdomain PageTop[localhost_2]:
Traffic Analysis for 2 -- localhost.localdomain
System: localhost.localdomain in Unknown Maintainer: root@localhost Description: eth0 ifType: ethernetCsmacd (6) ifName: eth0 Max Speed: 100.0 Mbits/s Ip: 182.72.157.26 (ns1419492158.xyz.com)
Interface 3 >> Descr: 'eth1' | Name: 'eth1' | Ip: '192.168.6.1' | Eth: '6c-19-8f-93-8f-30'
Target[localhost_3]: 3:public@localhost: SetEnv[localhost_3]: MRTG_INT_IP="192.168.6.1" MRTG_INT_DESCR="eth1" MaxBytes[localhost_3]: 12500000 Title[localhost_3]: Traffic Analysis for 3 -- localhost.localdomain PageTop[localhost_3]:
Traffic Analysis for 3 -- localhost.localdomain
System: localhost.localdomain in Unknown Maintainer: root@localhost Description: eth1 ifType: ethernetCsmacd (6) ifName: eth1 Max Speed: 100.0 Mbits/s Ip: 192.168.6.1 ()
Interface 4 >> Descr: 'eth2' | Name: 'eth2' | Ip: '' | Eth: '6c-19-8f-93-8e-d3'
The following interface is commented out because:
* it is administratively DOWN
* it is operationally DOWN
#
Target[localhost_4]: 4:public@localhost:
SetEnv[localhost_4]: MRTG_INT_IP="" MRTG_INT_DESCR="eth2"
MaxBytes[localhost_4]: 1250000
Title[localhost_4]: Traffic Analysis for 4 -- localhost.localdomain
PageTop[localhost_4]:
Traffic Analysis for 4 -- localhost.localdomain
System:
localhost.localdomain in Unknown
Maintainer:
root@localhost
Description:
eth2
ifType:
ethernetCsmacd (6)
ifName:
eth2
Max Speed:
10.0 Mbits/s
Target[mrtg_373]: /var/www/html/get_mrtg 373 |grep -v '^$' MaxBytes[mrtg_373]: 12500000 Title[mrtg_373]: 192.168.6.2 PageTop[mrtg_373]:
192.168.6.2
Target[mrtg_374]:
/var/www/html/get_mrtg 374 |grep -v '^$' MaxBytes[mrtg_374]: 12500000 Title[mrtg_374]: 192.168.6.3 PageTop[mrtg_374]:
Aucun commentaire:
Enregistrer un commentaire