[Pkg-nagios-devel] Bug#308568: nagios-pgsql: /usr/lib/nagios/plugins/check_nagios_db is missing

Turbo Fredriksson Turbo Fredriksson <turbo@bayour.com>, 308568@bugs.debian.org
Wed, 11 May 2005 08:23:36 +0200


Package: nagios-pgsql
Version: 1.3-cvs.20050402-2.TF.1
Severity: important

Version excuse:
  This is a backport by me to install/build on a woody system.
  There is NO changes to the package exept:
    * Lower build depends to build on woody:
      - libmysqlclient12-dev => libmysqlclient10-dev
      - debhelper 4.2.21 => 4.0.2
      - libpng12-dev => libpng2-dev
    * Add libgd-noxpm-dev as build depends (as an or to libgd2-xpm-dev
      and libgd-noxpm-dev).

Problem 1a:
  I know that the informantion is in the readme, I can (and have)
  done this myself right now. But I it would have been nice if this
  was already done...

  Also, the readme doesn't state that the resulting file (after
  the copy and patching) should be made executable. Obvious after
  the following message but still:

  bash: /usr/lib/nagios/plugins/check_nagios_db: /usr/bin/perl: bad interpreter: Permission denied
  
Problem 1b:
  The readme file states that /etc/nagios/nagios.cgi should be edited
  to add the nagios_check_command statement. But it seems that it should
  be the cgi.cfg file:

  aurora:/usr/share/doc/nagios-pgsql# grep nagios_check_command /etc/nagios/*
  /etc/nagios/cgi.cfg:#nagios_check_command=/usr/lib/nagios/plugins/check_nagios /var/log/nagios/status.log 5 'nagios'
  /etc/nagios/cgi.cfg:#nagios_check_command=/etc/nagios/check_nagios_db

  Note that the command THERE is '/etc/nagios/check_nagios_db', NOT
  the stated '/usr/lib/nagios/plugins/check_nagios_db'. The former location
  is a must (init script etc uses this - which is wrong in it self, it
  should extract the 'nagios_check_command' option if set from the config).

Problem 1c:
  The readme states that one should test the new script, but first time
  that fails:

  aurora:/usr/share/doc/nagios-pgsql# /usr/lib/nagios/plugins/check_nagios_db
  Nagios problem: no process identifier found in the database
  Database handle destroyed without explicit disconnect.

  Also, it's not possible to restart nagios. It segfaults after the
  configuration changes. I'll have to dig deeper (I've forgot :) on
  why this is happening.



PS: I'm putting this bug as 'important' because I really feel that if there IS
    documentation, it _MUST_ be correct. Sure, _I_ can work around it - I have
    that experience, but this time I failed and can't fix it immediately... :)
-- 
congress domestic disruption Ortega nuclear Ft. Bragg Cocaine Clinton
FBI Serbian pits tritium [Hello to all my fans in domestic
surveillance] nitrate bomb genetic
[See http://www.aclu.org/echelonwatch/index.html for more about this]