Page 1 of 1

Nagios not considering disk space

Posted: Thu Jun 22, 2017 9:52 am
by W.W.
Hi,

I have several VM installed on VMware ESXi 6 and I have a nagios server on one of this VM.
My problem is the that when I increase the disk space (20G --> 100G) of the VM where nagios is installed the new disk space is visible in VMware but for nagios there is still 20G in the disk.
I check with that command : df -h

Code: Select all

[root@VM0018 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       19G   18G     0 100% /
tmpfs                 259M     0  259M   0% /dev/shm
/dev/sda1             477M  133M  319M  30% /boot
I don't know if that is VMware issue or nagios issue.

Thank for your help.

Re: Nagios not considering disk space

Posted: Thu Jun 22, 2017 10:22 am
by mcapra
It's neither; It's a Linux issue.

You need to expand the logical volume to match the new physical disk size. Plenty of guides out there for doing that, though most of them will need to be modified slightly for your specific setup.

Prior to taking on that endeavor, I would highly recommend taking a VM snapshot.

Re: Nagios not considering disk space

Posted: Thu Jun 22, 2017 10:38 am
by dwhitfield
If you are using CentOS or RHEL 6/7, you can use our instructions: https://assets.nagios.com/downloads/nag ... M-Disk.pdf

Re: Nagios not considering disk space

Posted: Fri Jun 23, 2017 2:55 am
by W.W.
Thank you dwhitfield & mcapra I'm gonna check it and come back to you

Re: Nagios not considering disk space

Posted: Fri Jun 23, 2017 11:35 am
by dwhitfield
Let us know if you run into any issues.