RE24 slapadd complains: bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
I prefer slapadd to be silent unless there is something wrong. "database monitor" in slapd.conf shuts it up (which makes the message misleading, first I thought I had done --disable-monitor). But is there some reason why one ought to add database monitor to slapd.conf? Where is it documented?
Hallvard B Furuseth wrote:
RE24 slapadd complains: bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
I prefer slapadd to be silent unless there is something wrong. "database monitor" in slapd.conf shuts it up (which makes the message misleading, first I thought I had done --disable-monitor). But is there some reason why one ought to add database monitor to slapd.conf? Where is it documented?
It's not, but it should be, as you can add things to it via back-config according to Ando.
Didn't he add new monitoring info for bdb caching?
It's not, but it should be, as you can add things to it via back-config according to Ando.
Didn't he add new monitoring info for bdb caching?
Back-monitor allows the programmatical addition of custom monitoring information. Back-bdb and back-hdb by default add specific monitoring information, mostly related to cache usage and missing indexing searches, unless disabled by "monitor FALSE" (or something like that). So, by default, when back-bdb is in use monitoring should be available ("database monitor").
I think the informative warning is issued to inform the administrator of the opportunity is missing. In a GUI-based system this would probably qualify as a "tip-of-the-day" rather than a warning...
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------
[Rearranging message]
Pierangelo Masarati writes:
I think the informative warning is issued to inform the administrator of the opportunity is missing. In a GUI-based system this would probably qualify as a "tip-of-the-day" rather than a warning...
Probably most OpenLDAP admins are missing a whole lot of opportunities. I don't see why this one is more important than others. So my preference would be to delete the message or put it in a loglevel which is off by default. (Or add a lot more such messages, enough to warrant a loglevel for them which could be on by default.)
Back-monitor allows the programmatical addition of custom monitoring information. Back-bdb and back-hdb by default add specific monitoring information, mostly related to cache usage and missing indexing searches, unless disabled by "monitor FALSE" (or something like that). So, by default, when back-bdb is in use monitoring should be available ("database monitor").
Aha... yes, slapd.conf(5) says "monitoring on | off". And the keyword 'monitoring off' also shut the message up.
So the message is sort of inverted: bdb_monitor_db_open: monitoring disabled; configure monitor database to enable Monitoring is enabled, it's the monitor database which is disabled.
If we keep the message, this is as close as I can get a one-liner to match the config keywords (with <backend> = "hdb" or "bdb": "<backend> monitoring on, but no 'database monitor' configured to receive it"
Put that way though, this is more of a message that slapd is doing something inefficiently (which the user did not ask for), and would be better solved with an internal variable which tells the backends if the monitor backend is enabled.
In any case, slapo-monitor(5) should refer to the 'monitoring on|off' keyword in slapd.conf(5) and vice versa.