External commands

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: External commands

Post 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?
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: External commands

Post by David.adder »

Do you refeer to this? http://assets.nagios.com/downloads/nagi ... Server.pdf

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: External commands

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: External commands

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: External commands

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: External commands

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked