<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<pre class="message">Package: nagios-plugins-contrib
Version: 24.20190301
Hi,
the shebang line is broken again. Please refer <a class="moz-txt-link-freetext" href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945272">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945272</a>
<blockquote type="cite"><pre class="message">Package: nagios-plugins-contrib
Version: 24.20190301
Hi,
When i invoke
`*sudo /usr/lib/nagios/plugins/check_haproxy_stats --socket
/var/run/haproxy/admin.sock*`
it shows me the following errors:
*/usr/lib/nagios/plugins/check_haproxy_stats: 22:
/usr/lib/nagios/plugins/check_haproxy_stats: use: not found
/usr/lib/nagios/plugins/check_haproxy_stats: 23:
/usr/lib/nagios/plugins/check_haproxy_stats: use: not found
/usr/lib/nagios/plugins/check_haproxy_stats: 24:
/usr/lib/nagios/plugins/check_haproxy_stats: use: not found
/usr/lib/nagios/plugins/check_haproxy_stats: 25:
/usr/lib/nagios/plugins/check_haproxy_stats: use: not found
/usr/lib/nagios/plugins/check_haproxy_stats: 26:
/usr/lib/nagios/plugins/check_haproxy_stats: use: not found
/usr/lib/nagios/plugins/check_haproxy_stats: 27:
/usr/lib/nagios/plugins/check_haproxy_stats: use: not found
/usr/lib/nagios/plugins/check_haproxy_stats: 29:
/usr/lib/nagios/plugins/check_haproxy_stats: our: not found
/usr/lib/nagios/plugins/check_haproxy_stats: 31:
/usr/lib/nagios/plugins/check_haproxy_stats: sub: not found
/usr/lib/nagios/plugins/check_haproxy_stats: 32:
/usr/lib/nagios/plugins/check_haproxy_stats: my: not found
/usr/lib/nagios/plugins/check_haproxy_stats: 94:
/usr/lib/nagios/plugins/check_haproxy_stats: Syntax error: "}" unexpected*
By fixing shebang line script works as expected:
Issue:*$ sudo head -n 1 /usr/lib/nagios/plugins/check_haproxy_stats**
**#/usr/bin/perl*
or from package directly:
*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**
**#/usr/bin/perl*
Solution: *$ sudo head -n 1 /usr/lib/nagios/plugins/check_haproxy_stats**
**#!/usr/bin/perl*
</pre></blockquote>
Thx, Alex</pre>
</body>
</html>