nagios3-common and nagios3-core : grep: /etc/nagios3/cgi.cfg: No such file or directory

Bug #615810 reported by Chris Bainbridge
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nagios3 (Ubuntu)
Fix Released
Low
Unassigned
Nominated for Lucid by Etienne Goyer

Bug Description

Binary package hint: nagios3

# apt-get install nagios3

...

Setting up nagios3-common (3.2.0-4ubuntu2) ...

Adding system-user for nagios

Creating config file /etc/nagios3/conf.d/host-gateway_nagios3.cfg with new version
 * Starting nagios3 monitoring daemon nagios3 grep: /etc/nagios3/cgi.cfg: No such file or directory
shift: 236: can't shift that many
 * unable to determine nagios_check_command from /etc/nagios3/cgi.cfg!... [fail]

Setting up nagios3-core (3.2.0-4ubuntu2) ...
grep: /etc/nagios3/cgi.cfg: No such file or directory
shift: 236: can't shift that many
 * Starting nagios3 monitoring daemon nagios3 grep: /etc/nagios3/cgi.cfg: No such file or directory
shift: 236: can't shift that many
 * unable to determine nagios_check_command from /etc/nagios3/cgi.cfg!... [fail]

description: updated
Revision history for this message
Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Was the nagios3 removed (and not purged) before being reinstalled? Has /etc/nagios3/cgi.cfg been deleted by hand?

Changed in nagios3 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Chris Bainbridge (chris-bainbridge) wrote :

No, nagios3 has never been on this system before. I've tested on another clean system and the same error occurs.

You should be able to reproduce this easily:

    apt-get purge nagios*
    apt-get install nagios3-core

nagios3-core expects nagios3-cgi to be setup. You need to add the following line to the nagios3-core section of debian/control:

    Pre-Depends: nagios3-cgi

Changed in nagios3 (Ubuntu):
status: Incomplete → New
Revision history for this message
Chuck Short (zulcss) wrote :

This should be fixed for maverick.

Thanks for the bug report.
chuck

Changed in nagios3 (Ubuntu):
status: New → Fix Released
Revision history for this message
Etienne Goyer (etienne-goyer-outlands) wrote :

The error seems to be cosmetic, as the service would still start (I have not checked in depth, though). Still, the fix is trivial and really ought to be SRU'ed at some point, IMHO.

Revision history for this message
Paul Belanger (pabelanger) wrote :

nagios3 (3.2.0-4ubuntu2.3) lucid-proposed; urgency=low

  * Don't rely on nagios3-cgi in initscript (LP: #615810)

 -- Paul Belanger <email address hidden> Thu, 01 Dec 2011 07:44:45 -0500

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.