Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

redhat-lsb-core needed?

The OS is reported on Centos 7 as just 'Linux' if you do not have the redhat-lsb-core package installed.  However this pulls in many otherwise unnecessary dependencies like x libs and fonts.   Is there a better way to just get the correct OS name?
in OCS Inventory NG agent for Unix by (1.1k points)

2 Answers

0 votes
Yes, you have to install this package to have a proper identification of your OS. You can write your own plugins, but thats way more complicate.
by (620 points)
0 votes
Centos 7 is normally managed by the ocs 2.1 agent without lsb_release.
But there is a bug:
in the following file /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/CentOS.pm,  /etc/redhat_release is discarded if it is a link. But it should not since in Centos this file is a link.
To solve this problem it is necessary to remove the lines 7 and 8 of CentOS.pm file.
by (200 points)
Powered by Question2Answer