Home Directory Plugins Databases Others check_mysqlrouter.sh

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_mysqlrouter.sh

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2024-09-16
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
199
Files:
FileDescription
check_mysqlrouter.shcheck_mysqlrouter.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_mysqlrouter.sh
Simple but effective script shell to monitor mysql-router service status.
Simple script shell (dash) to check/monitor the mysql-router status (as service) and connection (as cluster).
Default mysql-router ports are 6446 and 6447 (edit the script to change upon your needs).

Tested on: Ubuntu 18, 20, 22 and Debian 11/12

note: remember to assign execute permission to the script (chmod +x check_mysqlrouter.sh)

=======

Usage: check_mysqlrouter.sh -H Host/IP -u User -p Password

example => check_mysqlrouter.sh -u MyUser -p MyPassword
example => check_mysqlrouter.sh -H10.10.0.125 -uMyUser -pMyPassword


=arguments and default values if arg is missing=

-H = host/IP {def: 127.0.0.1}
-u = UserName {def: MyCoolUser}
-p = Password {def: MyCoolPasswd}
-h = this help


.:: notes ::.

.: arguments order is not relevant
.: between argument and value can be a space or not