Page 1 of 1

Cron Error

Posted: Fri Jul 21, 2017 4:09 am
by peter19x
Hello,

I am getting several emails from "Cron Daemon <[email protected]"

Subject :Cron <nagios@nagios-b> /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1


and the below content

/bin/sh: fork: retry: Resource temporarily unavailable
/bin/sh: fork: retry: Resource temporarily unavailable
/bin/sh: fork: retry: Resource temporarily unavailable


Not sure what it is.

Best Regards,
Peter

Re: Cron Error

Posted: Fri Jul 21, 2017 8:51 am
by tacolover101
you're having system issues, may want to consult your linux administrator - https://access.redhat.com/solutions/543503

Re: Cron Error

Posted: Fri Jul 21, 2017 1:33 pm
by dwhitfield
@tacolover101 is correct, but we may be able to help a bit.

You might want to just reboot the server and see if that resolves the issue.

Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

Re: Cron Error

Posted: Wed Sep 13, 2017 7:17 am
by peter19x
Hi,

Sorry for the late reply, I was on holiday. I have PMed you the profile as requested.

Best Regards,
Peter

Re: Cron Error

Posted: Wed Sep 13, 2017 9:36 am
by dwhitfield
Are you still get these errors? You seem to be having high load, but otherwise things look fine. The load may be why the resource is not available. If you have any checks where you can increase the check interval, that will buy you more resources. It will depend on what type of check and how much you increase whether it will be enough.

I would advise upgrading to 5.4.4 or later if possible: https://assets.nagios.com/downloads/nag ... rsions.php

That will make the profiles more useful. It's be great to get more sysstat.log output, but the problem is there is nothing to keep the log from getting very large if you just change it to /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1. This is something that is fixed in 5.4.4, which is why I suggested it. Anyway, you could change it, leave it for a day (or however long it takes for the entries to show up), and then change it back.

Also, for the techs: profile is shared.