Page 1 of 1

MRTG issues in Ubuntu

Posted: Thu Nov 09, 2023 4:45 am
by joniMcGlade
We're having issues with a relatively new install of Nagios XI. The performance graphs via MRTG keep breaking, particularly after a reboot of the server. The Permissions for the /var/lib/mrtg keep going back to:

drwxr-x--- 2 mrtg mrtg 77824 Nov 7 10:41 mrtg

And all the files under the dir go into the same state. As the cron is setup to run under www-data:nagios, this then breaks & we've to reset permissions post the reboot. Has anyone got this working where you don't need manual fixes on the directory post a reboot?

Thanks.

Re: MRTG issues in Ubuntu

Posted: Thu Nov 09, 2023 9:56 am
by cbyers
Good morning joniMcGlade,

During the setup of MRTG on a Ubuntu OS there is a service that gets created that resets the permissions at boot. We do not use that service so you can disable it will the following command.

systemctl stop mrtg ; systemctl disable mrtg

A bug report has been filed.

Thank you, please reach out if there is anything else you need

Re: MRTG issues in Ubuntu

Posted: Thu Nov 09, 2023 10:24 am
by joniMcGlade
Thanks Cody,

We'll implement this & test it out!

Appreciate the response.

Re: MRTG issues in Ubuntu

Posted: Mon Dec 04, 2023 10:24 am
by sgardil
Hey joniMcGlade, if you are still having this issue it has been fixed in an upcoming release that should be releasing relatively soon.

Re: MRTG issues in Ubuntu

Posted: Mon Dec 04, 2023 10:25 am
by joniMcGlade
Thanks for the update, we've had no issues since the previous comment re stopping the service but good to hear re the fix! :D