Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5356

Nagios extension check_puppet.rb error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.8.5
    • Fix Version/s: PUP 3.8.7
    • Component/s: None
    • Environment:

      CentOS 7.0.1406 & 7.1.1503
      Puppet from 3.7.5 to 3.8.2

    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2016-02-10
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix the Puppet Nagios extension with Ruby 1.9.3+

      Description

      The extension to check if puppet is running using Nagios (with NRPE) does not work on CentOS 7 (probably on all EL7)

      [root@localhost nagios]# pwd
      /usr/share/puppet/ext/nagios
      [root@localhost nagios]# ./check_puppet.rb 
      ./check_puppet.rb:30: formal argument cannot be a constant
          "Default: #{OPTIONS[:statefile]}") { |OPTIONS[:statefile]| }
                                                       ^
      ./check_puppet.rb:30: syntax error, unexpected '[', expecting '|'
          "Default: #{OPTIONS[:statefile]}") { |OPTIONS[:statefile]| }
                                                        ^
      ./check_puppet.rb:35: formal argument cannot be a constant
          "Default: #{OPTIONS[:process]}")   { |OPTIONS[:process]| }
                                                       ^
      ./check_puppet.rb:35: syntax error, unexpected '[', expecting '|'
          "Default: #{OPTIONS[:process]}")   { |OPTIONS[:process]| }
                                                        ^
      ./check_puppet.rb:40: formal argument cannot be a constant
      ...nterval]} minutes")  { |OPTIONS[:interval]| }
      ...                               ^
      ./check_puppet.rb:40: syntax error, unexpected '[', expecting '|'
      ...terval]} minutes")  { |OPTIONS[:interval]| }
      ...                               ^
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                druiz David Ruiz Estefanía
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support