hi,

On Wed, Nov 02, 2005 at 06:39:59PM +0100, Michael Bussmann wrote:
> A dry-run on the command line showed that cactid could not open
> the connection to the DBMS (too bad this error message is printed
> on stdout instead of stderr, so the logfiles don't show anything
> interesting (cronjob: >/dev/null 2>/var/log/cacti/poller-error.log)

ew.  if you could find the relevant error message, i'll patch it to
spit it out to stderr instead (where it should go in the first place)

> Strace'ing the process showed that cactid tries to open the wrong
> config file:
> 
> | 19526 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
> | 19526 open("cactid.conf", O_RDONLY)     = -1 ENOENT (No such file or 
> directory)
> | 19526 open("/etc/cacticactid.conf", O_RDONLY) = -1 ENOENT (No such file or 
> directory)
                ^^^^^^^^^^^^^^^^^^^^^

hmm... looks like the search path was changed to remove the trailing '/'
from the directory where the config file is.  it shouldn't be too hard
to fix that up.

> A dirty workaround is to place a symlink of /etc/cacti/cactid.conf in
> /usr/sbin.

good to know there's something that will work in the meantime :)


        sean

-- 

Attachment: signature.asc
Description: Digital signature

Reply via email to