[MXS-1221] Nagios plugin scripts does not process -S option properly Created: 2017-04-14 Updated: 2020-08-25 Resolved: 2017-04-18 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Plugin |
| Affects Version/s: | 2.0.5 |
| Fix Version/s: | 2.0.6, 2.1.3, 2.2.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Valerii Kravchuk | Assignee: | Massimiliano Pinto (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
It seems Nagios scripts (like check_maxscale_monitors.pl) does not process -S option properly (it seems -S is passed to maxadmin without argument):
Note that "show" (part of "show monitors" command generated) was passed as a socket, and surely file does not exist. Without explicit -S (as we still use default socket) everything works as expected:
|
| Comments |
| Comment by Massimiliano Pinto (Inactive) [ 2017-04-18 ] |
|
There is an error in the scripts. The fix is: Replace: with $MAXADMIN_SOCKET = ' -S ' . $MAXADMIN_SOCKET; |