Hi, there's an issue raised on Github. I suggest following it to see when a definitive fix might be published: https://github.com/OCSInventory-NG/UnixAgent/issues/461
I managed to get the agent running by renaming EDID.pm to end in .bak in /Applications/OCSNG.app/Contents/Resources/lib/Parse/ and starting the agent. On the inventory server I could see the agent made contact.
Last inventory: 04/16/2024 22:27
Last contact: 04/16/2024 22:27
I don't know how important https://metacpan.org/pod/Parse::EDID is for OCS. Going by the description of the project. I could probably do without the information for Apple systems.
This module provides some function to parse Extended Display Identification Data binary data structures.
Extended Display Identification Data (EDID) is a metadata format for display devices to describe their capabilities to a video source. The data format is defined by a standard published by the Video Electronics Standards Association (VESA).
If you're using an Apple Silicon chip an additional fix is required.
Downloaded the source of List::Util: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Scalar-List-Utils-1.63.tar.gz
Compile using (this will only compile for arm64):
perl Makefile.PL
make
If you would like to compile the bundle to be compatible with more archs:
env ARCHFLAGS='-arch arm64 -arch arm64e -arch x86_64'
perl Makefile.PL
make
Copy Util.bundle from your compile location Scalar-List-Utils-1.63/blib/arch/auto/List/Util and place it in: /Applications/OCSNG.app/Contents/Resources/lib/darwin-thread-multi-2level/auto/List/Util
After some further testing the .app works currently for me. The above mentioned changes made it possible.
[Fri Apr 19 13:04:15 2024][info] [download] Beginning work. I am 81816.
[Fri Apr 19 13:04:15 2024][info] [download] Option turned off. Exiting.
[Fri Apr 19 13:07:13 2024][info] [download] Download is off.
[Fri Apr 19 13:07:23 2024][info] [download] Beginning work. I am 82201.
[Fri Apr 19 13:07:23 2024][info] [download] Option turned off. Exiting.
Now you should be able to start the agent if you call it directly from the terminal: sudo /Applications/OCSNG.app/Contents/Resources/ocsinventory-agent
A workaround could be to execute the agent using cron. The app itself still doesn't appear to work.