[ixpmanager] MRTG Configuration with IXP-Manager

Mike Hammett ixp-manager at ics-il.net
Tue Oct 20 12:52:59 IST 2015


Copy the files Barry suggested up to a PasteBin entry and provide the link to it here. 




----- 
Mike Hammett 
Intelligent Computing Solutions 
http://www.ics-il.com 



Midwest Internet Exchange 
http://www.midwest-ix.com 


----- Original Message -----

From: "Ajai Kumar" <joinajay1 at gmail.com> 
To: "INEX IXP Manager Mailing List" <ixpmanager at inex.ie> 
Sent: Tuesday, October 20, 2015 6:35:13 AM 
Subject: Re: [ixpmanager] MRTG Configuration with IXP-Manager 


Hi, 




On 20 October 2015 at 15:35, Barry O'Donovan < barry.odonovan at inex.ie > wrote: 



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

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

and your aggregates.tpl 

- Barry 








Sorry not able to understand. What action have to take for moving ahead. 


<blockquote>



On 19/10/2015 8:34 a.m., Ajai Kumar wrote: 

<blockquote>


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 






_______________________________________________ 
INEX IXP Manager mailing list 
ixpmanager at inex.ie 
https://www.inex.ie/mailman/listinfo/ixpmanager 


</blockquote>

-- 

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/ | 
+-------------------------------+-------------------------------------+ 


_______________________________________________ 
INEX IXP Manager mailing list 
ixpmanager at inex.ie 
https://www.inex.ie/mailman/listinfo/ixpmanager 

</blockquote>





................................. 
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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20151020/c7c80391/attachment.html>


More information about the ixpmanager mailing list