[op5-users] merlin 0.6
Andreas Ericsson
ae at op5.se
Fri Jul 10 09:42:17 CEST 2009
a.hanifi at ville.laval.qc.ca wrote:
> hi guys,
>
> is there a new bug introduced with the new version of merlin ? (v0.6)
> seems like this version con not (or will not try ?) to connect to
> mysql...just to be sure i grabbed an old snapshot which work just
> fine.
>
It connects to the database alright, but it never runs the import
program because it does an on-demand connect when the module sends
the saved host and service status events. I'm working on fixing
this right now, so that it will always trigger an import no matter
when or how it connects.
In the mean-time, you can run the import-program manually, like so:
php import.php --cache=/path/to/objects.cache --status-log=/path/to/status.log
> also merlin module by default will try to make a log file called
> neb.log in $dest_dir/logs/neb.log and since merlin module will be
> running with the same credentials as nagios .. this file may never
> be created if nagios_user can not write create files in $dest_dir
> directory adding a simple ligne to install-merlin.sh like
>
> chown -R `cat $nagios_cfg | grep -i nagios_user | cut -d= -f2`
> $dest_dir will fix this.
>
Ah, very clever, and certainly better than the workaround we use
right now, which is to make the directory world-writable.
Thanks. I'll fix this in a minute.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
More information about the op5-users
mailing list