[Pkg-nagios-devel] Bug#981172: nagios-plugins-contrib - check_haproxy_stats shebang line in script wrong

Alex Bachmer alex.bachmer at t-online.de
Wed Jan 27 08:50:33 GMT 2021


Package: nagios-plugins-contrib
Version: 24.20190301


Hi,

the shebang line is broken again. Please refer https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945272


> 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*



Thx, Alex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-devel/attachments/20210127/1ae59a99/attachment.html>


More information about the Pkg-nagios-devel mailing list