If your version of MacOS X is the latest, the agent 2.1 will not work.
Try this version https://github.com/OCSInventory-NG/UnixAgent/files/790139/Ocsinventory_Agent_MacOSX.pkg.zip
If it work, please say us.
Try this version https://github.com/OCSInventory-NG/UnixAgent/files/790139/Ocsinventory_Agent_MacOSX.pkg.zip
If it work, please say us.