Page 3 of 3
Re: External commands
Posted: Fri Jan 25, 2013 11:40 am
by slansing
Ahh, that could be a "bit" stressful on the core's, have you thought about offloading the database or initializing a ram disk on the Nagios server?
Re: External commands
Posted: Fri Jan 25, 2013 6:01 pm
by David.adder
Do you refeer to this?
http://assets.nagios.com/downloads/nagi ... Server.pdf
Which impact would this have in Nagios?
Re: External commands
Posted: Sat Jan 26, 2013 11:36 pm
by scottwilkerson
Yes and
http://assets.nagios.com/downloads/nagi ... Server.pdf
In a post you showed earlier you had 19% IO Wait time, doing both of these should help reduce that significantly
Re: External commands
Posted: Mon Feb 04, 2013 10:03 am
by David.adder
Hi Scott,
I'm trying to offload the MySQL from Nagios to an external server, and I get this error message when I type this command: mysqldump -u root -p'nagiosxi' nagios | mysql -u nagios -p'nagios' -h "remote_ip_address" nagios
mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `nagios_notifications`
Before doing that I stopped Nagios and Ndo2db
Re: External commands
Posted: Mon Feb 04, 2013 10:10 am
by scottwilkerson
Lets make sure our local database isn't corrupt by running the following first
Code: Select all
/usr/local/nagiosxi/scripts/repairmysql.sh nagios
Re: External commands
Posted: Wed Feb 06, 2013 7:59 am
by David.adder
Hi,
I ran that command, not error were found, and Repair was fine:
- recovering (with sort) MyISAM-table 'nagios_timeperiod_timeranges.MYI'
Data records: 194
- Fixing index 1
- Fixing index 2
Iniciando mysqld: [ OK ]
~
===============
REPAIR COMPLETE
===============
Tiene correo en /var/spool/mail/root
But still get the same error message after 15 min working :
mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `nagios_notifications` at row: 1934
Re: External commands
Posted: Wed Feb 06, 2013 12:45 pm
by scottwilkerson
Let's do this in 2 parts to see which side we are losing
Code: Select all
mysqldump -u root -p'nagiosxi' nagios > /tmp/nagios.sql
If that succeeds lets run
Code: Select all
cat /tmp/nagios.sql | mysql -u nagios -p'nagios' -h "remote_ip_address" nagios