Xymon Mailing List Archive search

host and test names with dots

list Rodrigo Borges Pereira
Mon, 20 Mar 2017 21:30:05 +0000
Message-Id: <CABvQB+ZAyyqbbrbpV6P1xkz4ftyg1nMzM0eA=HODMBzbNb=user-a5667999f582@xymon.invalid>

Hi,

Thanks all for the comments/confirmations.

I find that I don't need to convert the dots in the hostname part to
commas, I just push it as it is to xymon utility. Xymon will get testname
after the last dot, regardless of the dots before.

As I just need this for the sake of better visualization and copy-paste for
test names that have dots (IP's or hostnames), I guess one approach is to
modify the source that produces the pages so that in the HTML the commas
become dots.

Thanks again!

On Mon, Mar 20, 2017 at 8:22 PM Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>
wrote:
The original BigBrother used just server name and test name, separated by
a dot:

   server<dot>testname

When FQDN was introduced into BB, the parts of the fully-qualified
hostname were comma-separated:

   server<comma>domain<comma>com<dot>testname

I don't know how it deals with multiple dots in the testname.

Ralph Mitchell


On Mon, Mar 20, 2017 at 4:07 PM, John Thurston <user-ce4d79d99bab@xymon.invalid>
wrote:

On 3/20/2017 10:51 AM, Root, Paul T wrote:

Hosts can have dots in them. The default is that you give FQDN.


I’ve never tried for a test name. My gut feeling is that you couldn’t do
that.


I can't see how the server would be able to parse the message. Is
'foo.bar.com.baz' a test named 'com.baz' for host 'foo.bar', or is it a
test named 'bar.com.baz' for a host named 'foo'?

From what I recall of my last read of the source, the parser assumes dot
is the delimiter, and the last field is the test name. Everything to the
left of that is the hostname. The above example would be parsed as a test
named 'baz' for host 'foo.bar.com'

--
   Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska