[ixpmanager] MRTG Configuration with IXP-Manager

Barry O'Donovan barry.odonovan at inex.ie
Tue Oct 20 11:05:27 IST 2015


Can you stick the following files in a Gist / Pastebin:

var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php

and your aggregates.tpl

  - Barry


On 19/10/2015 8:34 a.m., Ajai Kumar wrote:
> Hi,
> I am getting following error.Can some one guide on it
>
>
> [root at nixi ~]# /usr/local/ixp/bin/ixptool.php -a
> statistics-cli.gen-mrtg-conf
> PHP Notice:  Undefined index: bits in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Notice:  Undefined index: pkts in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Notice:  Undefined index: bits in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Notice:  Undefined index: pkts in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Notice:  Undefined index: bits in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Notice:  Undefined index: pkts in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Notice:  Undefined index: bits in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Notice:  Undefined index: pkts in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
> on line 84
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 73
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 73
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 78
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 78
> PHP Warning:  Illegal string offset 'mrtgIds' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  Illegal string offset 'bits' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  Illegal string offset 'maxbytes' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 84
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 84
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 91
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 91
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 73
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 73
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 78
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 78
> PHP Warning:  Illegal string offset 'mrtgIds' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  Illegal string offset 'pkts' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  Illegal string offset 'maxbytes' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 85
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 85
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 91
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 91
> PHP Notice:  Undefined index: bits in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Notice:  Undefined index: pkts in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 73
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 73
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 78
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 78
> PHP Warning:  Illegal string offset 'mrtgIds' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  Illegal string offset 'bits' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  Illegal string offset 'maxbytes' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 84
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 84
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 91
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 91
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 73
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 73
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 78
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 78
> PHP Warning:  Illegal string offset 'mrtgIds' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  Illegal string offset 'pkts' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  implode(): Invalid arguments passed in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 81
> PHP Warning:  Illegal string offset 'maxbytes' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 85
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 85
> PHP Warning:  Illegal string offset 'name' in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 91
> PHP Notice:  Uninitialized string offset: 0 in
> /usr/local/ixp/var/templates_c/0394f5fc1ddc29ba498958436cbb70a65cdb92f6.file.switch-aggregates.cfg.php
> on line 91
>
> On 29 September 2015 at 18:25, chandra prakash
> <chandra.mr.prakash at gmail.com <mailto:chandra.mr.prakash at gmail.com>> wrote:
>
>     Hi,
>
>     We already follow this instruction but it give us some warning
>
>     [root at nixi ~]# /usr/local/ixp/bin/ixptool.php -a
>     statistics-cli.gen-mrtg-conf
>     PHP Notice:  Undefined index: bits in
>     /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
>     on line 84
>     PHP Warning:  implode(): Invalid arguments passed in
>     /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
>     on line 84
>     PHP Notice:  Undefined index: pkts in
>     /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
>     on line 84
>     PHP Warning:  implode(): Invalid arguments passed in
>     /usr/local/ixp/var/templates_c/25549ef3713b8e6ed5a7749cc70d38d4fae45cb3.file.aggregates.cfg.php
>     on line 84
>
>     So we created mrtg graph using below mentioned command
>
>     *env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
>
>     *
>
>     *And we are able to see graph only for aggregated (customer grapgs
>     are missing) in below mentioned directory
>
>     *
>
>     *Mrtg directory :- /srv/mrtg
>     *
>
>     *mrtg config file:- /etc/mrtg/mrtg.cfg
>
>     *
>
>     *Regards,
>     *
>
>     *Prakash
>     *
>
>
>
>
>
>
>
>     On Tue, Sep 29, 2015 at 6:17 PM, Barry O'Donovan
>     <barry.odonovan at inex.ie <mailto:barry.odonovan at inex.ie>> wrote:
>
>
>
>         On 29/09/2015 13:43, chandra prakash wrote:
>
>             How to integrate MRTG under IXP-Manager in centos ?
>
>
>         There's fairly comprehensive documentation at:
>
>         https://github.com/inex/IXP-Manager/wiki/MRTG---Traffic-Graphs
>
>
>         Not to sound like a broken record, but while CentOS will work
>         fine, the recommended Linux distribution is the latest Ubuntu
>         LTS and the documentation is geared towards this.
>
>           - Barry
>
>
>
>         _______________________________________________
>         INEX IXP Manager mailing list
>         ixpmanager at inex.ie <mailto:ixpmanager at inex.ie>
>         https://www.inex.ie/mailman/listinfo/ixpmanager
>
>
>
>
>     --
>     --------------------------------
>     Chandra Prakash
>     Sr Internet Resource Analyst
>     National Internet Exchange of India
>
>
>     _______________________________________________
>     INEX IXP Manager mailing list
>     ixpmanager at inex.ie <mailto:ixpmanager at inex.ie>
>     https://www.inex.ie/mailman/listinfo/ixpmanager
>
>
>
>
> --
> Manager  & PIO(RTI)
> National Internet Exchange of India(www.nixi.in <http://www.nixi.in>)
> A section 25 Company, Ministry of Communication and Information
> Technology,Govt of India,
> IFlat no. 6B,
> Uppals M6 Plaza,
> 6 Jasola District
> Centre,
> New Delhi-110025
> India
> (M) +91-9868477444
> (D)+91-11-24363126
> Skype ID:erajay
> E-mail: ajay at nixi.in <http://nixi.in>,P-mail: joinajay1 at gmail.com
> <http://gmail.com>
> .................................
> Please don't print this email unless you really need to. This will
> preserve trees on our planet.
>
>
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> https://www.inex.ie/mailman/listinfo/ixpmanager
>

-- 

Kind regards,
Barry O'Donovan
INEX Operations

Mob: +353 86 801 7669
Tel: +353  1 531 3339

+-------------------------------+-------------------------------------+
| Open Source Solutions Ltd.    | INEX Operations Team                |
| 52 Sandwith Street Lower,     | Internet Neutral Exchange           |
| Dublin 2, D02 WR26,           | Association, 4027 Kingswood Road,   |
| Ireland.                      | Citywest Business Campus, Dublin 24 |
| http://www.opensolutions.ie/  | http://www.inex.ie/                 |
+-------------------------------+-------------------------------------+


More information about the ixpmanager mailing list