Page 1 of 1
Nagios not processing data
Posted: Mon Sep 19, 2011 7:40 am
by lamin
Hey guys,
My nagios server is not processing any data since last night and I am sure what may cause that.
Re: Nagios not processing data
Posted: Mon Sep 19, 2011 9:50 am
by mguthrie
It looks like your hard disk may be full. If you're using a VM see our document on resizing the VMWare disk.
http://library.nagios.com/library/produ ... -disk-size
Re: Nagios not processing data
Posted: Mon Sep 19, 2011 10:47 am
by lamin
I am working on increase the size of my machine but for time being what files and directory should I remove in order to get nagios running until tomorrow?
I have found this directory: var/lib/mysql/nagios
Thanks
Re: Nagios not processing data
Posted: Mon Sep 19, 2011 11:37 am
by nscott
The only directory that I can say with clean conscience that it is ok to wipe is the /tmp/ directory. Everything else may be useful at some point down the line.
Re: Nagios not processing data
Posted: Tue Sep 20, 2011 12:36 pm
by lamin
I followed the procedure in the pdf you linked to and it didn't work. I was able to increase the size of the hard disk as ESX/Vmware sees it to 20G with no issues. The first step in the procedure you sent, resizing the partition using fdisk failed. No errors, it just wouldn't let me change the size of the root partition.
Re: Nagios not processing data
Posted: Tue Sep 20, 2011 1:50 pm
by mguthrie
Do you have any free space left on the drive at all? If not you'll have to stop Nagios, and free up just a little bit of space so that the new partition information can be stored somewhere. Do NOT delete /var/lib/mysql/nagios, that's your mysql backend for all of your Nagios data. Some files that you can delete to free up space would be the old nagios logs in /usr/local/nagios/var/archives, but I should note that the old Nagios core reports do parse these logs. The new reports that XI uses fetches information from the database, not log files. So as long as that doesn't bother you, the archives can be deleted.
Re: Nagios not processing data
Posted: Wed Sep 21, 2011 9:30 am
by lamin
How long nagios keeps the data? Is it possibility to automatically purge the data every 3 months? Doing that may free-up some space.
Re: Nagios not processing data
Posted: Wed Sep 21, 2011 10:46 am
by mguthrie
Yeah, in the Admin->Performance Settings->Database(tab), you can specify how long historical data is kept in the DB's, there's a cron job in place that will keep the DB's trimmed.
Re: Nagios not processing data
Posted: Thu Sep 22, 2011 10:45 am
by lamin
Can someone please answer my question under Directory File Count post?
Thanks
Re: Nagios not processing data
Posted: Thu Sep 22, 2011 11:22 am
by nscott
Lamin,
Please check the other thread.