Hi,
Have you this line in /etc/ocsinventory-agent/modules.conf file and is the "Uptime.pm" file stored in /usr/local/share/perl5/Ocsinventory/Agent/Modules directory (this is for RHEL/Fedora/CentOS)?
use Ocsinventory::Agent::Modules::Uptime
Regards
Frank