[Bug 741470] New: fail2ban Munin plugin error with bash string substitution
https://bugzilla.novell.com/show_bug.cgi?id=741470 https://bugzilla.novell.com/show_bug.cgi?id=741470#c0 Summary: fail2ban Munin plugin error with bash string substitution Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: opensuse@haronmedia.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 fail2ban Munin plugin does not work because it breaks fail2ban jail names with invalid string substitution, possibly because of Bash version (4.2.10 on OpenSuse 12.1)? I did not check Bash changelogs, but same plugin on Debian works okay (Bash 4.1.5). As the result of broken jail names (' is appended in list_jails(), then substituted for _ in values() and config()), the status per jail does not exist because of wrong jail name. Line 73, here's the problem: printf "${line//,/$'\n'}\n" This works: printf "${line//,/\n}\n" Reproducible: Always Steps to Reproduce: 1. Install munin-node 2. Install fail2ban, enable some jails 3. bash /usr/lib/munin/plugins/fail2ban Actual Results: no output, should list each jail with number of bans (Even if 0) Expected Results: one jail with number of bans per line -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=741470 https://bugzilla.novell.com/show_bug.cgi?id=741470#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |lchiquitto@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=741470 https://bugzilla.novell.com/show_bug.cgi?id=741470#c1 Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |opensuse@haronmedia.com --- Comment #1 from Leonardo Chiquitto <lchiquitto@suse.com> 2012-07-06 21:38:32 UTC --- Is this a bug in fail2ban or in the fail2ban munin plugin? Where can I download this plugin from? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=741470 https://bugzilla.novell.com/show_bug.cgi?id=741470#c Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=741470 https://bugzilla.novell.com/show_bug.cgi?id=741470#c2 Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED InfoProvider|opensuse@haronmedia.com | Resolution| |NORESPONSE --- Comment #2 from Leonardo Chiquitto <lchiquitto@suse.com> 2012-11-07 17:03:54 UTC --- Please reopen if you're still facing the problem and can provide the information requested. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com