Nagios Monitoring Mysql

Source: Internet
Author: User

  1. MySQL monitoring by the monitoring machine
    Create a dedicated database, a dedicated database account
    Mysql-uroot-p
    Create Database Nagios_monitor;
    Grant Select on nagios_monitor.* to [email protected] '% ' identified by ' nagiosmonitor ';
    Flush privileges;
    Exit
    Test Check_mysql script is running properly
    Cd/usr/lib64/nagios/plugins
    ./check_mysql-unagios-pnagiosmonitor

    Edit Nrpe.cfg File
    Vi/usr/local/nagios/etc/nrpe.cfg Add the following line
    Command[check_mysql]=/usr/lib64/nagios/plugins/check_mysql-unagios-pnagiosmonitor
    Back to Nagios Monitoring server
    Modify the Services.cfg file
    Vi/etc/nagios/objects/services.cfg
    Add the following code
    define service{        use                     generic-service        host_name               nagios_centos_client1        service_ Description     Mysql monitoring        check_command           Check_nrpe!  Check_mysql        }
    Check_mysql Code

    Nagios-v nagios.cfg Check that the Nagios configuration file is correct
    Restart the Nagios service to






Nagios Monitoring Mysql

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.