<div dir="ltr">Hi <span class="gmail-il">Nick</span>,<div><br></div><div>Thanks, it worked correctly after creating the directory. However, after rebooting the folder is deleted.</div><div><br></div><div>If I point the lock file to a different directory MRTG starts fine after rebooting:</div><div><br></div><div>--lock-file /tmp/mrtg_l <br></div><div><br></div><div>Another approach could be to create the /var/lock/mrtg folder at start or simply use just /var/lock...</div><div><br></div><div> What do you think? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié., 5 ago. 2020 a las 11:13, Nick Hilliard (INEX) (<<a href="mailto:nick@inex.ie">nick@inex.ie</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>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" style="border:0px none">
<div style="margin:30px 25px 10px"><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="padding-right:6px;font-weight:500;color:rgb(72,86,100);text-decoration:none" href="mailto:gennesys@gmail.com" target="_blank">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 style="color:rgb(144,154,164);margin-left:24px;margin-right:24px">
<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 style="margin:30px 25px 10px"><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="padding-right:6px;font-weight:500;color:rgb(72,86,100);text-decoration:none" href="mailto:nick@inex.ie" target="_blank">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 style="color:rgb(144,154,164);margin-left:24px;margin-right:24px"><pre>Hi Mauricio,
Mauricio Oviedo wrote on 04/08/2020 15:17:
</pre><blockquote type="cite"><pre> 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>Aug 04 10:10:47 srv-ixpmanager systemd[1]: mrtg.service: Failed with result 'protocol'.
</pre></blockquote><pre>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 href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a>
Unsubscribe or change options here: <a href="https://www.inex.ie/mailman/listinfo/ixpmanager" target="_blank">https://www.inex.ie/mailman/listinfo/ixpmanager</a>
</pre>
</div>
<div style="margin:30px 25px 10px"><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="padding-right:6px;font-weight:500;color:rgb(72,86,100);text-decoration:none" href="mailto:gennesys@gmail.com" target="_blank">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 style="color:rgb(144,154,164);margin-left:24px;margin-right:24px">
<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" target="_blank">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" target="_blank">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" target="_blank">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></fieldset><br><div>_______________________________________________<br>INEX
IXP Manager mailing list<br><a href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a><br>Unsubscribe or change
options here: <a href="https://www.inex.ie/mailman/listinfo/ixpmanager" target="_blank">https://www.inex.ie/mailman/listinfo/ixpmanager</a><br></div>
</div>
</blockquote>
<br>
</div>
</blockquote></div>