Page 1 of 2
Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 12:28 pm
by GacoAdmin110
9-24-2015 12-26-36 PM.jpg
I have created a VM for the log server 3 times now, and every VM that I have created dies after a week or so of running.
Everything is running fine on them, and all of a sudden the web portal gives a service elasticsearch restart error.
When I go to the VM this is what I see.
Anyone run into it before?
Thnx
Mike
Re: Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 12:32 pm
by eloyd
Need details. Like how much memory are you allocating, how many CPUs, how many cores? I'm guessing you're running out of memory.
Re: Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 12:52 pm
by hsmith
To expand on what
@eloyd said, can we please get the output of
df -ih and
df -h?
Re: Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 1:16 pm
by GacoAdmin110
2 cpus, 4GB RAM, 128GB hdd
Thnx
Re: Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 1:20 pm
by GacoAdmin110
I just tried 4cpus, 8GB ram...still no luck
Re: Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 1:22 pm
by GacoAdmin110
9-24-2015 1-22-12 PM.jpg
I am guessing I filled the hdd...funny how I allocated 128GB but it only sees 100GB of it...anyone know the commands to expand the hdd?
Must be something about the log retention that I will have to shorten I am guessing.
Re: Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 1:25 pm
by eloyd
Are you asking how to expand the disk at the VM host level or the VM guest level? If it's VM host, then I'd suggest
http://kb.vmware.com/selfservice/micros ... Id=1004047
Expanding the guest disk space would be easily done with a quick Google search.
Re: Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 1:25 pm
by GacoAdmin110
hsmith wrote:To expand on what
@eloyd said, can we please get the output of
df -ih and
df -h?
Here is what I found by the way...see above
Re: Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 1:26 pm
by GacoAdmin110
VM I know...just wondering if there is a way inside the Nagios guest OS to expand
Re: Nagios LS stops working after a week or so...
Posted: Thu Sep 24, 2015 1:30 pm
by eloyd
IF you have additional unallocated space available to the VM guest, then you should be able to resize the partition via resize2fs.
It may be easier to start over and either increase VM host virtual disk size or you may be able to add a second disk now for /var/log mount point.