Page 2 of 3
Re: DB Connect Error
Posted: Thu Apr 04, 2013 2:17 pm
by abrist
What file system is your disk formatted in?
Re: DB Connect Error
Posted: Mon Apr 22, 2013 10:43 am
by sheld0r
It looks like I need to expand the volume where Nagios is installed, or maybe change the location of where the logs are stored? Would that be a better and safer idea?
Re: DB Connect Error
Posted: Mon Apr 22, 2013 10:51 am
by sheld0r
abrist wrote:What file system is your disk formatted in?
Here's what I go abrist
Uploaded with
ImageShack.us
Re: DB Connect Error
Posted: Mon Apr 22, 2013 11:23 am
by abrist
You disk is at 99% usage once again. You may be able to alter the partition sizes as you are using lvm. You would have to shrink /home and expand /
Otherwise, the easier route would be reinstall and re-provision, making sure /, /usr, and /var are much larger (or just provision 1 big volume for all of /). You also need to identify and fix repeating errors in your logs post install.
Re: DB Connect Error
Posted: Mon Apr 22, 2013 12:00 pm
by sheld0r
Is the backup and restore of Nagios pretty friendly? That's my only concern, is losing all my configurations and settings.
Re: DB Connect Error
Posted: Mon Apr 22, 2013 12:02 pm
by abrist
The backup and restore process is pretty painless. You will have to clear space though before you can successfully run our backup script:
http://assets.nagios.com/downloads/nagi ... ing_XI.pdf
Re: DB Connect Error
Posted: Mon Apr 22, 2013 7:23 pm
by sheld0r
abrist wrote:You also need to identify and fix repeating errors in your logs post install.
I'm getting a bunch of access_log and ssl_error logs that's filling up the space. I'm just wondering, this is a standard install I did using yum. Isn't the volume size a little small for which the logs are stored?
Re: DB Connect Error
Posted: Tue Apr 23, 2013 9:30 am
by scottwilkerson
The size of the logs depends on how many people access the web UI of the site. the httpd logs should be on a rotation, only keeping 4 of each
Re: DB Connect Error
Posted: Thu Jun 20, 2013 12:13 pm
by sheld0r
Hey guys! So I left this issue be for awhile, as I simply just routinely deleted the logs. I went on holiday and when I came back the Nagios server was down being that nobody was deleting those logs.
@scottwilkerson
You mentioned the logs depend on how many people access the web UI. I currently have Nagios displayed on 5 monitors, therefore 5 connections are established via the web UI.
As of right now, I have 3 access_log, 2 error_log, 5 ssl_error_log. I peaked in on a error_log, but it's just a bunch of jibberish really.
Code: Select all
[02/Jun/2013:03:19:13 -0700] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_servicestatus_table%22%2C%22args%22%3A%7B%22host%22%3A%22%22%2C%22hostgroup%22%3A%22%22%2C%22servicegroup%22%3A%22%22%2C%22sortby%22%3A%22%22%2C%22sortorder%22%3A%22asc%22%2C%22records%22%3A%221000%22%2C%22page%22%3A%221%22%2C%22search%22%3A%22%22%2C%22hostattr%22%3A%220%22%2C%22serviceattr%22%3A%220%22%2C%22hoststatustypes%22%3A%220%22%2C%22servicestatustypes%22%3A%2228%22%7D%7D&nsp=9dca3e03a11ce65223a04670e8e2ebb2 HTTP/1.1" 200 29002 "http://192.168.100.77/nagiosxi/includes/components/xicore/status.php?show=services&servicestatustypes=28" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31"
I know I need to fight the root cause of why all these logs are generated, but to access the other logs I can't even see them because they are so large. Or I'm not giving it enough time to come up in the console, 1+ minute is already long to view logs

What a mess I created, I'm tempted to start over but I don't want to lose all the config work I put in to this build.
I
Re: DB Connect Error
Posted: Thu Jun 20, 2013 12:47 pm
by abrist
If you wish to disable access log logging, you can comment out the line:
Code: Select all
CustomLog logs/access_log combined
From the file: