MRTG issues in Ubuntu

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
joniMcGlade
Posts: 3
Joined: Thu Nov 09, 2023 4:40 am

MRTG issues in Ubuntu

Post 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.
cbyers
Posts: 11
Joined: Mon Sep 19, 2022 12:53 pm

Re: MRTG issues in Ubuntu

Post 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
Cody Byers
joniMcGlade
Posts: 3
Joined: Thu Nov 09, 2023 4:40 am

Re: MRTG issues in Ubuntu

Post by joniMcGlade »

Thanks Cody,

We'll implement this & test it out!

Appreciate the response.
sgardil
Posts: 327
Joined: Wed Aug 09, 2023 9:58 am

Re: MRTG issues in Ubuntu

Post 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.
joniMcGlade
Posts: 3
Joined: Thu Nov 09, 2023 4:40 am

Re: MRTG issues in Ubuntu

Post 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