Quantcast
Channel: Ocsinventory Q&A - Recent questions
Viewing all articles
Browse latest Browse all 4370

Cron of rpm ocsinventory-agent-core

$
0
0

Hello,

We deployed ocs agent on RHEL using rpm found on official repository (https://rpm.ocsinventory-ng.org/enterprise).

The rpm ocsinventory-agent has the ocsinventory-agent-core dependency. No worry about that :)

In this rpm, we found file /etc/cron.hourly/ocsinventory-agent, but we have 400 servers and they send at the same times reporting. On virtual infrastructure, maybe it can cause I/O storm.

Second problem, we want just execute 1 time by day so I'm thinking of doing something like this:

- remove file /etc/cron.hourly/ocsinventory-agent (but what if we update the package? I haven't looked at the spec file details yet).

-create a cron with execution window from 0AM to 7 AM each days with random value:

cat << EOF >> /etc/cron.d/ocsinventory-agent

source /etc/sysconfig/ocsinventory-agent

$(($RANDOM*59/32767)) $(($RANDOM*6/32767)) * * * root  /usr/bin/ocsinventory-agent --tag=${OCSTAG[0]} --lazy --nolocal --server=${OCSSERVER[0]}

EOF

Have you another solution about that?

Thank you for your feedback, and sorry for my poor english :P


Viewing all articles
Browse latest Browse all 4370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>