icinga2-diagnostics
icinga2-diagnostics copied to clipboard
Avoid "find /..." without excludes
Anywhere in the code the diag script calls find like this
for i in $(find / -name php.ini 2>/dev/null)
Doing find /.... without any excludes is IMHO a bad idea, as we have a huge NFS share. Consider to use locate(1) in this situation and fall back to find(1) only if there is no locate(1) or it does not return results.