<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Package: nagios-plugins-contrib<br>
    Version: 24.20190301<br>
    <br>
    Hi,<br>
    <br>
    When i invoke <br>
    `<b><tt>sudo /usr/lib/nagios/plugins/check_haproxy_stats --socket
        /var/run/haproxy/admin.sock</tt></b>`<br>
    it shows me the following errors:<br>
    <br>
    <b><tt>/usr/lib/nagios/plugins/check_haproxy_stats: 22:
        /usr/lib/nagios/plugins/check_haproxy_stats: use: not found<br>
        /usr/lib/nagios/plugins/check_haproxy_stats: 23:
        /usr/lib/nagios/plugins/check_haproxy_stats: use: not found<br>
        /usr/lib/nagios/plugins/check_haproxy_stats: 24:
        /usr/lib/nagios/plugins/check_haproxy_stats: use: not found<br>
        /usr/lib/nagios/plugins/check_haproxy_stats: 25:
        /usr/lib/nagios/plugins/check_haproxy_stats: use: not found<br>
        /usr/lib/nagios/plugins/check_haproxy_stats: 26:
        /usr/lib/nagios/plugins/check_haproxy_stats: use: not found<br>
        /usr/lib/nagios/plugins/check_haproxy_stats: 27:
        /usr/lib/nagios/plugins/check_haproxy_stats: use: not found<br>
        /usr/lib/nagios/plugins/check_haproxy_stats: 29:
        /usr/lib/nagios/plugins/check_haproxy_stats: our: not found<br>
        /usr/lib/nagios/plugins/check_haproxy_stats: 31:
        /usr/lib/nagios/plugins/check_haproxy_stats: sub: not found<br>
        /usr/lib/nagios/plugins/check_haproxy_stats: 32:
        /usr/lib/nagios/plugins/check_haproxy_stats: my: not found<br>
        /usr/lib/nagios/plugins/check_haproxy_stats: 94:
        /usr/lib/nagios/plugins/check_haproxy_stats: Syntax error: "}"
        unexpected</tt></b><br>
    <br>
    <br>
    By fixing shebang line script works as expected:<br>
    <br>
    Issue:<tt><b> $ sudo head -n 1
        /usr/lib/nagios/plugins/check_haproxy_stats</b></tt><tt><b><br>
      </b></tt><tt><b>#/usr/bin/perl</b></tt><br>
    <br>
    or from package directly:<br>
    <tt><b>ar p
        /var/cache/apt/archives/nagios-plugins-contrib_24.20190301_amd64.deb
        data.tar.xz | tar xJ
        ./usr/lib/nagios/plugins/check_haproxy_stats -O  | head -n 1</b></tt><tt><b><br>
      </b></tt><tt><b>#/usr/bin/perl</b></tt><br>
    <br>
    Solution: <tt><b>$ sudo head -n 1
        /usr/lib/nagios/plugins/check_haproxy_stats</b></tt><tt><b><br>
      </b></tt><tt><b>#!/usr/bin/perl</b></tt><br>
    <br>
    Thx, Alex
  </body>
</html>