My daily script with command as follows, is getting stuck,hogging the cpus and memory :-
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
740110 librenms 20 0 4423M 4331M 23476 R 98.6 36.2 27h14:08 php /home/librenms/daily.php -f recalculate_device_dependencies
3603782 librenms 20 0 2394M 2309M 23424 R 90.4 19.3 6h22:09 php /home/librenms/daily.php -f recalculate_device_dependencies
I am getting by, by killing them daily but this is a high-maintenance solution.
The validate.php passes mostly but for advising of some files having incorrect permissions, which seem to be also changing daily (I’ve rolled the advice into a ‘daily fix’ script like :-
(yes i do have a non-standard placement of librenms data dirs, for my /home partition is the bigger one)
I can’t help but think this might be related to each other somehow? But anyway if not, where can I find what is the ‘dependency calculation’ getting stuck on?
(I think this - the cpu/memory hog - somehow started not long after updating php to 8.1 but not immediately, i don’t remember seeing this immediately after the update.)
The daily update script does not necessarily need to force a recalculation every day.
Did you make this modification manually “-f recalculate_device_dependencies” ?
If not, you can manage the daily.sh script launch:
I never touched any of that; this came stock when I installed (on Debian) using the official guide. it should all be stock ; as far as I can see from the daily.sh it is invoking this option