[Pkg-nagios-devel] Bug#395316: nagios2-common: should rotate log files quietly

Mikel Ward michael at endbracket.net
Thu Oct 26 12:00:43 CEST 2006


Package: nagios2-common
Version: 2.5-1
Severity: normal

Every day, nagios2's log files are rotated via
/etc/logrotate.d/nagios2-common (from the nagios2-common package).

When it does this, it produces output on stdout, which causes an email
to be sent.  This email is pretty annoying.

The relevant lines are:
    postrotate
        /etc/init.d/nagios2 reload
    endscript

Most other packages send their output to /dev/null when reloading this
way.  Nagios2 should do the same, i.e.:
    postrotate
        /etc/init.d/nagios2 reload > /dev/null
    endscript

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: hppa (parisc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.21-32
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages nagios2-common depends on:
ii  adduser          3.97                    Add and remove users and groups
ii  apache2          2.0.55-4.1              next generation, scalable, extenda
ii  apache2-mpm-pref 2.0.55-4.1              traditional model for Apache2
ii  coreutils        5.97-5                  The GNU core utilities
ii  debconf [debconf 1.5.6                   Debian configuration management sy
ii  lsb-base         3.1-17                  Linux Standard Base 3.1 init scrip
ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent
ii  nagios-plugins-b 1.4.3.0cvs.20060707-3   Plugins for the nagios network mon
ii  nagios2-doc      2.5-1                   documentation for nagios2
ii  ucf              2.0015                  Update Configuration File: preserv

Versions of packages nagios2-common recommends:
ii  nagios-images      0.3                   Collection of images and icons for
ii  nagios-plugins     1.4.3.0cvs.20060707-3 Plugins for the nagios network mon

-- debconf information excluded




More information about the Pkg-nagios-devel mailing list