[ixpmanager] MRTG collector is on a different server

Ian Chilton ian at lonap.net
Fri Mar 12 09:45:26 GMT 2021


Hi,

It’s a looooong time since I’ve done CGI, but you wouldn’t usually 
mix your web root and cgi-bin.

I would output the red files in to a directory which is the DocumentRoot 
(or an alias) in Apache and keep your CGI stuff separate. You could also 
use Options Indexes to see a directory listing so you can browse them in 
a browser (and can limit that to your own IPs).

Ian


On 11 Mar 2021, at 15:06, Basil Elbalaawi wrote:

>> https://imgur.com/a/Tt8Se69     ----------------------> see these 
>> pic.
>>
>>
>> i am waiting your reply ,,,,,,
>>
>>
>>
>>
>>
>>
>> On Thu, Mar 11, 2021 at 4:37 PM Ian Chilton <ian at lonap.net> wrote:
>>
>>> Hi Basil,
>>>
>>> Our MRTG setup uses log files, because history.
>>>
>>> These are in /srv/mrtg and I setup nginx with:
>>>
>>> location /mrtg {
>>> alias /srv/mrtg;
>>> autoindex on;
>>> }
>>>
>>> So I can go to: https://mrtg.ourdomain.net/mrtg and be able to 
>>> browse
>>> the files.
>>>
>>> IXP Manager is then configured with:
>>>
>>> GRAPHER_BACKEND_MRTG_WORKDIR="/srv/mrtg"
>>> GRAPHER_BACKEND_MRTG_LOGDIR="http://1<host>/mrtg"
>>>
>>> Does that answer your question?
>>>
>>> Ian
>>>
>>> On 11 Mar 2021, at 14:32, Basil Elbalaawi wrote:
>>>
>>> hello
>>> how can access the .rrd file or access by http web access at the 
>>> mrtg
>>> server ?
>>>
>>> and when i use the rrdtool , so which the
>>>
>>> GRAPHER_BACKEND_MRTG_WORKDIR="WokDir for rrd file ex. 
>>> /var/www/cgi-bin"
>>>
>>> GRAPHER_BACKEND_MRTG_LOGDIR="" , there is no html file can be access 
>>> for
>>> rrd file , or can be used  "indexmaker /etc/mrtg.cfg >
>>> /var/www/cgi-bin/index.html"
>>>
>>> where idex file used .log, .html and .png files , Not rrd file
>>>
>>> So what can I do?
>>>
>>> On Mon, Feb 15, 2021 at 2:21 PM Barry O'Donovan 
>>> <barry.odonovan at inex.ie>
>>> wrote:
>>>
>>>> Hi Ian,
>>>>
>>>> Ian Chilton wrote on 15/02/2021 12:03:
>>>>> I assume the grapher:upload-stats-to-db and
>>>>> grapher:upload-pi-stats-to-db jobs (as well as the email ones) 
>>>>> should
>>>>> run on the main ixpmanager host? - and it will use
>>>>> GRAPHER_BACKEND_MRTG_LOGDIR to pull that data, be it set to a 
>>>>> local
>>>> dir
>>>>> or a remote http(s) endpoint?
>>>>
>>>> Correct on both counts.
>>>>
>>>>> With regards to the graphs when mrtg is on a different host - does 
>>>>> it
>>>>> directly reference the MRTG host in image src tags directly, or 
>>>>> does
>>>> it
>>>>> do some caching and still serve up graphs from the ixpmanager 
>>>>> host?
>>>>
>>>> It basically proxies the image requests - no internal MRTG host is
>>>> exposed.
>>>>
>>>>   - Barry
>>>>
>>>>>
>>>>> Obviously the answer will be obvious once implemented, but whether 
>>>>> the
>>>>> mrtg needs to be publicly accessible influences which vlan it goes 
>>>>> on
>>>> etc.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Ian
>>>>> _______________________________________________
>>>>> INEX IXP Manager mailing list
>>>>> ixpmanager at inex.ie
>>>>> Unsubscribe or change options here:
>>>>> 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
>>>> Unsubscribe or change options here:
>>>> https://www.inex.ie/mailman/listinfo/ixpmanager
>>>>
>>> _______________________________________________
>>> INEX IXP Manager mailing list
>>> ixpmanager at inex.ie
>>> Unsubscribe or change options here:
>>> https://www.inex.ie/mailman/listinfo/ixpmanager
>>>
>>> _______________________________________________
>>> INEX IXP Manager mailing list
>>> ixpmanager at inex.ie
>>> Unsubscribe or change options here:
>>> https://www.inex.ie/mailman/listinfo/ixpmanager
>>>
>>


> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> Unsubscribe or change options here: 
> https://www.inex.ie/mailman/listinfo/ixpmanager


More information about the ixpmanager mailing list