kriegerse / check_mk-mysql_galera_cluster

A Check_MK plugin for checking the status of a galera cluster node (based on http://galeracluster.com/documentation-webpages/monitoringthecluster.html)
GNU General Public License v2.0
2 stars 3 forks source link

Breaks check_mk-mysql.innodb_io #2

Closed moschlar closed 5 years ago

moschlar commented 5 years ago
Crash Type check
Time 2019-08-27 15:18:42
Operating System stretch
Check_MK Version 1.5.0p21
Edition cre
Core nagios
Python Version 2.7.16 (default, Jul 30 2019, 14:46:21) [GCC 8.2.0]
Exception NameError (global name 'check_diskstat_line' is not defined)
Traceback File "/omd/sites/zdv/lib/python/cmk_base/checking.py", line 340, in execute_check raw_result = check_function(item, determine_check_params(params), section_content) File "/omd/sites/zdv/share/check_mk/checks/mysql", line 192, in check_mysql_iostat return check_diskstat_line(time.time(), 'innodb_io'+item, params, line)
Local Variables {'item': u'mysql', 'line': [None, None, 150388649, 435139172], 'params': {}, 'parsed': {'mysql': {u'Aborted_clients': 0, ....
Python Module Paths /omd/sites/zdv/local/lib/python/omd/sites/zdv/lib/python27.zip/omd/sites/zdv/lib/python2.7/omd/sites/zdv/lib/python2.7/plat-linux2/omd/sites/zdv/lib/python2.7/lib-tk/omd/sites/zdv/lib/python2.7/lib-old/omd/sites/zdv/lib/python2.7/lib-dynload/omd/sites/zdv/lib/python2.7/site-packages/omd/sites/zdv/lib/python
Host wp-db-01
Is Cluster Host No
Check Type mysql.innodb_io
Manual Check No
Uses SNMP No
Inline-SNMP No
Check Item mysql
Description MySQL InnoDB IO mysql
Parameters {}
moschlar commented 5 years ago

Probably has something to do with double inheritance (mysql.galera_cluster includes mysql, which includes diskstat.include from where this missing symbol should come)...

I'll investigate.

kriegerse commented 5 years ago

Thanks @moschlar for contributing - the fix is included in Release 1.1

moschlar commented 5 years ago

Cool, thanks!

moschlar commented 5 years ago

One thing though: Is there a specific reason why you don't upload the MKP at the Checkmk Exchange (https://checkmk.com/check_mk-exchange.php?exchange_search=galera&sort_by=)?

kriegerse commented 5 years ago

It's not that I didn't tried. The mkp was somehow not accepted and I don't receive any notification what was the reason for - might related to your fix. I've submitted the new version yesterday - let's see "wait" for the result.

kriegerse commented 5 years ago

@moschlar - the mkp was accepted now and is available https://checkmk.com/check_mk-exchange.php?exchange_search=galera&sort_by=

moschlar commented 5 years ago

Cool!