hi,
- the sleep command (e.g. sleep 300 seconds), will have a duration of more than 300seconds,
- the script becomes really long to execute, so Agent_execution_time can be above 300 seconds (sometimes near 360=6minutes instead of a few seconds)
So the program still counts on 300 seconds (5minutes) and divids by 300... In fact the whole cycle (execute and wait) can take more than 600seconds (10minutes), this is twice the expected time, so I could have had some near-200% values for cpu_sys!!
So every time the script is executed, it's sliding a bit, sometimes making the server think the data is missing.
so maybe we can do something else than use sleep? like cron, so it will be far more precise and optimize the code?
As a great majority of GENERIC_DATA_INC incremental data is strongly time-dependent, this situation makes them useless and meaningless.
bye for now!
You're right: in slow systems or systems with a high load, and using this with agents (not for network server) you can get some imprecissions.
For next version we will use agent contact time (local), who has much more precission.
Thanks for your observation, as usual you're testing Pandora in depth :-)