Hi,
Here is my problem : I have configured several hobbit clients located in DMZ, all works very well but any information are displayed on the Hobbit web interface. I have already two others servers in this configuration and they both work very well : http://www.hswn.dk/hobbiton/2008/02/msg00067.html but not this one : *strange*
Check my all configuration :
CLIENT SIDE :
*Configure.client*
This script asks a few questions and builds a Makefile to compile Xymon Checking your make-utility Xymon normally keeps all of the client configuration files on the Xymon server. If you prefer, it is possible to use a local client configuration file instead - if so, answer 'client' to the next question. NB: Local configuration requires the PCRE libs on each host. Server side client configuration, or client side [server] ? client Checking for the PCRE libraries Checking for PCRE ... Found PCRE include files in /usr/include Found PCRE libraries in /usr/lib Checking for Large File Support ... Large File Support OK What userid will be running Xymon [xymon] ? hobbit Found passwd entry for user hobbit:x:123675:1003::/home/hobbit:/bin/bash Where do you want the Xymon installation [/home/hobbit] ? /opt/hobbit-monitor WARNING: /opt/hobbit-monitor does not exist. What is the IP-address of your Xymon server [127.0.0.1] ? ** NOTE: Using 127.0.0.1 (loopback), but it is probably not what you want ** Using Linux Makefile settings
*clienlaunch.log *
[msgcache] # DISABLE <= OK ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/bin/msgcache --no-daemon --pidfile=$HOBBITCLIENTHOME/logs/msgcache.pid LOGFILE $HOBBITCLIENTHOME/logs/msgcache.log
The main client task
[client] ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh --local <= OK LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log INTERVAL 5m
*hobbitclient.cfg *---- BBDISP="127.0.0.1" # IP address of the Hobbit server BBDISPLAYS="" # IP of multiple Hobbit servers. BBDISP must be "0.0.0.0". CONFIGCLASS="$BBOSTYPE" # Default configuration class for logfiles PATH="/bin:/usr/bin:/sbin:/usr/sbin:/etc" # PATH setting for the client scripts.
You normally dont need to modify anything below here
BBPORT="1984"
*logs/msgcache.log* 2009-07-21 15:49:54 Hobbit msgcache version 4.2.3 starting 2009-07-21 15:49:54 Listening on 0.0.0.0:1984 2009-07-21 16:04:57 Caught TERM signal, terminating 2009-07-21 16:04:57 Hobbit msgcache version 4.2.3 starting 2009-07-21 16:04:57 Listening on 0.0.0.0:1984
*logs/hobbitclient.log* 2009-07-21 15:55:00 Failed to get a message, terminating 2009-07-21 16:00:01 Failed to get a message, terminating 2009-07-21 16:05:03 Failed to get a message, terminating
*clientlaunch.log* 2009-07-21 15:19:42 hobbitlaunch starting 2009-07-21 15:19:42 Loading tasklist configuration from /opt/hobbit-monitor/client/etc/clientlaunch.cfg 2009-07-21 15:49:41 hobbitlaunch starting
*msg.hostname.txt* is full and OK
and packet are ok :
tcpdump port 1984
16:14:19.767068 IP 1.1.1.254.54498 > hostname.domain.local .1984: S 1113231955:1113231955(0) win 5840 <mss 1460,sackOK,timestamp 89476132 0,nop,wscale 7> 16:14:19.767274 IP hostname.domain.local .1984 > 1.1.1.254.54498: S 112300566:112300566(0) ack 1113231956 win 5792 <mss 1460,sackOK,timestamp 357738 89476132,nop,wscale 4> 16:14:19.770541 IP 1.1.1.254.54498 > hostname.domain.local .1984: . ack 1 win 46 <nop,nop,timestamp 89476134 357738>
SERVER SIDE :
*/etc/bb-host* : 1.1.1.1 hostname.domain.local # conn ssh hobbitfetch pulldata NAME:"hostname" DESCR:"DMZ hostname Vmware" * Telnet :* Is good (firewall rules OK)
Server_hobbit # telnet *host_in_dmz* 1984 Trying 1.1.1.1... Connected to hostname.domain.local (1.1.1.1). Escape character is '^]'.
/server/etc$ ../bin/bb 1.1.1.1 ping --debug 2009-07-21 16:32:10 Transport setup is: 2009-07-21 16:32:10 bbdportnumber = 1984 2009-07-21 16:32:10 bbdispproxyhost = NONE 2009-07-21 16:32:10 bbdispproxyport = 0 2009-07-21 16:32:10 Recipient listed as '1.1.1.1' 2009-07-21 16:32:10 Standard BB protocol on port 1984 2009-07-21 16:32:10 Will connect to address 1.1.1.1 port 1984 2009-07-21 16:32:10 Connect status is 0 2009-07-21 16:32:10 Sent 4 bytes 2009-07-21 16:32:10 Closing connection
Could you please help me to find out why 2 servers work fine and the last one doesn't work at all ?
Thanks by advance,
Regards
--
<mailinglist.benoit - at - gmail!com>
On Tue, Jul 21, 2009 at 9:50 AM, Naudit007 <mailinglist.benoit at gmail.com>wrote:
Hi,
Here is my problem : I have configured several hobbit clients located in DMZ, all works very well but any information are displayed on the Hobbit web interface. I have already two others servers in this configuration and they both work very well : http://www.hswn.dk/hobbiton/2008/02/msg00067.html but not this one : *strange*
Check my all configuration :
CLIENT SIDE :
*Configure.client*
This script asks a few questions and builds a Makefile to compile Xymon Checking your make-utility Xymon normally keeps all of the client configuration files on the Xymon server. If you prefer, it is possible to use a local client configuration file instead - if so, answer 'client' to the next question. NB: Local configuration requires the PCRE libs on each host. Server side client configuration, or client side [server] ? client Checking for the PCRE libraries Checking for PCRE ... Found PCRE include files in /usr/include Found PCRE libraries in /usr/lib Checking for Large File Support ... Large File Support OK What userid will be running Xymon [xymon] ? hobbit Found passwd entry for user hobbit:x:123675:1003::/home/hobbit:/bin/bash Where do you want the Xymon installation [/home/hobbit] ? /opt/hobbit-monitor WARNING: /opt/hobbit-monitor does not exist. What is the IP-address of your Xymon server [127.0.0.1] ? ** NOTE: Using 127.0.0.1 (loopback), but it is probably not what you want ** Using Linux Makefile settings
*clienlaunch.log *
[msgcache] # DISABLE <= OK ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/bin/msgcache --no-daemon --pidfile=$HOBBITCLIENTHOME/logs/msgcache.pid LOGFILE $HOBBITCLIENTHOME/logs/msgcache.log
The main client task
[client] ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh --local <= OK LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log INTERVAL 5m
*hobbitclient.cfg *---- BBDISP="127.0.0.1" # IP address of the Hobbit server
This would be your problem, I think. If this really is a client, it needs to have the address of the hobbit/xymon server in BBDISP. What you've got is 'localhost' - you've told the client installation to talk to itself, not to the server...
Ralph Mitchell
Hello Ralph In this case, I use "hobbitfetch" mode e.g: The hobbit server grab itself the data instead of the client send the data to the server. (and not client which send your configuration).
This mode appropriate for dmz which allow only incoming connexion from the Lan.
Do you have other idea on my problem ??? Why I have any data on hobbit server ???
Thanks by advance
Regards
This would be your problem, I think. If this really is a client, it needs
to have the address of the hobbit/xymon server in BBDISP. What you've got is 'localhost' - you've told the client installation to talk to itself, not to the server...
Ralph Mitchell
--
<mailinglist.benoit - at - gmail!com>
Hi Naudit,
i had the same issues with the Xymon client 4.2.0 for AIX 5.3. The msgcache was exiting with an IOT/Abort trap when receiving messages. The following patch to msgcache.c fixes this problem:
230c230 < char idx[20];
char idx[40];
232c232 < STRBUFLEN(mwalk->msgbuf), (long)(now - mwalk->tstamp));
(int)STRBUFLEN(mwalk->msgbuf), (long)(now - mwalk->tstamp)); 529c529 < int caddrsize;
socklen_t caddrsize;
Regards, Cayo
2009/7/22 Naudit007 <mailinglist.benoit at gmail.com>
Hello Ralph In this case, I use "hobbitfetch" mode e.g: The hobbit server grab itself the data instead of the client send the data to the server. (and not client which send your configuration).
This mode appropriate for dmz which allow only incoming connexion from the Lan.
Do you have other idea on my problem ??? Why I have any data on hobbit server ???
Thanks by advance
Regards
This would be your problem, I think. If this really is a client, it needs
to have the address of the hobbit/xymon server in BBDISP. What you've got is 'localhost' - you've told the client installation to talk to itself, not to the server...
Ralph Mitchell
--
<mailinglist.benoit - at - gmail!com>
Thank You Cayo de moraes, I apply your patch on hobbit.4.2.3, but without success. I have the same error. I use Ubuntu Jaunty...
OK I have find the solution. On my others hosts I have installed client version 4.2.0. I tested with version xymon-4.2.3.tar.gz (beta) and xymon-4.2.2.tar.gz but don't work, It was my problems !!! Now I have installed this version hobbit-4.2.0.tar.gz, and work it very well
/!\ Why the news versions of Xymon doesn't work in this mode ???
Thank you for your help.
Regards.
--
<mailinglist.benoit - at - gmail!com>
participants (3)
-
camorae@googlemail.com
-
mailinglist.benoit@gmail.com
-
ralphmitchell@gmail.com