bindgraph str2time error - can't parse logfile date format

Bug #1477395 reported by pirlo
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bindgraph (Debian)
Fix Released
Unknown
bindgraph (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

bindgraph does not start - I am getting the following error message:

 * Starting DNS Statistics /usr/sbin/bindgraph.pl Prototype mismatch: sub Parse::Syslog::str2time ($$$$$$$) vs ($$$$$$$$) at /usr/share/perl5/Parse/Syslog.pm line 121.
Subroutine str2time redefined at /usr/share/perl5/Parse/Syslog.pm line 66.
Subroutine new redefined at /usr/share/perl5/Parse/Syslog.pm line 138.
Subroutine _next_line redefined at /usr/share/perl5/Parse/Syslog.pm line 206.
Subroutine next redefined at /usr/share/perl5/Parse/Syslog.pm line 388.
Not enough arguments for Parse::Syslog::str2time at /usr/sbin/bindgraph.pl line 264, near "})"
BEGIN not safe after errors--compilation aborted at /usr/sbin/bindgraph.pl line 282.
                                                                                                                                     [fail]

seems to be a problem with the str2time which is embedded in bindgraph and a second problem with the format of the bind logfiles date field

23-Jul-2015 07:06:56.242 client 192.168.10.102#58986 (g.bing.com): query: g.bing.com IN A + (192.168.10.1)

problem still exists if I change the LOG_FORMAT in /etc/default/bindgraph from bind93 to bind92

Tags: patch
Revision history for this message
pirlo (admin-pirlo) wrote :

Ubuntu 14.04.2 LTS
bind9 1:9.9.5.dfsg-3ubuntu0.3
bindgraph 0.2a-5.1
libparse-syslog-perl 1.10-2ubuntu1

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bindgraph (Ubuntu):
status: New → Confirmed
Changed in bindgraph (Debian):
status: Unknown → New
Revision history for this message
Juri Haberland (haberland) wrote :

Attached is a patch that makes bindgraph work again. It might not be the right solution, but it makes it work again.
As bindgraph includes a modified copy of Parse::Syslog, which conflicts with the default one, the attached patch just renames the copy included in bindgraph.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "bindgraph-0.2a-5.1.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in bindgraph (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.