External commands
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: External commands
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?
-
David.adder
- Posts: 74
- Joined: Thu Jan 17, 2013 8:44 am
- Location: Spain
Re: External commands
Do you refeer to this? http://assets.nagios.com/downloads/nagi ... Server.pdf
Which impact would this have in Nagios?
Which impact would this have in Nagios?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: External commands
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
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
-
David.adder
- Posts: 74
- Joined: Thu Jan 17, 2013 8:44 am
- Location: Spain
Re: External commands
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: External commands
Lets make sure our local database isn't corrupt by running the following first
Code: Select all
/usr/local/nagiosxi/scripts/repairmysql.sh nagios-
David.adder
- Posts: 74
- Joined: Thu Jan 17, 2013 8:44 am
- Location: Spain
Re: External commands
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: External commands
Let's do this in 2 parts to see which side we are losing
If that succeeds lets run
Code: Select all
mysqldump -u root -p'nagiosxi' nagios > /tmp/nagios.sqlCode: Select all
cat /tmp/nagios.sql | mysql -u nagios -p'nagios' -h "remote_ip_address" nagios