Am using Nagios 4.3.4 which works fine most of the time but on odd occasions end up with errors seen below.
Nagios logs
(Return code of 12 is out of bounds : (No output on stdout) stderr: execvp(python, ...) failed. errno is 12: Cannot allocate memory))
(Return code of 7 is out of bounds : (No output on stdout) stderr: execvp(python, ...) failed. errno is 7: Argument list too long))
(Return code of 127 is out of bounds - plugin may be missing : (No output on stdout) stderr: python: error while loading shared libraries: libdl.so.2: cannot create shared object descriptor: Cannot allocate memory))
(Return code of 127 is out of bounds - plugin may be missing : (No output on stdout) stderr: python: error while loading shared libraries: libc.so.6: cannot create shared object descriptor: Cannot allocate memory))
(Return code of 127 is out of bounds - plugin may be missing : (No output on stdout) stderr: python: error while loading shared libraries: cannot allocate symbol search list: Cannot allocate memory))
(Return code of 127 is out of bounds - plugin may be missing : (No output on stdout) stderr: python: error while loading shared libraries: libc.so.6: cannot map zero-fill pages: Cannot allocate memory))
(Return code of 127 is out of bounds - plugin may be missing : (No output on stdout) stderr: python: error while loading shared libraries: cannot allocate symbol search list: Cannot allocate memory))
(Return code of 127 is out of bounds - plugin may be missing : (No output on stdout) stderr: python: error while loading shared libraries: libdl.so.2: failed to map segment from shared object: Cannot allocate memory))
httpd logs look like below
Any thoughts?[Tue Feb 05 17:03:20.477479 2019] [cgi:error] [pid 17656] (12)Cannot allocate memory: [client 209.78.42.241:62962] couldn't create child process: 12: tac.cgi
[Tue Feb 05 17:03:20.479178 2019] [cgi:error] [pid 17656] (12)Cannot allocate memory: [client 209.78.42.241:62962] AH01223: couldn't spawn child process: /usr/lib64/nagios/cgi-bin/tac.cgi
[Tue Feb 05 17:20:32.064283 2019] [cgi:error] [pid 29369] (12)Cannot allocate memory: [client 209.78.42.241:53292] couldn't create child process: 12: status.cgi
[Tue Feb 05 17:20:32.066149 2019] [cgi:error] [pid 29369] (12)Cannot allocate memory: [client 209.78.42.241:53292] AH01223: couldn't spawn child process: /usr/lib64/nagios/cgi-bin/status.cgi
[Tue Feb 05 17:20:32.073165 2019] [cgi:error] [pid 11652] (12)Cannot allocate memory: [client 223.237.224.147:17725] couldn't create child process: 12: status.cgi
[Tue Feb 05 17:20:32.073269 2019] [cgi:error] [pid 11652] (12)Cannot allocate memory: [client 223.237.224.147:17725] AH01223: couldn't spawn child process: /usr/lib64/nagios/cgi-bin/status.cgi