<p>'use lib utils.pm' is not valid Perl syntax:</p>

<pre><code>Bareword "utils" not allowed while "strict subs" in use at plugins-scripts/check_ircd.pl line 52.
Bareword "pm" not allowed while "strict subs" in use at plugins-scripts/check_ircd.pl line 52.
</code></pre>

<p>This makes it impossible to use the plugins directly from the git tree, e.g. while hacking on them.</p>

<p>Using <code>FindBin::Bin</code> as the library path allows that, while preserving the original behaviour of adding the <code>libexec</code> path when the plugin is properly installed.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/evgeni/monitoring-plugins findbin</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1241'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1241</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>use FindBin instead of awk to find the path to utils.pm</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-0">plugins-scripts/check_breeze.pl</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-1">plugins-scripts/check_disk_smb.pl</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-2">plugins-scripts/check_flexlm.pl</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-3">plugins-scripts/check_ifoperstatus.pl</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-4">plugins-scripts/check_ifstatus.pl</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-5">plugins-scripts/check_ircd.pl</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-6">plugins-scripts/check_mailq.pl</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-7">plugins-scripts/check_netdns.pl</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-8">plugins-scripts/check_rpc.pl</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1241/files#diff-9">plugins-scripts/check_wave.pl</a>
    (3)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1241.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1241.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1241.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1241.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1241'>Reply to this email on GitHub</a>.<img src='https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODkzMjEzOSwiZGF0YSI6eyJpZCI6MjY0NzM3NDl9fQ==--c8dbbfde1661178496f10dcb58df075a4bc84a2e.gif' height='1' width='1'></p>