IS_MYSQLNRPE: ajust check for monitoringctl new nagios conf

This commit is contained in:
William Hirigoyen 2024-06-06 16:59:00 +02:00
parent 91f0c72286
commit 27e8e870ee
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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