Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_disk_on_lxc
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
It is based on df command to gather info about disk and awk to manipulate output.
Inside LXC container the disk info is misaligned from inside and outside container.
For example for my LXC container from host I read (from lvs command):
vm-101-disk-1 LSize:36.00g Data% 68.99
this values are in Gib (Gibibyte)
From inside container with dh command I read:
Filesystem: /dev/mapper/pve-vm--101--disk--1 Size 38G Use% 51%
and this values are in more useful format GB (Gigabyte). I need this values!
For example for my LXC container from host I read (from lvs command):
vm-101-disk-1 LSize:36.00g Data% 68.99
this values are in Gib (Gibibyte)
From inside container with dh command I read:
Filesystem: /dev/mapper/pve-vm--101--disk--1 Size 38G Use% 51%
and this values are in more useful format GB (Gigabyte). I need this values!
Reviews (0)
Be the first to review this listing!