swrd / check-mysql-all

Automatically exported from code.google.com/p/check-mysql-all
0 stars 0 forks source link

check_mmm returns "OK" when the mmm_control command exits with non 0 exit code #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Running check_mmm as user which does not have read access to the mmm 
configuration files

What is the expected output?
For the check to not return OK.

What do you see instead?
./check_mmm --mmm-base=/usr
2011/11/28 09:31:29 No readable config file mmm_mon.conf in /etc, /etc/mmm, 
/etc/mysql-mmm
2011/11/28 09:31:29 Could not find a readable config file
Could not find a readable config file at 
/usr/lib/perl5/vendor_perl/5.8.8/MMM/Common/Config.pm line 127
OK

What version of the product are you using? On what operating system?
check_mmm version 0.1.0 Centos 5.7

Please provide any additional information below.
Perhaps check $? after calling the mmm_control command in ``?

Original issue reported on code.google.com by g...@eventfindahq.com on 27 Nov 2011 at 8:45