Xymon Mailing List Archive search

Xymon status does not get updated

list Yanni
Tue, 16 Oct 2012 15:04:33 +0100
Message-Id: <user-64005ad5373b@xymon.invalid>

OK, I downloaded and installed netcat and run the command: $ echo xymondboard | netcat 193.61.54.144 1984
waited for a couple of seconds but nothing was returned. I tried both 'netcat' and 'nc'.

I then killed all xymond jobs: $ killall -9 xymond

then run your netstat command: $ netstat -na|grep 1984.*LISTEN
and it returned:
$ tcp        0      0 0.0.0.0:1984 0.0.0.0:*                   LISTEN

xymond is not anymore in my 'top' list.

$ps auf | grep xymond
returns:
$ xymon     1465  0.0  0.0   4012   664 pts/1    S+   14:35 0:00          \_ grep xymond

also xymon.sh is running

I am getting confused and the reason is that although I think I killed xymond now xymon seems to be working and the hosts.cfg file gets loaded. I removed and added a few hosts and the main xymon page gets updated now.
However my xymond is not happy because it's posting a yellow dizzy face.

Please see a few lines from xymonlaunch.log:

2012-10-16 11:07:41 FATAL: xymond sees clientcount 1, should be 0. Check for hanging xymond_channel processes or stale semaphores
2012-10-16 11:07:41 Cannot setup page channel
2012-10-16 11:07:41 Task xymond terminated, by signal 9
2012-10-16 11:07:46 Loading hostnames
2012-10-16 11:07:47 Loading saved state
2012-10-16 11:07:47 Setting up network listener on 0.0.0.0:1984
2012-10-16 11:07:47 Setting up signal handlers
2012-10-16 11:07:47 Setting up xymond channels
2012-10-16 11:07:47 Setting up logfiles

So why everything works after I killed all xymond???

I am super-confused.

On 10/16/2012 01:39 AM, Jeremy Laidman wrote:
On 15 October 2012 20:25, Yanni <user-04b379562e0f@xymon.invalid <mailto:user-04b379562e0f@xymon.invalid>> wrote:

    It seems that telnet works because it returns "connected to
    193.61.54.144", however it looks like it hangs after the:
    (Escape character is '^]') line.


That's to be expected.  When doing a telnet test like this, you can get one of three things:
* connection refused (nothing listening on that port)
* time-out (firewall dropping packets)
* connected (works)

You got the last one, so all good.

If you have netcat, try doing this:

$ echo xymondboard | netcat 193.61.54.144 1984

This should get you a list of hosts and their status.  The command might be "nc" rather than "netcat".

    xymonlaunch.log:
    2012-10-15 09:56:06 Setting up network listener on *MailScanner
    warning: numerical links are often malicious:* 0.0.0.0:1984
    <http://0.0.0.0:1984>;
    2012-10-15 09:56:06 Cannot bind to listen socket (Address already
    in use)


Perhaps you have xymond running twice?  Stop xymond, and kill all remaining xymond  processes before attempting to start it again.  Before starting, you should see no output from this:

$ netstat -na|grep 1984.*LISTEN

Cheers
Jeremy