Code Monkey home page Code Monkey logo

nagios-plugin-check_galera_cluster's People

Contributors

arakmar avatar fridim avatar napsty avatar noseka1 avatar stafwag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nagios-plugin-check_galera_cluster's Issues

show status like 'wsrep_flow_control_paused'; Scientific Notation output

Using: mariadb 10.5.5-MariaDB-1:10.5.5+maria~focal-log

Error on execution

/opt/nagios/libexec/check_galera_cluster  -H localhost -u nagios -p <pw> -w 2 -c 2 0                                                                                                                                                           
(standard_in) 1: syntax error                                                                                                                                                                                                                                                   
/opt/nagios/libexec/check_galera_cluster: line 171: [: =: unary operator expected                                                                                                                                                                                               
OK: number of NODES = 3 (wsrep_cluster_size)   

Value in db:

show status like 'wsrep_flow_control_paused';
+---------------------------+-------------+
| Variable_name             | Value       |
+---------------------------+-------------+
| wsrep_flow_control_paused | 1.42823e-05 |
+---------------------------+-------------+
1 row in set
Time: 0.031s

script can't handle Scientific Notation 1.42823e-05

Solution:

add before line 171:

rFlowControl=$(printf "%.14f" $rFlowControl)

thanks for your script, hope this fix helps others too :)

Unable to connect to remote host

Hello,
When im trying to do remote check, the check is done locally on nagios server not on remote machine.

-H 100.64.9.42 -u USERNAME -p PASSWORD-w 2 -c 2 0

/opt/plugins/check_galera_cluster
Result code: CRITICAL
CRITICAL: node is not part of a cluster

When I run the script locally on the DB-server i get correct answer.

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.