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.
this is what is shown in the logs during one of the core files that were generated. I disabled the cisco sla module in my config but i am not seeing a mib module in my config.
Does:
lnms config:get poller_modules.mib
or
lnms config:get discovery_modules.mib
Show anything?
1st command returns ‘true’; 2nd command returned nothing.
bash-4.2$ lnms config:get poller_modules.mib
true
bash-4.2$ lnms config:get discovery_modules.mib
bash-4.2$
Run lnms config:set poller_modules.mib
Then say yes.
I think that will fail since poller_modules.mib is not a valid setting. Probably it is defined in config.php. If it is not, probably need to delete the setting from the database directly.
I don’t see anything in the config.php …can someone assist with how to delete from the database directly?
In mysql: select * from config where config_name='poller_modules.mib';
Then get the config_id
from the output:
delete from config where config_id=X limit 1;