<html theme="bilue"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body text="#485663">Hi Mauricio,<br>
<br>
Can you try creating the lock directory to see if that fixes the
problem?<br>
<br>
# mkdir -p /var/lock/mrtg<br>
# chmod 755 /var/lock/mrtg<br>
# chown mrtg:mrtg /var/lock/mrtg<br>
<br>
Nick<br>
<span>
</span><br>
<blockquote type="cite"
cite="mid:CABdgxozdeW0gTzFC_ajNwCb_=Hpg2qvh4NS7wkokEHLhoYrb9g@mail.gmail.com"
style="border: 0px none ! important;">
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvHr"
style="margin:30px 25px 10px 25px;"><div
style="width:100%;border-top:2px solid
rgba(146,154,163,0.7);padding-top:10px;"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a style="color:#485664
!important;padding-right:6px;font-weight:500;text-decoration:none
!important;" href="mailto:gennesys@gmail.com" moz-do-not-send="true">Mauricio
Oviedo</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#909AA4"><span style="padding-left:6px">4
August 2020 at 15:38</span></font></div> </div></div>
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvBody"
__pbrmquotes="true"
style="color:#909AA4;margin-left:24px;margin-right:24px;">
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div
dir="ltr">Hi Nick,<div><br></div><div>1. /var/log/mrtg/mrtg.log</div><div><br>2020-08-04
10:16:27 -- Started mrtg with config '/var/lib/mrtg/ixpmanager.cfg'<br>2020-08-04
10:16:27 -- 2020-08-04 10:16:27: ERROR: Creating templock
/var/lock/mrtg/mrtg_l_2715: No such file or directory at /usr/bin/mrtg
line 1970.<br></div><div><br></div><div>2. Yes,
/var/lib/mrtg/ixpmanager.cfg is being generated correctly by artisan </div><div><br></div><div>Thanks,</div><div>Mauricio</div><div><br></div><div><br></div></div><br>
</div>
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvHr"
style="margin:30px 25px 10px 25px;"><div
style="width:100%;border-top:2px solid
rgba(146,154,163,0.7);padding-top:10px;"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a style="color:#485664
!important;padding-right:6px;font-weight:500;text-decoration:none
!important;" href="mailto:nick@inex.ie" moz-do-not-send="true">Nick
Hilliard (INEX)</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#909AA4"><span style="padding-left:6px">4
August 2020 at 15:32</span></font></div> </div></div>
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvBody"
__pbrmquotes="true"
style="color:#909AA4;margin-left:24px;margin-right:24px;"><pre wrap="">Hi Mauricio,
Mauricio Oviedo wrote on 04/08/2020 15:17:
</pre><blockquote type="cite"><pre wrap=""> Process: 2296 ExecStart=/usr/bin/mrtg --daemon
/var/lib/mrtg/ixpmanager.cfg --logging /var/log/mrtg/mrtg.log --pid-file=/run/mrtg/mrtg.pid --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok (code=exited, status=1/FAILURE)
</pre></blockquote><blockquote type="cite"><pre wrap="">Aug 04 10:10:47 srv-ixpmanager systemd[1]: mrtg.service: Failed with result 'protocol'.
</pre></blockquote><pre wrap="">Two things here:
1. what error is appearing in /var/log/mrtg/mrtg.log?
1. can you make sure that the configuration in
/var/lib/mrtg/ixpmanager.cfg is what's being generated by artisan?
Nick
_______________________________________________
INEX IXP Manager mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ixpmanager@inex.ie">ixpmanager@inex.ie</a>
Unsubscribe or change options here: <a class="moz-txt-link-freetext" href="https://www.inex.ie/mailman/listinfo/ixpmanager">https://www.inex.ie/mailman/listinfo/ixpmanager</a>
</pre>
</div>
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvHr"
style="margin:30px 25px 10px 25px;"><div
style="width:100%;border-top:2px solid
rgba(146,154,163,0.7);padding-top:10px;"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a style="color:#485664
!important;padding-right:6px;font-weight:500;text-decoration:none
!important;" href="mailto:gennesys@gmail.com" moz-do-not-send="true">Mauricio
Oviedo</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#909AA4"><span style="padding-left:6px">4
August 2020 at 15:17</span></font></div> </div></div>
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvBody"
__pbrmquotes="true"
style="color:#909AA4;margin-left:24px;margin-right:24px;">
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div
dir="ltr">Hi!<div><br></div><div>I´m trying to move MRTG configuration
to systemd, following the information here:</div><div><br></div><div><a
href="https://github.com/inex/IXP-Manager/issues/627"
moz-do-not-send="true">https://github.com/inex/IXP-Manager/issues/627</a><br></div><div><br></div><div>OS:
Ubuntu 18.04</div><div>IXPMv: 5.6.0</div><div><br></div><div>But I'm
unable to start mrtg now. Here the logs:</div><div><br></div><div>root@ixpmanager:~#
systemctl start mrtg<br>Job for mrtg.service failed because the service
did not take the steps required by its unit configuration.<br>See
"systemctl status mrtg.service" and "journalctl -xe" for details.<br><br>root@ixpmanager:~#
systemctl status mrtg.service<br>● mrtg.service - Multi-router Traffic
Grapher<br> Loaded: loaded (/etc/systemd/system/mrtg.service; enabled;
vendor preset: enabled)<br> Active: failed (Result: protocol) since
Tue 2020-08-04 10:07:18 -04; 7s ago<br> Process: 2296
ExecStart=/usr/bin/mrtg --daemon /var/lib/mrtg/ixpmanager.cfg --logging
/var/log/mrtg/mrtg.log --pid-file=/run/mrtg/mrtg.pid --lock-file
/var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
(code=exited, status=1/FAILURE)<br><br>Aug 04 10:07:18 ixpmanager
systemd[1]: Starting Multi-router Traffic Grapher...<br>Aug 04 10:07:18
ixpmanager systemd[1]: mrtg.service: Failed to parse PID from file
/run/mrtg/mrtg.pid: Invalid argument<br>Aug 04 10:07:18 ixpmanager
systemd[1]: mrtg.service: Failed with result 'protocol'.<br>Aug 04
10:07:18 ixpmanager systemd[1]: Failed to start Multi-router Traffic
Grapher.<br></div><div><br></div><div>root@ixpmanager:~# journalctl -xe<br></div><div>Aug
04 10:10:47 srv-ixpmanager systemd[1]: Starting Multi-router Traffic
Grapher...<br>-- Subject: Unit mrtg.service has begun start-up<br>--
Defined-By: systemd<br>-- Support: <a
href="http://www.ubuntu.com/support" moz-do-not-send="true">http://www.ubuntu.com/support</a><br>--<br>--
Unit mrtg.service has begun starting up.<br>Aug 04 10:10:47
srv-ixpmanager systemd[1]: mrtg.service: Failed to parse PID from file
/run/mrtg/mrtg.pid: Invalid argument<br>Aug 04 10:10:47 srv-ixpmanager
systemd[1]: mrtg.service: Failed with result 'protocol'.<br>Aug 04
10:10:47 srv-ixpmanager systemd[1]: Failed to start Multi-router Traffic
Grapher.<br>-- Subject: Unit mrtg.service has failed<br>-- Defined-By:
systemd<br>-- Support: <a href="http://www.ubuntu.com/support"
moz-do-not-send="true">http://www.ubuntu.com/support</a><br>--<br>--
Unit mrtg.service has failed.<br></div><div><br></div><div><br></div><div>Could
you point me in the right direction?</div><div><br></div></div>
<br><fieldset class="mimeAttachmentHeader"></fieldset><br><div>_______________________________________________<br>INEX
IXP Manager mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:ixpmanager@inex.ie">ixpmanager@inex.ie</a><br>Unsubscribe or change
options here: <a class="moz-txt-link-freetext" href="https://www.inex.ie/mailman/listinfo/ixpmanager">https://www.inex.ie/mailman/listinfo/ixpmanager</a><br></div>
</div>
</blockquote>
<br>
</body></html>