After opening a ticket with Lansweeper's technical support, I gathered the following information:
On Linux servers generally, Lansweeper scans gather OS information by filtering the information returned by the following command:
cat /etc/*release
On Linux RHEL7 servers, a new file (/etc/os-release) was added to those previously existing (i.e., /etc/redhat-release and /etc/system-release). Lansweeper seems to be "catching" OS information from the new file (because it's first in alphabetical order?), and specifically from the following line in /etc/os-release -- which is why the OS release doesn't appear when it's incomplete there:
PRETTY_NAME="Red Hat Enterprise Linux"
For some unknown reason, OS information on that line is incomplete only on
certain Linux RHEL7 servers (seemingly, VMs are more probable candidates...).
Workaround: edit that specific line in /etc/os-release, replacing the value with the complete OS information, e.g.:
PRETTY_NAME="Red Hat Enterprise Linux Server release 7.4 (Maipo)"
Unfortunately, each OS upgrade replaces /etc/os-release, so the workaround might have to be applied repeatedly, for instance in the cron.weekly routine.
Permanent solution? Lansweeper support promises they will be developing a new feature enabling Linux scans customization. However, no delivery date was given. Such a feature would allow us, for instance, to always refer to /etc/redhat-release, which seems to always return the complete OS information, regardless of the RHEL.
Hope this will help someone!