Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_disk_on_lxc

Rating
0 votes
Favoured:
0
Current Version
1
Last Release Date
2017-11-22
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
610
Files:
FileDescription
check_disk_on_lxccheck_disk_on_lxc
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This is a simple nagios plugin to monitoring the disk usage percentage, when you are working inside LXC container on proxmox.
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!