Disk Root getting full with DB log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tchandra
Posts: 38
Joined: Fri Oct 18, 2019 5:53 am

Disk Root getting full with DB log

Post by tchandra »

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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Disk Root getting full with DB log

Post by cdienger »

Stop the service and then try deleting the log:

Code: Select all

systemctl stop mariadb
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tchandra
Posts: 38
Joined: Fri Oct 18, 2019 5:53 am

Re: Disk Root getting full with DB log

Post by tchandra »

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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Disk Root getting full with DB log

Post by cdienger »

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:

Code: Select all

systemctl stop mariadb
rm -f /var/log/mariadb/mariadb.log
systemctl start mariadb
Make sure nagios is still running afterwards:

Code: Select all

systemctl status nagios
and restart it if needed:

Code: Select all

systemctl restart nagios
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tchandra
Posts: 38
Joined: Fri Oct 18, 2019 5:53 am

Re: Disk Root getting full with DB log

Post by tchandra »

Hi cdienger ,

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

Post by scottwilkerson »

tchandra wrote:Hi cdienger ,

Thanks for suggestion. Anyhow , we have cleared the space and issue is fixed now.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked