Hi,
This message is only a warning. This has been corrected for the last release (2.2).
I presume that the url in ocsinventory.ini file is set to http://####.####.####.####/ocsreports. This is not correct. You must set http://####.####.####.####/ocsinventory and restart tour ocs service.
Regards
Frank