ERROR: Cannot update /var/lib/mrtg/ ... could not lock RRD

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DFaught
Posts: 62
Joined: Tue Sep 26, 2017 12:50 pm

ERROR: Cannot update /var/lib/mrtg/ ... could not lock RRD

Post by DFaught »

This server has been running fine with no recent changes to my knowledge, but now it is getting lots of these errors in the mrtg.log. Everything is green on the System Status page, leading me to think that the system is fine, but apparently a lot of the MRTG-collected data is not being stored.

A system profile is attached.
You do not have the required permissions to view the files attached to this post.
DFaught
Posts: 62
Joined: Tue Sep 26, 2017 12:50 pm

Re: ERROR: Cannot update /var/lib/mrtg/ ... could not lock R

Post by DFaught »

It looks like a contributing factor might be the fact that some of the MRTG tasks launched at the cron interval are running into the next interval. This doesn't happen all the time.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: ERROR: Cannot update /var/lib/mrtg/ ... could not lock R

Post by ssax »

It looks like a contributing factor might be the fact that some of the MRTG tasks launched at the cron interval are running into the next interval. This doesn't happen all the time.
That's likely the ONLY issue as the other MRTG process has it locked.

Please follow this guide to increase your forks to get that to not occur, specifically the "MRTG Running Longer Than Five Minutes" section:

Code: Select all

https://support.nagios.com/kb/article.php?id=29
Locked