New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
OpenVZ/LibreNMS SNMP disk usage from within guest?
dragon2611
Member
in Help
Is it possible to get the disk space usage in a openVZ guest via SNMP?
I do NOT have access to the host node as it's a time4vps storage VPS.
LibreNMS is picking up CPU and Bandwidth usage and it's picked up
/run
/run/lock
/run/shm
/run/user
/sys/fs/cgroup
In terms of storage, but none of those seem to be showing the actual disk space usage.
Comments
@cassa
Used to use Observium + SNMP, found this https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1403730 but never got around to applying the patch and switched to check_mk anyway. Might work for you
Is snmpd actually providing this information?
Walk the disk oids and see what you get. You may have a config error on your snmpd.
http://www.unixmen.com/cacti-monitor-linux-servers-using-snmp/
Give the above link a try.
Especially on:
view all included .1 80
rocommunity YourCommunityCode default -V all
@markturner No I don't think SNMPd is providing the info, guess I'll have to either patch it or extend it with an addon script
Compiled net-snmp from source and it's working now, Ubuntu package doesn't have the required FS support to be able to read it it seems.
Also it's a bit of a pain to remove once installed it left behind a library that was being used instead of the one I compiled so I kept getting the wrong SNMPD version reported (5.72 where i'd built 5.73)
I originally submitted the simfs patch to launchpad, what I did to test it was
Edit: Fixed the fact that there is a missing carriage return at bottom of patch, and replaced debuild for dpkg-buildpackage to remove the need for a GPG key.
Package should be pinned unless you want any updates to the package in the repository to wipe this one out.