Giter Club home page Giter Club logo

proxysql-nagios's People

Contributors

barbuk avatar omattsson avatar pondix avatar renecannao avatar ruleant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

proxysql-nagios's Issues

Icinga CheckCommand defaults-file not required

There is an issue within the example Icinga check command in combination with the check itself.

The definition says, that proxysql_defaultfile is required. But when the defaultfile is given, the proxysql_user and proxysql_password is completly ignored. My default doesn't contain a user+pass.

I'm not sure, what is better here.

  • remove the required flag in the definition
  • or rewrite the Python script

In my case, I've just remove the flag.

And a minor issue. Maybe change the env python to env python3 because Python2 is EOL since nearly 2 years.

Also - in my case of latest Icinga2 on Debian-11, the check is already defined within the ITL, so it isn't necessary to redeclare the checkcommand.

Template 'pull-alerts' ?

When starting the nagios service, I got error:

Error: Template 'pull-alerts' specified in service definition could not be not found

which is related to the nagios.cfg file, how would I get that template?

Also, where would I see for example: Connection pool usage (%) per server ?? will they be viewed in nagios core web view?

When all servers are shunned check returns OK

From: https://groups.google.com/forum/#!msg/proxysql/y-9Bxaqkljg/eafP1UvqAQAJ

Hello
found a wierd behaviour of proxysql-nagios plugin

When all servers are shunned
mysql> select hostgroup_id, hostname , port , status  from runtime_mysql_servers ;
+--------------+------------+------+---------+
| hostgroup_id | hostname   | port | status  |
+--------------+------------+------+---------+
| 1            | 10.1.14.30 | 3308 | SHUNNED |
| 1            | 10.1.14.17 | 3306 | SHUNNED |
| 1            | 10.1.14.19 | 3306 | SHUNNED |
+--------------+------------+------+---------+

the query that is used in the plugin - for checking hg - does not work properly.

mysql> SELECT hostgroup_id hg,count(status) cnt from runtime_mysql_servers WHERE status = "ONLINE";
+----+-----+
| hg | cnt |
+----+-----+
| NULL | 0   |
+----+-----+
1 row in set (0.00 sec)

mysql> SELECT hostgroup_id hg,count(status) cnt from main.runtime_mysql_servers WHERE status = "ONLINE" GROUP BY hg having cnt ;
Empty set (0.00 sec)


It does return len(output_values) == 0 and check ends as OK 

/opt/plugins # /opt/plugins/proxysql-nagios2  -t hg -i 1 --runtime -c 0 -w 1
OK - ProxySQL Hostgroups: ALL OK

Can you please check it and advise how to solve it?

Best Regards Kuba Chrzan

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.