Hi Team,
we have one of Nagios Worker server and it has root partition. Recently, we are getting space issue for disk root.Then i checked and found that
Maria db log under /var/log is occupying more space and i am unable to compress it as it is a live log. Can someone please suggest on this to clear the space issue.
Thanks in advance.
Regards,
Chandra
Disk Root getting full with DB log
Re: Disk Root getting full with DB log
Stop the service and then try deleting the log:
Keep an eye on the log after you restart it. If it growing quickly then that can be a sign of a problem and we'll want to take a look at the log.
Code: Select all
systemctl stop mariadbAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Disk Root getting full with DB log
Hi cdienger ,
Thanks for the response.
You suggested to delete the db log after stopped the service. if i can delete the log, is there any problem occurs in Nagios or not.
can you please suggest on this.
Thanks in Advance.
Regards,
Chandra
Thanks for the response.
You suggested to delete the db log after stopped the service. if i can delete the log, is there any problem occurs in Nagios or not.
can you please suggest on this.
Thanks in Advance.
Regards,
Chandra
Re: Disk Root getting full with DB log
No, XI doesn't need the log. It does need the database service though so when you go to remove the log do it quickly:
Make sure nagios is still running afterwards:
and restart it if needed:
Code: Select all
systemctl stop mariadb
rm -f /var/log/mariadb/mariadb.log
systemctl start mariadbCode: Select all
systemctl status nagiosCode: Select all
systemctl restart nagiosAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Disk Root getting full with DB log
Hi cdienger ,
Thanks for suggestion. Anyhow , we have cleared the space and issue is fixed now.
Thanks for suggestion. Anyhow , we have cleared the space and issue is fixed now.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Disk Root getting full with DB log
Great!tchandra wrote:Hi cdienger ,
Thanks for suggestion. Anyhow , we have cleared the space and issue is fixed now.
Locking thread