[ixpmanager] Graphing

m.daada at ixp.net.ng m.daada at ixp.net.ng
Fri Mar 2 14:02:56 GMT 2018


Hello Diarmuid,

 

Did you install IXP Manager using the script? If the answer is yes try the following commands:

 

./artisan grapher:generate-configuration -B mrtg -O /srv/mrtg.cfg.candidate

killall -9 mrtg

env LANG=C /usr/bin/mrtg /srv/mrtg.cfg.candidate

 

Best regards,

 

Muyiwa (IXPN)

From: ixpmanager [mailto:ixpmanager-bounces at inex.ie] On Behalf Of Diarmuid O Briain
Sent: 02 March 2018 12:24
To: INEX IXP Manager Mailing List <ixpmanager at inex.ie>
Subject: Re: [ixpmanager] Graphing

 

Edrich et al,

 

Thanks, I certainly thought so. However I am confused about that now. The notes on Grapher talk about starting and stopping using standard initd scripts ? Ubuntu 16.04 upon which the IXP Manager is based uses systemctl not initd. 

 

According to the documentation:

 

To start and stop MRTG use the standard initd scripts:

 

ubuntu at ixpm1:~$ sudo cp $IXPROOT/tools/runtime/mrtg/ubuntu-mrtg-initd /etc/init.d/mrtg

 

ubuntu at ixpm1:~$ sudo chmod +x /etc/init.d/mrtg

 

ubuntu at ixpm1:~$ sudo update-rc.d mrtg defaults

 

ubuntu at ixpm1:~$ sudo /etc/init.d/mrtg start

[....] Starting mrtg (via systemctl): mrtg.serviceJob for mrtg.service failed because the control process exited with error code. See "systemctl status mrtg.service" and "journalctl -xe" for details.

 failed!

 

ubuntu at ixpm1:~$ systemctl status mrtg.service

● mrtg.service - LSB: mrtg init script

   Loaded: loaded (/etc/init.d/mrtg; bad; vendor preset: enabled)

   Active: failed (Result: exit-code) since Fri 2018-03-02 11:06:15 UTC; 39s ago

     Docs: man:systemd-sysv-generator(8)

  Process: 1798 ExecStart=/etc/init.d/mrtg start (code=exited, status=2)

 

It then says: 

 

And disable the default cron job for MRTG on Ubuntu (/etc/cron.d/mrtg).

 

So which is it, does it run as a daemon or does /etc/cron.d/mrtg run the cron every 5 minutes ? 

 

My /var/log/mrtg/mrtg.log is giving the following message:

 

ERROR: I Quit! Another copy of mrtg seems to be running. Check /etc/mrtg.pid

Daemonizing MRTG ...

ERROR: I Quit! Another copy of mrtg seems to be running. Check /etc/mrtg.pid

Daemonizing MRTG ...

ERROR: I Quit! Another copy of mrtg seems to be running. Check /etc/mrtg.pid

Daemonizing MRTG ...

 

root at ixpm1:~# cat /etc/mrtg.pid

1666

 

The MRTG process is running. 

 

root at ixpm1:~# ps -ef | grep mrtg

root      1666     1  0 11:00 ?        00:00:00 /usr/bin/perl -w /usr/bin/mrtg /etc/mrtg.cfg

 

regards,

 

Diarmuid




--

 

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

 

 

 

On 28 February 2018 at 07:32, Edrich de Lange <edd at delcon.biz <mailto:edd at delcon.biz> > wrote:

Is your cron running?




  <https://mail.google.com/mail/u/0/images/cleardot.gif> 

  <http://delcon.biz/delconeddsig.jpg> 

 

On Wed, Feb 28, 2018 at 6:09 AM, Diarmuid O Briain <diarmuid at obriain.com <mailto:diarmuid at obriain.com> > wrote:

Barry,

 

I am running traffic between the ISPs and this is the graphs

 

regards,

 

Diarmuid

 






--

 

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

 

 

 

On 27 February 2018 at 23:08, Barry O'Donovan <barry.odonovan at inex.ie <mailto:barry.odonovan at inex.ie> > wrote:



Diarmuid O Briain wrote:
> I thought I had graphing working, the MRTG graphs appear. SNMP from the
> switch is working, see extract from /etc/mrtg.cfg and I have done an
> SNMP walk for the OID from the extract and the switch is responding.
>
> What other things should I check ?

It's not clear from the above as to what's not working?

 - Barry


_______________________________________________
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 <mailto:ixpmanager at inex.ie> 
https://www.inex.ie/mailman/listinfo/ixpmanager

 


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

 



---
This email has been checked for viruses by AVG.
http://www.avg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20180302/0c838d05/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 33789 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20180302/0c838d05/attachment-0001.jpg>


More information about the ixpmanager mailing list