Project

General

Profile

Bug #6838

bsnmpd logs errors when /etc/printcap is missing

Added by Jim Pingle 6 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
SNMP
Target version:
Start date:
10/05/2016
Due date:
% Done:

100%

Affected version:
2.3.x
Affected Architecture:

Description

We do not ship with an /etc/printcap file but it appears that bsnmpd does not like that fact. When probed in various ways (especially when querying SNMP OID 1.3.6.1.2.1.25.3.5 ), bsnmpd logs an error to the system log:

snmpd[67512]: hrPrinterTable: printcap entry for <noname?> has errors, skipping

With an empty /etc/printcap (touch /etc/printcap), no errors are logged.

We could include a blank printcap or include the FreeBSD default printcap file which is logically empty as it all of its contents are comments.

Associated revisions

Revision 63b44eed
Added by Jim Pingle 4 months ago

Create a dummy /etc/printcap when starting bsnmpd so it it will not log errors. Fixes #6838

Revision 26be03d7
Added by Jim Pingle 4 months ago

Create a dummy /etc/printcap when starting bsnmpd so it it will not log errors. Fixes #6838

Revision 01d98377
Added by Jim Pingle 4 months ago

Create a dummy /etc/printcap when starting bsnmpd so it it will not log errors. Fixes #6838

History

#1 Updated by Kill Bill 6 months ago

Yeah, filed this as #6810, please close that one as duplicate.

#2 Updated by Jim Pingle 6 months ago

Somehow I completely missed that ticket when looking into this. I'll close the older one out since this one has a viable workaround on it.

#3 Updated by Jim Pingle 4 months ago

  • Assignee set to Jim Pingle

#4 Updated by Jim Pingle 4 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#5 Updated by Jim Pingle 3 months ago

  • Status changed from Feedback to Resolved

Seems to be fine now, no more log spam and the dummy printcap file is there as expected.

#6 Updated by Jim Pingle about 2 months ago

  • Target version changed from 2.4.0 to 2.3.3

Also available in: Atom PDF