Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.0.5
-
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):
openxs@ao756:~/maxscale$ ~/git/MaxScale/plugins/nagios/check_maxscale_monitors.pl -H 192.168.1.37 -u openxs -i /home/openxs/.ssh/id_rsa -m /home/openxs/maxscale/bin/maxadmin -S /tmp/maxadmin.sock
|
Enter passphrase for key '/home/openxs/.ssh/id_rsa':
|
CRITICAL: Unable to connect to MaxScale at show: No such file or directory
|
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:
openxs@ao756:~/maxscale$ ~/git/MaxScale/plugins/nagios/check_maxscale_monitors.pl -H 192.168.1.37 -u openxs -i /home/openxs/.ssh/id_rsa -m /home/openxs/maxscale/bin/maxadmin
|
Enter passphrase for key '/home/openxs/.ssh/id_rsa':
|
OK: 1 monitors found | monitor1=MySQL Monitor;running;192.168.1.37:3306;10000;disabled
|