-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh virtual machine storage information spamming #316
Comments
I also got some negative comments from my vCenter admins and the log spam has hindered acceptance in the past. |
Are you running your vSphereDB daemon with |
Indeed, it was running with --debug and --trace (my bad).
and reloaded + restarted the daemon. |
Please share your (anonymized) log lines after the restart |
Sure, but it's not much (using journalctl -u icinga-vspheredb). The last 2 lines repeat every few minutes:
|
So the spam is gone? You mentioned "Refresh virtual machine storage information": seems that it's no longer there (as it shouldn't be, w/o verbose/debug). The error regarding Storage Pods (in case there is no such) is known, please follow #310 for related updates. In case there is no spam apart from this, I'd close this issue. |
No the spam is still there. It's not spamming in the vspheredb daemon log, but in vSphere itself under recent tasks. As same as described in #296. vSphere shows this message for every VM every few minutes, what hides tasks running by an admin. |
Now I got it. It's not the vspheredb log you're complaining about, but the task list in your vCenter, as we're calling We call this only on VMs where we discover outdated information. On some systems this information is always recent, on others it isn't. We trigger Problem is: if we do not call this method, the storage usage information we fetch might become completely outdated - and therefore useless. Workaround for you:
Both workarounds will result in partially outdated information, this affects the "VM disk on datastore" usage, not the disk usage shipped via guest utilities. Outdated VMs will look as follows: If your vCenter admins have an idea on how to get this information refreshed on a regular interval, this would be very helpful. The required data lives in VirtualMachine.storage, RefreshStorageInfo() is the suggested refresh method. |
Possible alternative: calling RefreshDatastoreStorageInfo, and checking Datastore.Datastore.Info for freshness for each Datastore, instead of refreshing single VMs. According to the documentation, this "Refreshes all storage related information including free-space, capacity, and detailed usage of virtual machines. Updated values are available in summary and info."
|
The only information I got so far, was sth. about the PropertyCollector. But I guess, this is already used? Calling RefreshDatastoreStorageInfo sounds like a good idea imho. When there is only 1 task running instead of 1 for each VM, it would help a lot. |
Hi @Thomas-Gelf |
I investigated some real-world large installations, and while I still haven't been able to figure out WHY disk usage information tends to be so old (and provides refresh methods), at least the systems I investigated have been able to refresh their information at least once every two hours. For now I'll tune this down to 6 hours, which is IHMO terribly old - but better than nothing. |
Hi all,
basically, I have the same problem as described in #296
Sorry that I have to open a new issue for this, but I got no response in the original post.
Our admin team complains about the lot and often entries about "Refresh virtual machine storage information". We have a lot of VMs and these messages hinder their work so much, that they want to disable the module. Is there any way to reduce this?
Cheers,
Marcus
The text was updated successfully, but these errors were encountered: