components/mrtg/TESTING
author Vladimir Marek <Vladimir.Marek@oracle.com>
Tue, 19 Jul 2016 15:32:04 +0200
branchs11u3-sru
changeset 6459 535eb53d63d5
parent 5733 d956aa0a2f2f
permissions -rw-r--r--
23856628 problem in UTILITY/PERL

Install snmp:
$ pkg install system/management/snmp/net-snmp

Enable snmp:
$ svcadm enable svc:/application/management/net-snmp:default

Make sure snmp works:
$ snmpget -v2c -c public localhost sysUpTime.0

Do some networking traffic:
$ while : ; do rm -f /home/vmarek/tmp/gs ; cp /usr/bin/gs /home/vmarek/tmp; done &

Test mrtg:
$ rm -rf /var/tmp/mrtg && mkdir -p /var/tmp/mrtg
$ cfgmaker --global "workdir: /var/tmp/mrtg" public@localhost > /var/tmp/mrtg.cfg


Open /var/tmp/mrtg.cfg and make sure that the configuration is not all
commented out. There may for example be:

### The following interface is commented out because:
### * has no ifSpeed property

In such case one has to uncomment whole interface config and modify the line like

MaxBytes[localhost_2]: 125000000


$ set -x; for i in 1 2 3 4 5 6 ; do env LANG=C /usr/bin/mrtg /var/tmp/mrtg.cfg; sleep 600; done

After 30 minutes display the generated html in /var/tmp/mrtg. You should see
some data.