[ixpmanager] Grapher

Diarmuid O Briain diarmuid at obriain.com
Sat Feb 24 06:46:01 GMT 2018


Barry,

My I also suggest changing the defaults in $IXPROOT/.env to match your
documentation and adding a default for GRAPHER_BACKEND_MRTG_DBTYPE which is
missing. I had to append it rather than change it.

i.e. this is what is required to make the changes for MRTG now. It was
ubuntu at ixpm1:~$ sudo sed -i.bak -e "/GRAPHER_BACKENDS/ i # Added for IXP
Manager Lab `date +'%D'`" \
  -e '/GRAPHER_BACKENDS/ s/.*/GRAPHER_BACKENDS="mrtg"/' \
  -e '/MRTG_WORKDIR/s/.*/GRAPHER_BACKEND_MRTG_WORKDIR="\/srv\/mrtg"/' \
  -e '/MRTG_LOGDIR/s/.*/GRAPHER_BACKEND_MRTG_LOGDIR="\/srv\/mrtg"/' \
  -e '/MRTG_LOGDIR/ a GRAPHER_BACKEND_MRTG_DBTYPE="rrd"' \
  -e '/GRAPHER_CACHE_ENABLED/ s/.*/GRAPHER_CACHE_ENABLED=true/'
$IXPROOT/.env


ubuntu at ixpm1:~$ diff $IXPROOT/.env.bak $IXPROOT/.env
81c81,82
< GRAPHER_BACKENDS="dummy"
---
> # Added for IXP Manager Lab 02/24/18
> GRAPHER_BACKENDS="mrtg"
83,84c84,86
< #GRAPHER_BACKEND_MRTG_WORKDIR="/tmp"
< #GRAPHER_BACKEND_MRTG_LOGDIR="http://stats.example.com/mrtg"
---
> GRAPHER_BACKEND_MRTG_WORKDIR="/srv/mrtg"
> GRAPHER_BACKEND_MRTG_LOGDIR="/srv/mrtg"
> GRAPHER_BACKEND_MRTG_DBTYPE="rrd"
86c88
< #GRAPHER_CACHE_ENABLED=true
---
> GRAPHER_CACHE_ENABLED=true

regards,

Diarmuid

--

*Irish by birth, located in Uganda but Munster by the grace of God.*



On 23 February 2018 at 18:24, Barry O'Donovan <barry.odonovan at inex.ie>
wrote:

>
>
> Diarmuid O Briain wrote:
> > I am going through the Grapher install and I fear it appears to be more
> > obfuscation.
>
> Probably not the best opening to a request for help :-(
>
> I've taken another run at the docs - changes here: https://git.io/vAaCS
>
>
>  - Barry
>
>
> > Questions below are in {{  }} other text is extracted
> > from http://docs.ixpmanager.org/features/grapher/
> >
> >
> > (1)
> > apt-get install libconfig-general-perl libnetaddr-ip-perl mrtg
> > {{ is rrdtool missing from this line }}
> >
> > (2)
> > mkdir -p /srv/mrtg
> > {{ What is this for ? it is not referenced in the .env examples }}
> >
> > (3)
> > In your .env, you need to set the following options:
> > {{ is this .bashrc, if so why not say it, the install script only works
> > for Ubuntu }}
> >
> > (4)
> > GRAPHER_BACKEND_MRTG_WORKDIR="/tmp"
> > {{ is /tmp a fair example or should this be in /srv/mrtg }}
> >
> > (5)
> > GRAPHER_BACKEND_MRTG_LOGDIR="http://collector.example.com/mrtg"
> >  {{ Again is this a fair example or should this be in /srv/mrtg }}
> >
> > regards,
> >
> > Diarmuid
> > --
> >
> > */Irish by birth, located in Uganda but Munster by the grace of God./*
> >
> >
> > _______________________________________________
> > INEX IXP Manager mailing list
> > ixpmanager at inex.ie
> > https://www.inex.ie/mailman/listinfo/ixpmanager
>
> --
>
> Kind regards,
> Barry O'Donovan
> INEX Operations
>
> https://www.inex.ie/support/
> +353 1 531 3339
>
>
> _______________________________________________
> 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/20180224/a4c4563b/attachment-0001.html>


More information about the ixpmanager mailing list