<div dir="ltr">
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">ERROR: Mrtg will most likely not work properly when the environment</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"> variable LANG is set to UTF-8. Please run mrtg in an environment</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"> where this is not the case. Try the following command to start:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"> env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">This is outpout when i tried to enter this command<span> </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg<br>then it displayed this output:<span> </span></span><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">ERROR: CFG Error in "workdir", file /etc/mrtg/mrtg.cfg line 8: Working directory /var/www/mrtg does not exist<br><br>so what i must do ? i think i must change that workdir directory but from where?<br><br><br><br></span></div>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 24, 2018 at 2:10 PM, Giorgi Kajaia <span dir="ltr"><<a href="mailto:giokajana@gmail.com" target="_blank">giokajana@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>ERROR: Mrtg will most likely not work properly when the environment</div><div> variable LANG is set to UTF-8. Please run mrtg in an environment</div><div> where this is not the case. Try the following command to start:</div><div><br></div><div> env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg</div><div>This is outpout when i tried to enter this command
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg<br>then it displayed this output: </span><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">ERROR: CFG Error in "workdir", file /etc/mrtg/mrtg.cfg line 8: Working directory /var/www/mrtg does not exist<br><br>so what i must do ? i think i must change that workdir directory but from where?</span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br><br></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 24, 2018 at 2:05 PM, Nick Hilliard <span dir="ltr"><<a href="mailto:nick@inex.ie" target="_blank">nick@inex.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Giorgi Kajaia wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
May 24 13:53:07 root mrtg[13929]: * Starting mrtg<br>
May 24 13:53:07 root mrtg[13929]: ERROR: CFG Error in "workdir", file /etc/mrtg/mrtg.cfg line 8: Working<br>
May 24 13:53:07 root systemd[1]: mrtg.service: Control process exited, code=exited status=2<br>
</blockquote>
<br></span>
systemd is truncating the full error text from mrtg, but the full error in this situation is: "Working directory XXXXXX does not exist".<br>
<br>
This means that you've specified a directory in your .env file for MRTG which doesn't exist.<br>
<br>
If you execute the following, it will show you what the problem is:<br>
<br>
# mrtg /etc/mrtg/mrtg.cfg<span class="m_-6232058290822170907HOEnZb"><font color="#888888"><br>
<br>
Nick<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>