[ixpmanager] Grapher
Diarmuid O Briain
diarmuid at obriain.com
Sat Feb 24 07:09:39 GMT 2018
Hi,
After reading the manual you are left with the impression that this command
it only generating output to stdout, a sort of test if you will.
------------
+# Move to the directory where you have installed IXP Manager (typically:
/srv/ixpmanager)
+cd $IXPROOT
+
+# Generate MRTG configuration and output to stdout:
./artisan grapher:generate-configuration -B mrtg
------------
However, it appears to be generating these files ?
ubuntu at ixpm1:/srv/ixpmanager$ ls -la database/Proxies | grep 'Feb 24'
drwxrwxr-x 1 www-data www-data 3028 Feb 24 06:53 .
-rw-rw-r-- 1 www-data www-data 12083 Feb 24 06:53 __CG__EntitiesCabinet.php
-rw-rw-r-- 1 www-data www-data 14049 Feb 24 06:53
__CG__EntitiesCompanyBillingDetail.php
-rw-rw-r-- 1 www-data www-data 10639 Feb 24 06:53
__CG__EntitiesCompanyRegisteredDetail.php
-rw-rw-r-- 1 www-data www-data 9490 Feb 24 06:53
__CG__EntitiesInfrastructure.php
-rw-rw-r-- 1 www-data www-data 7446 Feb 24 06:53
__CG__EntitiesIRRDBConfig.php
-rw-rw-r-- 1 www-data www-data 18212 Feb 24 06:53 __CG__EntitiesSwitcher.php
-rw-rw-r-- 1 www-data www-data 21414 Feb 24 06:53
__CG__EntitiesSwitchPort.php
-rw-rw-r-- 1 www-data www-data 8238 Feb 24 06:53 __CG__EntitiesVendor.php
Is this correct ?
regards,
Diarmuid
--
*Irish by birth, located in Uganda but Munster by the grace of God.*
On 24 February 2018 at 10:02, Diarmuid O Briain <diarmuid at obriain.com>
wrote:
> Barry,
>
> After running this command the files generated are owned by root:root and
> not www-data:www-data 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>
> 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>
>> 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/0bd645eb/attachment-0001.html>
More information about the ixpmanager
mailing list