Home Directory Plugins Databases MySQL check_innodbcluster.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_innodbcluster.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
124
Files:
FileDescription
check_innodb_cluster.shcheck_innodb_cluster.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Simple but effective script shell (dash) to check InnoDB Cluster's node status (requires netcat package).
This simple but effective script shell (dash) will return detailed information about the status of an InnoDB Cluster node, including status (online, recovering, offline, etc...), node type (primary/secondary) and Lag.

This script shell requires the netcat package (apt install netcat). Tested on Debian 11/12 and Ubuntu 18/20/22.

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

=======

Usage: check_innodbcluster.sh -H Host/IP -P Port -u User -p Password

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


=arguments and default values if arg is missing=

-H = host/IP {def: 127.0.0.1}
-P = Port {def: 3306}
-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