Giter Club home page Giter Club logo

check_mysql_write's People

Contributors

napsty avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

check_mysql_write's Issues

MySQL Warnings shown

# /usr/lib/nagios/plugins/check_mysql_write.sh -H mysqlhost -u monitoring -p supersecret -d monitoring
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
OK: Write query successful (UPDATE monitoring SET mytime=1566392156 WHERE host='icinga')

Tables in Galera Cluster need a Primary Key (PK)

Galera Cluster wsrep / sync can fall on its nose because of this monitoring table as it has no PK defined. This would then look something like this in the error log:

2021-05-01 17:05:03 19 [ERROR] InnoDB: Conflicting lock on table: `monitoring`.`monitoring` index: GEN_CLUST_INDEX that has lock 
RECORD LOCKS space id 8 page no 3 n bits 72 index GEN_CLUST_INDEX of table `monitoring`.`monitoring` trx id 627 lock_mode X locks rec but not gap
Record lock, heap no 2
Record lock, heap no 3
2021-05-01 17:05:03 19 [ERROR] InnoDB: WSREP state: 
2021-05-01 17:05:03 19 [ERROR] WSREP: Thread BF trx_id: 628 thread: 19 seqno: 247 client_state: exec client_mode: high priority transaction_mode: executing applier: 1 toi: 0 local: 0 query: UPDATE monitoring SET mytime=1619879025 WHERE host = 'node3'qd�`
2021-05-01 17:05:03 19 [ERROR] WSREP: Thread BF trx_id: 627 thread: 15 seqno: 248 client_state: exec client_mode: high priority transaction_mode: executing applier: 1 toi: 0 local: 0 query: UPDATE monitoring SET mytime=1619879025 WHERE host = 'node2'qd�`
2021-05-01 17:05:03 0x7f47684d5700  InnoDB: Assertion failure in file /home/buildbot/buildbot/build/mariadb-10.4.16/storage/innobase/lock/lock0lock.cc line 687
InnoDB: We intentionally generate a memory trap.

This is nicely documented on SeveralNines: https://severalnines.com/database-blog/troubleshooting-galera-cluster-issues-part-1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.