ERROR: fork 3 has died ahead of time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
sathevaner
Posts: 62
Joined: Wed Nov 29, 2017 11:00 am

ERROR: fork 3 has died ahead of time

Post by sathevaner »

Since upgrading to 5.5.7 via the GUI, I am seeing repeated notifications involving the MRTG cron job:

*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios
2018-11-29 13:55:12: ERROR: fork 3 has died ahead of time ...
These are happening every 5 minutes. Please advise on how to troubleshoot this.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: ERROR: fork 3 has died ahead of time

Post by npolovenko »

Hi, @sathevaner. Please remove --user=nagios and --group=nagios from the cron:
*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok
Then restart the crond:
service crond restart
Let me know if it fixes your problem.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
sathevaner
Posts: 62
Joined: Wed Nov 29, 2017 11:00 am

Re: ERROR: fork 3 has died ahead of time

Post by sathevaner »

Good morning, @npolovenko:

Removing the user and group from the Cron job had no effect. Please advise.
User avatar
sathevaner
Posts: 62
Joined: Wed Nov 29, 2017 11:00 am

Re: ERROR: fork 3 has died ahead of time

Post by sathevaner »

UPDATE: The messages stopped as of 9:30 AM CT. Standing by to ensure these don't reappear.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ERROR: fork 3 has died ahead of time

Post by lmiltchev »

Let us know when you think it's safe to lock the topic. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
sathevaner
Posts: 62
Joined: Wed Nov 29, 2017 11:00 am

Re: ERROR: fork 3 has died ahead of time

Post by sathevaner »

It appears the problem has been resolved. Feel free to lock this thread. I will open a new one if I see the issue happen again.

Thank you both for the assistance!
Locked