[ixpmanager] Grapher
Barry O'Donovan
barry.odonovan at inex.ie
Sat Feb 24 09:47:28 GMT 2018
Diarmuid O Briain wrote:
> Barry,
>
> After running this command the files generated are owned by root:root
> and not www-data:www-data
That's because you're running it with 'sudo'.
More to follow in reply to your next email.
- Barry
> like the other files in
> the $IXPROOT/database/Proxies directory.
>
> ubuntu at ixpm1:/srv/ixpmanager$ sudo ./artisan
> grapher:generate-configuration -B mrtg
>
> Is it necessary to change the ownership of these files to the user and
> group www-data.
>
> ubuntu at ixpm1:/srv/ixpmanager$ sudo chown -R www-data:
> $IXPROOT/database/Proxies
>
> regards,
>
> Diarmuid
>
> --
>
> */Irish by birth, located in Uganda but Munster by the grace of God./*
>
>
>
> On 24 February 2018 at 09:46, Diarmuid O Briain <diarmuid at obriain.com
> <mailto:diarmuid at obriain.com>> wrote:
>
> 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 <mailto: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/
> <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
> <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 <mailto:ixpmanager at inex.ie>
> > https://www.inex.ie/mailman/listinfo/ixpmanager
> <https://www.inex.ie/mailman/listinfo/ixpmanager>
>
> --
>
> Kind regards,
> Barry O'Donovan
> INEX Operations
>
> https://www.inex.ie/support/
> +353 1 531 3339 <tel:%2B353%201%20531%203339>
>
>
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie <mailto:ixpmanager at inex.ie>
> https://www.inex.ie/mailman/listinfo/ixpmanager
> <https://www.inex.ie/mailman/listinfo/ixpmanager>
>
>
>
> _______________________________________________
> 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
More information about the ixpmanager
mailing list