Xymon Mailing List Archive search

Problem configuring HobbitFetch

3 messages in this thread

list Gar Nelson · Fri, 17 Oct 2008 10:18:03 -0600 ·
I have my Hobbit server behind a firewall.  The Hobbit server appears to
be running fine. I'm getting cpu, disk, files, etc data from client
systems on the same network segment.  With systems outside the firewall,
I am only getting the conn, info, and trends - nothing else.

I'm using hobbit-4.2.0.tar.gz source on RHEL4 WS boxes, both server and
clients.

On my outside client, /usr/local/hobbit/client/tmp has;
hobbit_vmstat.ggw-s-log.ggw.noaa.gov.10947
msg.ggw-s-log.ggw.noaa.gov.txt
The file creation dates are current, and being updated.

In /usr/local/hobbit/client/etc/clientlaunch.cfg I've changed [msgcache]
DISABLED to ENABLED
In .../hobbitclient.cfg, BBDISP="127.0.0.1"

selinux is set to permissive.

The hobbit client has been restarted.

The msgcache.log shows a normal start and listening on 0.0.0.0:1984
The clientlaunch.log does not show any errors.
The hobbitclient.log does not show any errors. (existing entries are old
errors.)

Hobbit is configured to use uid = "bb". User bb can ssh without a
password from the internal server to the external client. Tested on IP,
and all variations of the full URL, and configured alias URLs.

In /usr/local/hobbit/server/etc/bb-hosts, the external client has
"pulldata" listed after the #

The hobbit server has been restarted.

I must be missing something, but I'm not having much luck figuring out
what it is. Any assistance would be greatly appreciated.

Gar
list Dan McDonald · Fri, 17 Oct 2008 11:44:31 -0500 ·
quoted from Gar Nelson
On Fri, 2008-10-17 at 10:18 -0600, Gar Nelson wrote:
I have my Hobbit server behind a firewall.  The Hobbit server appears to
be running fine. I'm getting cpu, disk, files, etc data from client
systems on the same network segment.  With systems outside the firewall,
I am only getting the conn, info, and trends - nothing else.

I'm using hobbit-4.2.0.tar.gz source on RHEL4 WS boxes, both server and
clients.
Did you set enable hobbitfetch on the server?  By default it isn't
enabled.

In hobbitlaunch.cfg, you need something like:

# "hobbitfetch" is used when you have clients that cannot connect to your Hobbit server,
# but the Hobbit server can connect to the client. Normally the clients will initiate
# a connection to the Hobbit server to deliver the data they collect, but this is
# forbidden in some firewall setups. By enabling the hobbitfetch task, hosts that have
# the "pulldata" tag in the bb-hosts file will be polled by hobbitfetch for their data.
#
# NOTE: On the clients you must enable the "msgcache" task, since this is what 
#       hobbitfetch is talking to.
[hobbitfetch]
#       DISABLED
        ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg
        CMD $BBHOME/bin/hobbitfetch --server=127.0.0.1 --no-daemon --pidfile=$BBSERVERLOGS/hobbitfetch.pid
        LOGFILE $BBSERVERLOGS/hobbitfetch.log


-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com
list Gar Nelson · Fri, 17 Oct 2008 11:22:02 -0600 ·
quoted from Dan McDonald
McDonald, Dan wrote:
On Fri, 2008-10-17 at 10:18 -0600, Gar Nelson wrote:
  
I have my Hobbit server behind a firewall.  The Hobbit server appears to
be running fine. I'm getting cpu, disk, files, etc data from client
systems on the same network segment.  With systems outside the firewall,
I am only getting the conn, info, and trends - nothing else.

I'm using hobbit-4.2.0.tar.gz source on RHEL4 WS boxes, both server and
clients.
    
Did you set enable hobbitfetch on the server?  By default it isn't
enabled.

In hobbitlaunch.cfg, you need something like:

[hobbitfetch]

        *ENABLED*
        ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg
        CMD $BBHOME/bin/hobbitfetch *--server=127.0.0.1* --no-daemon --pidfile=$BBSERVERLOGS/hobbitfetch.pid
        LOGFILE $BBSERVERLOGS/hobbitfetch.log

  
That was it, thanks!  I needed to enable hobbitfetch on the server, and
to also specify my server IP.  I did that and bounced the server, and
now I'm getting the external system data columns.

Gar