Hello, the application is constantly generating core files and I have no idea why or how to address it. The files are filling up the partition every 2 days and running me out of space. This seems to have occurred after the last update. Any guidance would be greatly appreciated. Server is running RHEL7.9; I’m also experiencing a composer issue with PHP which I’ve posted in a separate thread.
What’s in the core files?
[root@xxxxx librenms]# more core.10002
******** core.10002: Not a text file ********
[root@xxxxx librenms]# more core.10002
******** core.10002: Not a text file ********
Might not work on RHEL, but try file core.10002
… on some systems it will identify the process name that created it. I don’t have any example to test on though.
Also on some systems, have a look in /var/crash/ for any files - if there are, they will often have the process in the filename and readable information in them.
[root@librenms]# file core.10103
core.10103: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from ‘php /nms/librenms/discovery.php -h 1597’, real uid: 500, effective uid: 500, real gid: 500, effective gid: 500, execfn: ‘/usr/bin/php’, platform: ‘x86_64’
[root@librenms]# file core.10103
core.10103: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from ‘php /nms/librenms/discovery.php -h 1597’, real uid: 500, effective uid: 500, real gid: 500, effective gid: 500, execfn: ‘/usr/bin/php’, platform: ‘x86_64’
this is from /var/log/php-fpm/error.log
[10-Mar-2025 16:51:18] NOTICE: Terminating …
[10-Mar-2025 16:51:18] NOTICE: exiting, bye-bye!
[10-Mar-2025 16:53:18] NOTICE: fpm is running, pid 1686
[10-Mar-2025 16:53:18] NOTICE: ready to handle connections
[10-Mar-2025 16:53:18] NOTICE: systemd monitor interval set to 10000ms
[10-Mar-2025 18:45:37] WARNING: [pool librenms] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 4 idle, an
d 10 total children
Look in logs/librenms.log
at the time the file core.10103
was created for the discovery line to see if anything is logged.