figured it out. My MySQL server is set to only accept connections from 127.0.01, so the localhost entry in the z-ocsinventory.conf file was the issue.
This post lead me to the answer.
http://ask.ocsinventory-ng.org/1/i-got-an-error-500-when-my-agent-contact-the-server?show=1#q1
This post lead me to the answer.
http://ask.ocsinventory-ng.org/1/i-got-an-error-500-when-my-agent-contact-the-server?show=1#q1