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,
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.
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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
-----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 : bb4 [at] richter-it.net | | | | 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-----
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 <john.thurston at alaska.gov> 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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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 <ralphmitchell at gmail.com> 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 <john.thurston at alaska.gov> 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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (5)
-
bb4@richter-it.net
-
john.thurston@alaska.gov
-
Paul.Root@CenturyLink.com
-
ralphmitchell@gmail.com
-
rodrigoborgespereira@gmail.com