xymon 4.3.5 errors
list Tom Diehl
Hi, 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 2011-09-20 16:06:59 Loading saved state 2011-09-20 16:06:59 Setting up network listener on 0.0.0.0:1984 2011-09-20 16:06:59 Setting up signal handlers 2011-09-20 16:06:59 Setting up xymond channels 2011-09-20 16:06:59 Setting up logfiles ==> 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 ==> 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 ==> 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 I am using the exact same hosts.cfg as I used with 4.3.4. selinux is in permissive and the permissions on hosts.cfg are as follows. (bugs pts10) # ll /etc/xymon/hosts.cfg -rw-r--r-- 1 root root 4255 Aug 30 04:57 /etc/xymon/hosts.cfg (bugs pts10) # 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. If it matters the system is a Centos 5 i386 box. Regards, -- Tom Diehl user-6203f2c4f8ec@xymon.invalid Spamtrap address user-0545b31a2bcf@xymon.invalid
list Henrik Størner
▸
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
list Martin Flemming
Hi, any news about the errors below ? I've got the same errors :-( Latest error messages: Loading hostnames Cannot load host data Loading saved state Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Too few fields in record - found 6, expected 17 Setting up network listener on 0.0.0.0:1984 Setting up signal handlers Setting up xymond channels Setting up logfiles Setup complete Whoops ! Failed to send message (timeout) -> -> Recipient 'XXX.XXX.XXX.XXX', timeout 15 -> 1st line: 'config hosts.cfg'
▸
Cannot load hosts.cfg from xymond, code 7
Failed to load from xymond, reverting to file-load
It will run again one minute later and work normally.
.. me too ?! cheers, martin
▸
On Wed, 21 Sep 2011, Henrik Størner wrote:
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 dataThis 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-updateThis 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.
list Henrik Størner
▸
On 21-09-2011 07:48, Henrik Størner wrote:
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 dataThis one puzzles me a bit. Supposedly it comes from xymond while starting up, but xymond should not have problems loading hosts.cfg.
Turned out to be a 4.3.5 bug, which could cause all sorts of funny issues. Definitely worth an upgrade to 4.3.6. Regards, Henrik
list Christophe Baroni
Hello, I have a lot of problem for configurate my xymon. however i don't can change my map after doing a change on the hosts file. could you help me because today i'm in unable to progress in my install. Best regards Thanks a lot for your response.