Bug #1086

No lock_file field in Configuration - Centreon - ndo2db.cfg

Added by huaping huang almost 6 years ago. Updated 12 months ago.

Status:RejectedStart date:07/29/2009
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:wontfix Affect Version:

Description

which brought us incovenience for writing a ndo2db init script ...

in ndo2db.cfg, there's a lock_file=/path/to/ndo2db.lock directive, and hope this can be added into centreon mgmt iface.

History

#1 Updated by Julien Mathis almost 6 years ago

Since 1.4-b8 ?

#2 Updated by huaping huang almost 6 years ago

yes. in ndoutils 1.4-b8 changelog
- Added lock_file option

Julien Mathis wrote:

Since 1.4-b8 ?

#3 Updated by huaping huang almost 6 years ago

and also several debug directives like debug_level debug_file blabla are not supported, too.
but this seems less important.
huaping huang wrote:

yes. in ndoutils 1.4-b8 changelog
- Added lock_file option

Julien Mathis wrote:

Since 1.4-b8 ?

#4 Updated by Julien Mathis almost 6 years ago

  • Target version set to Centreon-3.0

#5 Updated by Andrew Greenwood about 4 years ago

Why does centreon need to meddle with the ndoutils database anyway.. and touch that configuration at all?

The user is expected to build/install nagios before centreon as it stands anyway and your not providing your version of the module as far as I can see in the distro.

I got nagios and ndoutils setup and ready only to find centreon want's to use it's own 'centstatus' version (which doesn't even populate the nagios_dbversion table with the correct version so updating the schema of this database must be tied to Centreon releases.

It would be nice to see a cleaner decoupling of the Nagios project stuff from centreon.

Why can't the ACL table live in the centreon database and centreon simply have credentials to access the ndoutils database leaving it in the Nagios realm.
It's annoying even with Nagios configuration items that come out in new releases that are not supported in centreon for some time afterwords. (like checking for software updates) afterwords. This lock file issue drove me crazy today until I figured out what was happening it breaks the start/stop script for the ndoutil daemon.

One simple solution to address this is to allow user defined key/value pairs to be added to the various configuration files so the user can maintain newer options themselves until they get rolled into core.

#6 Updated by Kenny Kevin almost 4 years ago

I hate to do "me too", but it would be nice if at the very least this config setting (lock_file ) was pulled forward to v2.x.

I just spent the last three hours getting to the bottom of why the ndo2db process wasn't being killed.

And it also means I have to fix this every time we push a config update to nagios. It's not huge, but it is a faff.

#7 Updated by Julien Mathis over 1 year ago

  • Status changed from New to Rejected
  • Resolution set to wontfix

#8 Updated by Julien Mathis over 1 year ago

  • Target version deleted (Centreon-3.0)

#9 Updated by Eugene Bond about 1 year ago

Sorry but why won't it be fixed?

I'm running centreon 2.5.1 and nagios 3.2.3 on ubuntu 12.04.4 and still have the same problem - I have to add this option to config manually every time I update centreon config. It is irritating as hell.

#10 Updated by Hugo Nieva 12 months ago

Hi Eugene,

You can try the solution provided by magicbret in http://forum.centreon.com/archive/index.php/t-10560.html
It worked for me. (Centreon 2.4.5 NDO 1.5.2 patched by Merethis)

Regards,
Hugo

Also available in: Atom PDF