Xymon Mailing List Archive search

Not finding Hosts in bb-host Include File

7 messages in this thread

list Keith Troutman · Mon, 28 Nov 2005 11:21:33 -0500 ·
Hobbit 4.1.2.
When using an include in bb-hosts,
../hobbit412-cgi/bb-hostsvc.sh?HOSTSVC=doclib,net.conn&IP=192.135.189.10
7&DISPLAYNAME=doclib.net returns "No such Host" - (doclib.net is a host
defined in the include file).  Moving the definition into the bb-hosts
file resolves the issue but is inconvenient - we would like to be able
to manage subpages via the include functionality.  I've found no errors
in the logs, is there a change required in another configuration file
that I could be missing?  I've tested the same scenario on hobbit 4.0.4
and had the same results.  
 
Thank you,
Keith Troutman
list Jeff Stoner · Thu, 08 Dec 2005 03:40:46 -0500 ·
1. Can a hobbitd worker subscribe to more than one channel without
launching multiple workers? Can you add a:


[frazzle]
        ENVFILE /home/hobbit/server/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=stachg,status,notes --log=
$BBSERVERLOGS/frazzle.log hobbitd_frazzle

so the hobbitd_frazzle worker gets stachg, status and notes messages?


2. What is the hobbitd_filter program? The comment is:

/* Filter for incoming messages.
/* This module is invoked when a new status message is received, but
/* before it is handled by the daemon. The message is passed from
/* hobbitd in shared memory, so this filter can modify the message e.g.
/* change the color of the message based on some criteria.

but I don't see where it gets called from hobbitd or launched as a
separate process. I'm very intrigued by this code and what I can
accomplish with it.


-Jeff 

"Fun with Users #1: ln -s /dev/random /etc/motd"
list Henrik Størner · Thu, 15 Dec 2005 14:53:13 +0100 ·
quoted from Jeff Stoner
On Thu, Dec 08, 2005 at 03:40:46AM -0500, Jeff Stoner wrote:
1. Can a hobbitd worker subscribe to more than one channel without
launching multiple workers?
No. One instance of each worker module listens to one channel only.
However, you can have the same worker module running in multiple
instances, e.g. hobbitd_rrd runs twice - one listens on the "status"
channel, the other listens on the "data" channel.
quoted from Jeff Stoner
2. What is the hobbitd_filter program? The comment is:

/* Filter for incoming messages.
It's a left-over from some early thoughts I had about how to deal with
clients.
quoted from Jeff Stoner
but I don't see where it gets called from hobbitd or launched as a
separate process. I'm very intrigued by this code and what I can
accomplish with it.
It was never finished, so you cannot do anything with it. What did you
have in mind ?


Henrik
list Jeff Stoner · Fri, 23 Dec 2005 20:32:14 -0500 ·
quoted from Henrik Størner
On Thu, 2005-12-15 at 14:53 +0100, Henrik Stoerner wrote:
2. What is the hobbitd_filter program? The comment is:

/* Filter for incoming messages.
It's a left-over from some early thoughts I had about how to deal with
clients.
but I don't see where it gets called from hobbitd or launched as a
separate process. I'm very intrigued by this code and what I can
accomplish with it.
It was never finished, so you cannot do anything with it. What did you
have in mind ?
Embedding a Perl interpreter, hooking into the message stream, a la
mod_perl. hobbitd_filter would be the perfect place for this since
hobbitd workers can only connect to one channel. In order to create
hooks for the various message types, I'd have to have an embedded perl
worker running for each channel and they wouldn't be able to (easily)
share cached code, memory, etc.

There may be other ways to accomplish what I'm doing. I'll keep
researching.


-- 
--Jeff
"Go to Jail. Do not pass Go. Do not collect $200."
list Galen Johnson · Mon, 02 Oct 2006 21:21:47 -0400 ·
Hey Henrik,

I'm playing around with the Ports monitoring that is built into Hobbit.  I'm planning to use the graphing function to trend the number of connections for a particular port...the questions I have are:

1) Why can I not set a minimun of 0?  I thought that by explicitly specifying 0 for the min count I should be able to have it always be green and graph the number of connections...however, it seems that Hobbit is overriding the hard 0 setting.

2) when using TEXT="Some Service", it shows up on the web page as "Some Service...leading quote visible...I'm assuming this is not expected behavior...I haven't checked the patch page yet but I'll be headed there next.

Note, this is Hobbit 4.2...August download.

=G=
list Galen Johnson · Mon, 02 Oct 2006 21:31:40 -0400 ·
quoted from Galen Johnson
Galen Johnson wrote:
Hey Henrik,

I'm playing around with the Ports monitoring that is built into Hobbit.  I'm planning to use the graphing function to trend the number of connections for a particular port...the questions I have are:

1) Why can I not set a minimun of 0?  I thought that by explicitly specifying 0 for the min count I should be able to have it always be green and graph the number of connections...however, it seems that Hobbit is overriding the hard 0 setting.

2) when using TEXT="Some Service", it shows up on the web page as "Some Service...leading quote visible...I'm assuming this is not expected behavior...I haven't checked the patch page yet but I'll be headed there next.

Note, this is Hobbit 4.2...August download.

=G=
Nevermind...right after I sent this, I reread the config file...I needed to surround the entire TEXT argument with "" (not intuitive but I now have the syntax down)...as for the min count, I was using the same  syntax as for ports and not explicitly stating MIN=

=G=
list Galen Johnson · Mon, 02 Oct 2006 22:06:28 -0400 ·
quoted from Galen Johnson
Galen Johnson wrote:
Hey Henrik,

I'm playing around with the Ports monitoring that is built into Hobbit.  I'm planning to use the graphing function to trend the number of connections for a particular port...the questions I have are:

1) Why can I not set a minimun of 0?  I thought that by explicitly specifying 0 for the min count I should be able to have it always be green and graph the number of connections...however, it seems that Hobbit is overriding the hard 0 setting.

2) when using TEXT="Some Service", it shows up on the web page as "Some Service...leading quote visible...I'm assuming this is not expected behavior...I haven't checked the patch page yet but I'll be headed there next.

Note, this is Hobbit 4.2...August download.

=G=

Nevermind...right after I sent this, I reread the config file...I needed to surround the entire TEXT argument with "" (not intuitive but I now have the syntax down)...as for the min count, I was using the same syntax as for procs and not explicitly stating MIN=

=G=