[Xymon] xymon 4.3.5 errors
    Henrik Størner 
    henrik at hswn.dk
       
    Wed Sep 21 07:48:29 CEST 2011
    
    
  
On 20-09-2011 22:40, Tom Diehl wrote:
> I just upgraded from 4.3.4 to 4.3.5 and I am getting errors that I do not
> understand. I would appreciate it if someone could tell me what to look
> at to
> correct the errors in the following log snippets:
>
> ==> xymonlaunch.log <==
> 2011-09-20 16:06:59 xymonlaunch starting
> 2011-09-20 16:06:59 Loading tasklist configuration from
> /usr/lib/xymon/server/etc/tasks.cfg
> 2011-09-20 16:06:59 Loading hostnames
> 2011-09-20 16:06:59 Cannot load host data
This one puzzles me a bit. Supposedly it comes from xymond while 
starting up, but xymond should not have problems loading hosts.cfg.
> ==> xymongen.log <==
> 2011-09-20 16:07:04 xymond status-board not available, code 0
> 2011-09-20 16:07:04 Failed to load current Xymon status, aborting
> page-update
This is not unusual when Xymon starts. It happens because xymongen (the 
tool that generates the static overview webpages) tries to fetch the 
current status from xymond before it is ready (e.g. because it is 
loading the saved state).
It will run again one minute later and work normally.
> ==> history.log <==
> 2011-09-20 16:07:51 Peer not up, flushing message queue
>
> ==> rrd-status.log <==
> 2011-09-20 16:07:51 Peer not up, flushing message queue
These are normal. xymond_channel doesn't start the various worker 
modules (xymond_rrd, xymond_history etc.) until the first message 
arrives, and when that happens it will log this message.
> ==> xymond.log <==
> 2011-09-20 16:07:51 Whoops ! Failed to send message (timeout)
> 2011-09-20 16:07:51 ->
> 2011-09-20 16:07:51 -> Recipient '192.168.0.2', timeout 15
> 2011-09-20 16:07:51 -> 1st line: 'config hosts.cfg'
> 2011-09-20 16:07:51 Cannot load hosts.cfg from xymond, code 7
> 2011-09-20 16:07:51 Failed to load from xymond, reverting to file-load
This could be the same core problem as the first log message you've shown.
Are you by any chance running xymond with the "--no-download" option? Or 
do you have a "--admin-senders" option enabled for xymond ?
> In addition, restarting xymon clears all of the acks and disabled hosts.
> I can reset them without problem but I do not understand why they are
> getting deleted.
They shouldn't be, but right now I cannot determine if this is a result 
of the problems with loading the hosts.cfg file.
Could you try changing lib/loadhosts_file.c: Lines 140-144 look like this:
    prepresult = prepare_fromnet();
    if (prepresult == -1) {
      errprintf("Failed to load from xymond, reverting to file-load\n");
      prepresult = prepare_fromfile(xgetenv("HOSTSCFG"), extrainclude);
    }
Change them to just
    prepresult = prepare_fromfile(xgetenv("HOSTSCFG"), extrainclude);
Then do a "make clean; make; make install".
Regards,
Henrik
    
    
More information about the Xymon
mailing list