Bug 17782 - Fehlermeldungen in auth.log und apache2/error.log: pcfg_openfile() called with NULL filename
Fehlermeldungen in auth.log und apache2/error.log: pcfg_openfile() called wit...
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: Monitoring (Prometheus or Nagios)
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 2.x
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-02 11:49 CET by Jan Christoph Ebersbach
Modified: 2012-06-07 14:22 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
schwardt: Patch_Available+


Attachments
add row with "AuthUserFile /dev/null" (1.08 KB, patch)
2011-06-29 12:14 CEST, Martin Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Christoph Ebersbach univentionstaff 2010-03-02 11:49:27 CET
Im auth.log und im apache2/error.log laufen beim Zugriff auf Nagios Meldungen wie die folgenden auf:

auth.log

Mar  2 11:30:26 HOST apache2: (pam_unix) authentication failure; logname= uid=33 euid=33 tty= ruser= rhost=xxxxxxx  user=Administrator
Mar  2 11:31:57 dczen-02 last message repeated 77 times
Mar  2 11:33:27 dczen-02 last message repeated 63 times

apache2/error.log

[Mon Mar 01 09:07:09 2010] [error] Internal error: pcfg_openfile() called with NULL filename
[Mon Mar 01 09:07:09 2010] [error] [client xxxxxxxx] (9)Bad file descriptor: Could not open password file: (null), referer: https://HOST/nagios/side.html

Diese Meldungen werden lt. (http://www.pitr.net/index.php/2007/08/08/internal-error-pcfg_openfile-called-with-null-filename/) durch eine unvollständige Konfiguration des Apache verursacht. Dort ist in der Datei /etc/apache2/conf.d/nagios.conf die Variable für AuthUserFile nicht gesetzt. Ein explizites Setzen von 

AuthUserFile /dev/null

behebt das Problem. Siehe dazu auch http://httpd.apache.org/docs/2.2/mod/core.html#authtype.
Comment 1 Tobias Scherer univentionstaff 2010-10-01 15:30:04 CEST
erneut berichtet an Ticket#2010092910017858
Comment 2 Martin Müller 2011-06-29 12:14:34 CEST
Created attachment 3366 [details]
add row with "AuthUserFile /dev/null"
Comment 3 Janek Walkenhorst univentionstaff 2011-07-21 17:09:22 CEST
Dieser Patch wurde für UCS 3.0 (Bug #14594) erfolgreich übernommen.
Comment 4 Stefan Gohmann univentionstaff 2012-06-07 14:22:09 CEST
(In reply to comment #3)
> Dieser Patch wurde für UCS 3.0 (Bug #14594) erfolgreich übernommen.

Dann zu.