Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-1221

Nagios plugin scripts does not process -S option properly

    XMLWordPrintable

Details

    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
      

      Attachments

        Activity

          People

            Massimiliano Pinto Massimiliano Pinto (Inactive)
            valerii Valerii Kravchuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.