forked from evolix/evocheck
IS_MYSQLNRPE: ajust check for monitoringctl new nagios conf
This commit is contained in:
parent
91f0c72286
commit
27e8e870ee
|
@ -10,6 +10,7 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
|
|||
### Changed
|
||||
|
||||
* IS_SYSLOGCONF: better detection
|
||||
* IS_MYSQLNRPE: ajust check for monitoringctl new nagios conf
|
||||
|
||||
### Deprecated
|
||||
|
||||
|
|
|
@ -1092,7 +1092,7 @@ check_mysqlnrpe() {
|
|||
|| [ "$(stat -c %a ${nagios_file})" != "600" ]; then
|
||||
failed "IS_MYSQLNRPE" "${nagios_file} has wrong permissions"
|
||||
else
|
||||
grep -q -F "command[check_mysql]=/usr/lib/nagios/plugins/check_mysql" /etc/nagios/nrpe.d/evolix.cfg \
|
||||
grep -q -E "command\[check_mysql\]=.*/usr/lib/nagios/plugins/check_mysql" /etc/nagios/nrpe.d/evolix.cfg \
|
||||
|| failed "IS_MYSQLNRPE" "check_mysql is missing"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue