Site24x7
            Knowledge Base Site24x7 Knowledge Base Plugins Linux Plugins

            Monitor multiple MySQL instances from one plugin

            From a single plugin you cannot monitor all MySQL instances. You can reuse the same MySQL plugin by renaming it and editing the configuration.

            Using MySQL for monitoring multiple instances:
            1. Copy the mysql/ folder to mysql_instance/
            2. Rename the mysql.py to mysql_instance.py present under mysql_instance/
            3. Commands to execute in your server to achieve the above steps:
                    cd /opt/site24x7/monagent/plugins/
                    cp -r mysql/ mysql_instance/
                    cd mysql_instance/
                    mv mysql.py mysql_instance.py
            4. Edit the mysql_instance.py to change the mysql configurations.
            5. Agent will pick this up in the next data collection and you can view your plugin under server monitor details page.

            If you have many instances, please follow the steps listed above (i.e rename the plugin file and its configurations).

            For more information on configuring MySQL plugins, refer here.
            Updated: 04 Apr 2016 10:10 PM
            Helpful?  
            Help us to make this article better
            1 0