Change Is Inevitable
  • Home
  • MySQL
    • MySQL-Articles
    • AWS RDS
    • Percona Xtradb Cluster
    • MariaDB
    • Galera Cluster
    • ProxySQL
    • MySQL-Scripts
    • MySQL tools
    • MySQL Resources
  • Tools
    • MySQL Advisor
    • MySQL Random Data Generator
    • Postgresql Random Data Generator
    • Clean Prompt
  • General
    • binary-to-decimal
    • Fermat’s Theorem
    • Review
    • Just for fun
    • Personal
  • Contact Me
    • Copyright
    • MySQL Podcast (Youtube)
    • MySQL Podcast (Spotify)
Recent Posts
  • MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • How to setup and use Percona Binlog Server (PBS)
  • MySQL Major Version Upgrade Checklist – how to
  • InnoDB Flushing is simple – explained
  • MySQL Tools for Performance Tuning and Test Data Generation
Recent Comments
  • Kedar on MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • Jean-François Gagné on MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • Reggie on A Unique Foreign Key issue in MySQL 8.4
  • Kedar on How to fix write latency in MySQL 8.4 Upgrade
  • Kedar on How to fix write latency in MySQL 8.4 Upgrade
Home » MySQL » MySQL-Articles » Page 11
Change Is Inevitable

Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects

  • Home
  • MySQL
    • MySQL-Articles
    • AWS RDS
    • Percona Xtradb Cluster
    • MariaDB
    • Galera Cluster
    • ProxySQL
    • MySQL-Scripts
    • MySQL tools
    • MySQL Resources
  • Tools
    • MySQL Advisor
    • MySQL Random Data Generator
    • Postgresql Random Data Generator
    • Clean Prompt
  • General
    • binary-to-decimal
    • Fermat’s Theorem
    • Review
    • Just for fun
    • Personal
  • Contact Me
    • Copyright
    • MySQL Podcast (Youtube)
    • MySQL Podcast (Spotify)

Browsing Category

MySQL-Articles

79 posts

MySQL related blog posts

Load columnar text file into MySQL table

  • Kedar
  • May 3, 2012
Ever come accoss a situation where you have to load a flat text file into MySQL with data provided in single column! Say, your data to be loaded in table…
View Post

MySQL – Alter table-change datatype of column with foreign key

  • Kedar
  • April 23, 2012
Schema alteration is a big headache especially when it has already reached to production and things get worse when the relations are involved.Below is a short example for altering tables…
View Post

Access Control in MySQL Stored Routines: DEFINER, INVOKER & SQL SECURITY

  • Kedar
  • January 30, 2012
MySQL Stored Routines (functions and procedures) are not only used for improving performance but also they’re handy when it comes to enhancing security and restricting user access. This post briefs…
View Post

Escaping “Lesson Learned” dealing with MySQL Databases & Case Sensitivity

  • Kedar
  • December 6, 2010
Do you ever need to transfer databases between servers? Different OSes? Two common ways of data migration:1. Create mysqldump and load it.2. File transfer using SCP. MySQL Case Sensitivity and…
View Post

MySQL Load Data Infile with Stored Procedure

  • Kedar
  • November 30, 2010
Did you ever need to run LOAD DATA INFILE in a procedure? May be to automate or dynamically perform the large data file load to the MySQL database. In this…
View Post

10 Steps: MySQL Monitoring through Nagios: Install & Configure

  • Kedar
  • November 18, 2010
Nagios is a powerful monitoring system and here we will learn how to monitor MySQL through Nagios. We will be installing Nagios, required plugins and configuring it to monitor MySQL…
View Post

Posts pagination

Previous 1 … 10 11 12 … 14 Next
MySQL Podcast (Youtube)
RSS feed: MySQL Podcast (Spotify) MySQL Podcast (Spotify)
  • MySQL Major Version Upgrade Checklist (Zero Downtime Strategy)
    Upgrading MySQL major versions in production is never just a version bump - it’s a carefully planned process involving compatibility checks, replication strategy, testing, and controlled cut-over.In this episode, we walk through a practical MySQL Major Version Upgrade Checklist based on real-world DBA workflows. We are covering MySQL replication as base setup for upgrade. It […]
Search:
... ...
  • MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • How to setup and use Percona Binlog Server (PBS)
  • MySQL Major Version Upgrade Checklist – how to
  • InnoDB Flushing is simple – explained
  • MySQL Tools for Performance Tuning and Test Data Generation

26 responses to “10 Steps: MySQL Monitoring through Nagios: Install & Configure”

  1. Levi Brereton Avatar
    Levi Brereton
    July 3, 2017

    This is the nice blog! It is very useful for me to understand the concept of mysql monitoring. I read in this blog that how the data gets changed and who is able to change it and how they all do this. MySQL monitoring is the way to secure your data from an unauthorized user to access your sensitive data.

    Reply
  2. Michael Cooper Avatar
    Michael Cooper
    November 21, 2016

    Great Article… I found it here -> http://www.filewatcher.com/m/check_mysql_health-2.1.3.tar.gz.115861-0.html

    Thanks

    Reply
  3. Miguel Avatar
    Miguel
    March 4, 2016

    Hi! great guide It’s very useful for me.
    All works fine except the services with name like slave: I have this error:

    Command:
    /usr/local/nagios/libexec/check_mysql_health –H 127.0.0.1 –port 3306 –username root –password Mikelodeon24- –mode slave-io-running
    Error:
    _______________________________________________________________________
    CRITICAL – unable to get replication info
    _______________________________________________________________________
    I have the same problem with slave-sql-running also in WEB-GUI…

    Whats are slave-io-running and slave-sql-running?

    I’m await your anwser,thanks a lot

    Reply
    1. Kedar Avatar
      Kedar
      March 30, 2016

      I’m sorry to keep you waiting so long! Well, so the error appears that it is not able to grab the “replication info” possibly connectivity issue?
      Did you try mysql -uroot -pYourPwd -h 127.0.0.1 -e 'show slave status\G'
      About your question of io/sql-running… The replication works using two threads…
      IO-Thread –> Fetches binary-log from Master & store it as relay-log.
      – Let’s say there’s a network issue then you’d get this thread terminated and see slave-io-running as false.

      SQL-Thres –> Applies the received relay-log on Slave.
      – This will stop in case of sql error and you’d see slave-sql-running as false.

      Hope you’d have already figured things out but if not, this helps.

      Regards,
      Kedar.

      Reply
  4. Prabhakaran Avatar
    Prabhakaran
    January 20, 2016

    Hi,

    As per above steps i configured MySQL on nagios 4.1.1v and i am getting output on in background ” ./check_mysql_health -H 127.0.0.1 –port 3306 –username root –password root123 –mode threads-connected ”

    But I am unable to get out output on nagios monitoring tool, It showing
    ” MySQL-Connection-time OK 01-20-2016 12:25:52 0d 0h 0m 11s 1/4 Please select a mode ”

    Here “command.cfg” i defined :-

    define command{
    command_name check_mysql_health
    command_line $USER1$/check_mysql_health -H $ARG1$ –username $ARG1$ –password $ARG2$ –port $ARG5$ –mode $ARG3$
    }

    And on localhost.cfg Service defined :-

    define service{
    use local-service
    host_name NAME
    service_description MySQL-Connection-Time
    check_command check_mysql_health!root!root123!3306!connection-time!
    }

    Help me to resolve this issue

    Reply
  5. yunus shaikh Avatar
    yunus shaikh
    June 18, 2015

    Very helpful post with good explanation.

    Kedar Can you help me with how to configure nagios for mysql monitoring using percona plugin?
    I would be very thankful to you

    Reply
  6. Mark Bondurant Avatar
    Mark Bondurant
    May 4, 2015

    Please date your articles.

    Reply
    1. Kedar Avatar
      Kedar
      May 17, 2015

      hmmm! Some how the theme is not showing the Year (only date/month)… I’d try to fix this.
      Thank you Mark!

      Reply
  7. jagan376 Avatar
    jagan376
    November 12, 2013

    Hi ALL,
    I configured nagios successfully and didnt get any error and nagios home page loading fine but remaining pages like services hosts, ets not loading and shows “The server encountered an internal error or misconfiguration and was unable
    to complete your request.

    Please contact the server administrator, root@localhost and inform them of
    the time the error occurred, and anything you might have done that may have
    caused the error.

    More information about this error may be available in the server error
    log.”

    i issue below command but didn’t get any warning or errors …what could be the reason..

    /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

    Apache/2.2.15 (Red Hat) Server at localhost Port 80 am facing this issue

    Reply
  8. Sunil Kumar Avatar
    Sunil Kumar
    January 27, 2013

    Hello All,

    I am totally new on Linux. And recently I have configured a Nagios 3.4.1 server on Ubuntu 12.04 Desktop version. My Nagios server is running and showing output on web console as well. At the moment I have configured two check_commands (Check_ping and Check_snmp) in which check_ping is working fine and showing output in web console. But check_snmp is not working and my host on web console showing this service as a “critical” service.

    And the status Information section of this critical service is showing this message “Service Check Timed Out”.

    I have try to find solution on internet but nothing works, maybe as I am totally new so I am missing some configure required for snmp.

    For your information:

    /usr/local/nagios/libexec is shwoing check_snmp

    On my server snmpd is running (I have checked with service snmpd status command)

    and I have already installed and complied nagios-plugin-1.4.15 (with the help of commands available in nagios documentation)

    Could any one suggest me how could I fix this issue. And if possible can someone share with me the step-by-step setting of SNMP for all the parameters in Nagios/Ubuntu. So that I can cross check my snmp settings.

    Many Thanks in advance.

    Sunil

    Reply
Change Is Inevitable
Designed & Developed by Code Supply Co.