Nagios Server Disk Usage filled by error log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Nagios Server Disk Usage filled by error log

Post by ecarrasq »

System Info

Linux Distribution and version?

*Linux fwapp003.wvus.org 2.6.18-371.4.1.el5PAE #1 SMP Thu Jan 30 06:51:58 EST 2014 i686 i686 i386 GNU/Linux
CentOS release 5.10 (Final)


32 or 64bit?

32 bit

VMware Image or Manual Install of XI?

VMware Image

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

Forced SSL on NagiosXi login web screen

Nagios Xi version: Nagios XI 2012R2.8

Issue:
Nagios Server Disk Usage filled and crashed the server I attached some info from the logs. Logs were manually cleared and server is back up now.

All server applications halted.

What would have caused this?

Please help with Root Cause Analysis, as we cannot afford for this to happen again.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Server Disk Usage filled by error log

Post by abrist »

ecarrasq wrote:What would have caused this?
I presume you answered this question yourself earlier:
ecarrasq wrote:Nagios Server Disk Usage filled and crashed the server
When the disk fills up, services cannot create lock files, halting their startup.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Nagios Server Disk Usage filled by error log

Post by ecarrasq »

Thanks, but what error would have caused this log file to fill up?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Server Disk Usage filled by error log

Post by Box293 »

So to resovle your issue, how did you free up disk space? Delete some files? Where were they located?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Nagios Server Disk Usage filled by error log

Post by ecarrasq »

Echoed out all Apache error logs
Purged /usr/local/nagvis/var/nagvis-audit.log
Configured new cronjob for 6am daily to purge echo > /usr/local/nagvis/var/nagvis-audit.log
Checked perms on /usr/local/nagiosxi/html/images/locale/.htaccess - file doesn't exist
Created file - touch /usr/local/nagiosxi/html/images/locale/.htaccess
Changed ownership of file - chown nagios:nagios /usr/local/nagiosxi/html/images/locale/.htaccess
Checked apache logs again, /var/www/html/favicon.ico didn't exist
Created file - touch /var/www/html/favicon.ico, default perms of 644 were picked up on creation
We were able to "fix" the current issue, but we need to know the cause, so it doesn't happen again.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Server Disk Usage filled by error log

Post by lmiltchev »

Did you check which log filled up the most? This can give you a hint where to look for the issue.

You can clear the biggest log files (if you don't need the info) with "cat /dev/null > <your log file>" and check later how fast (and which ones) they are growing:

Code: Select all

du -a /var/log/ | sort -n -r | head -n 10
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Nagios Server Disk Usage filled by error log

Post by ecarrasq »

Did you check which log filled up the most?

the /var/log/httpd/error.log

Also, what is on line 93, as the error.log was full of the following error (We cannot see it, as the coreuiproxy.inc.php is encrypted):

PHP Warning: feof(): supplied argument is not a valid stream resource in /usr/local/nagiosxi/html/includes/components/nagioscore/coreuiproxy.inc.php on line 93, referer: https://fwapp003.wvus.org/nagiosxi/views/
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Server Disk Usage filled by error log

Post by slansing »

Do you have any views that are pointing to pages that are non standard in Nagios XI? I.e. (not pages you grabbed using the get-permalink icon). I'd definitely clear some of your old apache logs if I were you, keep around a few of the most recent ones as we might need them to help troubleshoot.
Locked