Team,
/var is filling up quickly. We find /var/lib/mysql/nagios is consuming most of space.
Is there any other alternative to get rid of this.Attached output.
We believe slave data comming through nrdp is filling up space quickly.
Any help is appreciated
Thanks
Ravi
/var is filling up quickly
/var is filling up quickly
You do not have the required permissions to view the files attached to this post.
Re: /var is filling up quickly
It looks like the "nagios_externalcommands" table is taking up the most space (which is potentially consistent with your suspicion of nrdp). You may want to turn off the logging of external commands by editing /usr/local/nagios/etc/nagios.cfg:
Change:
To:
Restart Nagios:
Now you may want to truncate the externalcommands table to reclaim some space (WARNING! - This is destructive!):
After truncation, repair the db:
Change:
Code: Select all
log_external_commands=1Code: Select all
log_external_commands=0Code: Select all
service nagios restartCode: Select all
mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_externalcommands'Code: Select all
/usr/local/nagiosxi/scripts/repairmysql.sh nagiosFormer 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.
"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.
Re: /var is filling up quickly
we are using nrdp to get the data from slave to master.
If we follow below process will it impact the data transfer or current setup
If we follow below process will it impact the data transfer or current setup
Re: /var is filling up quickly
Setting log_external_commands=0 will just stop the commands from being logged. Truncating the nagios_externalcommands table will just remove older historical data from the table. Neither of these procedures should effect the monitoring configuration, just historical data.
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.
"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.
Re: /var is filling up quickly
we have moved nagios db from /var to /u01 to resolve this issue