host and test names with dots
list Rodrigo Borges Pereira
Hello, Is it possible to have test names and host names with dots, and use them with xymon client? For example: xymon localhost "status+60 GREEN <hostname>.<testname> message" How could this work, if at all? Thanks,
list Paul Root
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.
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Rodrigo Borges Pereira
Sent: Monday, March 20, 2017 1:42 PM
To: xymon at xymon.com
Subject: [Xymon] host and test names with dots
Hello,
Is it possible to have test names and host names with dots, and use them with xymon client?
For example: xymon localhost "status+60 GREEN <hostname>.<testname> message"
How could this work, if at all?
Thanks,
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list John Thurston
▸
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
list Torsten Richter
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, from what I remember the dots of a FQDN get replaced by a comma and the dot is still the delimiter between host and test. So in your case it would be foo,bar,com,baz.test. Cheers Torsten
▸
On 20.03.2017 21:07, John Thurston 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'
- -- +---------------------------------------------------------+
| E-mail : user-c862b499d9fa@xymon.invalid | | | | Homepage: http://www.richter-it.net/ | +---------------------------------------------------------+ Download my public key from: http://keys.gnupg.net/pks/lookup?search=0x899093AC&op=get -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAljQOLcACgkQ7DlmxomQk6zetgCg1oQtJkuKXpIuanDPt2M6k8Wn j9sAnjIhZ/7GqPBisWBi42nLtp5uQlXJ =OitB -----END PGP SIGNATURE-----
list Ralph Mitchell
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
list Rodrigo Borges Pereira
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