I examined the problem a little more. It probably relies on cron jobs. Because I run ocsinventory from cron jobs. It probably cant take PATH variable so I export a PATH=/sbin:/bin:/usr/sbin:/usr/bin variable in cron job.It seems solved for now.Thank for your interests.