New remote summaries fail with "Invalid new testname" with at least 4.3.27
Hi,
we have a few scripts which generate their own web page and only send summaries to the Xymon server. In the past, these messages worked and looked like this:
summary summary.mac.$vlan $topcolor http://$myname/mac/$vlan.html $date
"mac" showed up as row/hostname and $vlan showed up as column/test.
With not yet received values for $vlan, we get "Bogus message from …: Invalid new testname: 'mac.dc2552'" error messages in the display of the xymond test.
According to the xymond/xymond.c source code at line 620, that format (especially "summary summary" seems expected.
But then again, if I look at the line generating that error message (line 1254 in the same file), it seems that dots are no more allowed in test names. (Existing ones are still allowed, probably in line 1251, and hence do not generate these errors and show up.)
So I tried to send messages of the format
summary mac.$vlan $topcolor http://$myname/mac/$vlan.html $date
But now the Remote Status Display table vanished completely from nongreen.html and I get "Hostname 'mac' in tree, but no host-info" warnings in the display of the xymond test.
So I reverted that change and now the Remote Status Display table is back, but so are the "Invalid new testname" errors.
Is this a recent regression? (I found mails on this list about if summaries really have been fixed in 4.3.20, but without much details.)
Or am I missing something? Has the format of these messages become stricter on purpose? If so, where are they documented? The "SENDING SUMMARIES TO REMOTE XYMON SERVERS" section in hosts.cfg(5) seems to be about "summary" items inside hosts.cfg, not about the syntax of the summary messages.
Kind regards, Axel Beckert
-- Axel Beckert <beckert at phys.ethz.ch> support: +41 44 633 26 68 IT Services Group, HPT H 6 voice: +41 44 633 41 89 Departement of Physics, ETH Zurich CH-8093 Zurich, Switzerland http://nic.phys.ethz.ch/
I don’t use summary anymore; but when I did, I seem to remember the color of the summary doesn't propagate to the local server. So I'd say it not appearing in non-green would be appropriate.
The way I used summary was to have an executive view of other sites. So that would be what I wanted.
-----Original Message----- From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Axel Beckert Sent: Wednesday, August 03, 2016 9:20 AM To: xymon at xymon.com Subject: [Xymon] New remote summaries fail with "Invalid new testname" with at least 4.3.27
Hi,
we have a few scripts which generate their own web page and only send summaries to the Xymon server. In the past, these messages worked and looked like this:
summary summary.mac.$vlan $topcolor http://$myname/mac/$vlan.html $date
"mac" showed up as row/hostname and $vlan showed up as column/test.
With not yet received values for $vlan, we get "Bogus message from …: Invalid new testname: 'mac.dc2552'" error messages in the display of the xymond test.
According to the xymond/xymond.c source code at line 620, that format (especially "summary summary" seems expected.
But then again, if I look at the line generating that error message (line 1254 in the same file), it seems that dots are no more allowed in test names. (Existing ones are still allowed, probably in line 1251, and hence do not generate these errors and show up.)
So I tried to send messages of the format
summary mac.$vlan $topcolor http://$myname/mac/$vlan.html $date
But now the Remote Status Display table vanished completely from nongreen.html and I get "Hostname 'mac' in tree, but no host-info" warnings in the display of the xymond test.
So I reverted that change and now the Remote Status Display table is back, but so are the "Invalid new testname" errors.
Is this a recent regression? (I found mails on this list about if summaries really have been fixed in 4.3.20, but without much details.)
Or am I missing something? Has the format of these messages become stricter on purpose? If so, where are they documented? The "SENDING SUMMARIES TO REMOTE XYMON SERVERS" section in hosts.cfg(5) seems to be about "summary" items inside hosts.cfg, not about the syntax of the summary messages.
Kind regards, Axel Beckert
-- Axel Beckert <beckert at phys.ethz.ch> support: +41 44 633 26 68 IT Services Group, HPT H 6 voice: +41 44 633 41 89 Departement of Physics, ETH Zurich CH-8093 Zurich, Switzerland http://nic.phys.ethz.ch/
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon 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 8/3/2016 7:19 AM, Axel Beckert wrote:
Hi,
we have a few scripts which generate their own web page and only send summaries to the Xymon server. In the past, these messages worked and looked like this:
summary summary.mac.$vlan $topcolor http://$myname/mac/$vlan.html $date
"mac" showed up as row/hostname and $vlan showed up as column/test.
With not yet received values for $vlan, we get "Bogus message from …: Invalid new testname: 'mac.dc2552'" error messages in the display of the xymond test.
According to the xymond/xymond.c source code at line 620, that format (especially "summary summary" seems expected.
But then again, if I look at the line generating that error message (line 1254 in the same file), it seems that dots are no more allowed in test names. (Existing ones are still allowed, probably in line 1251, and hence do not generate these errors and show up.)
So I tried to send messages of the format
summary mac.$vlan $topcolor http://$myname/mac/$vlan.html $date
But now the Remote Status Display table vanished completely from nongreen.html and I get "Hostname 'mac' in tree, but no host-info" warnings in the display of the xymond test.
So I reverted that change and now the Remote Status Display table is back, but so are the "Invalid new testname" errors.
Is this a recent regression? (I found mails on this list about if summaries really have been fixed in 4.3.20, but without much details.)
Or am I missing something? Has the format of these messages become stricter on purpose? If so, where are they documented? The "SENDING SUMMARIES TO REMOTE XYMON SERVERS" section in hosts.cfg(5) seems to be about "summary" items inside hosts.cfg, not about the syntax of the summary messages.
Kind regards, Axel Beckert
Hi Axel,
I believe this is a side-effect of https://sourceforge.net/p/xymon/code/7901/ , which tightened rules on both hostnames and test names. It was documented in the release notes as that, but didn't mention summaries at all.
I think you're right in that the tightened rules are hitting the otherwise-unusual "summary summary.host.test" incorrectly, which is what's expected (and what is generated by xymongen and everything else)... We ingest the entire hostsvc here and store it as the testname, which gets booted out.
Testing a fix now.
Regards, -jc
On 8/3/2016 10:35 AM, Japheth Cleaver wrote:
On 8/3/2016 7:19 AM, Axel Beckert wrote:
Hi,
we have a few scripts which generate their own web page and only send summaries to the Xymon server. In the past, these messages worked and looked like this:
summary summary.mac.$vlan $topcolor http://$myname/mac/$vlan.html $date
"mac" showed up as row/hostname and $vlan showed up as column/test.
With not yet received values for $vlan, we get "Bogus message from …: Invalid new testname: 'mac.dc2552'" error messages in the display of the xymond test.
According to the xymond/xymond.c source code at line 620, that format (especially "summary summary" seems expected.
But then again, if I look at the line generating that error message (line 1254 in the same file), it seems that dots are no more allowed in test names. (Existing ones are still allowed, probably in line 1251, and hence do not generate these errors and show up.)
So I tried to send messages of the format
summary mac.$vlan $topcolor http://$myname/mac/$vlan.html $date
But now the Remote Status Display table vanished completely from nongreen.html and I get "Hostname 'mac' in tree, but no host-info" warnings in the display of the xymond test.
So I reverted that change and now the Remote Status Display table is back, but so are the "Invalid new testname" errors.
Is this a recent regression? (I found mails on this list about if summaries really have been fixed in 4.3.20, but without much details.)
Or am I missing something? Has the format of these messages become stricter on purpose? If so, where are they documented? The "SENDING SUMMARIES TO REMOTE XYMON SERVERS" section in hosts.cfg(5) seems to be about "summary" items inside hosts.cfg, not about the syntax of the summary messages.
Kind regards, Axel BeckertHi Axel,
I believe this is a side-effect of https://sourceforge.net/p/xymon/code/7901/ , which tightened rules on both hostnames and test names. It was documented in the release notes as that, but didn't mention summaries at all.
I think you're right in that the tightened rules are hitting the otherwise-unusual "summary summary.host.test" incorrectly, which is what's expected (and what is generated by xymongen and everything else)... We ingest the entire hostsvc here and store it as the testname, which gets booted out.
Testing a fix now.
Regards, -jc
I failed to mention... This would have come in in 4.3.26.
-jc
Dear J.C.,
On Wed, Aug 03, 2016 at 10:35:51AM -0700, Japheth Cleaver wrote: [ Summaries vs Test Name Syntax ]
Is this a recent regression? (I found mails on this list about if summaries really have been fixed in 4.3.20, but without much details.)
Or am I missing something? Has the format of these messages become stricter on purpose? If so, where are they documented? The "SENDING SUMMARIES TO REMOTE XYMON SERVERS" section in hosts.cfg(5) seems to be about "summary" items inside hosts.cfg, not about the syntax of the summary messages.
I believe this is a side-effect of https://sourceforge.net/p/xymon/code/7901/ , which tightened rules on both hostnames and test names. It was documented in the release notes as that, but didn't mention summaries at all.
No offense meant. I didn't look into the release notes because I was looking for a general documentation on how summary messages should look like. I just assumed that the test name syntax got tightened at some point in the recent past and since it wasn't really important _when_ this happened, I didn't look at the release notes.
I think you're right in that the tightened rules are hitting the otherwise-unusual "summary summary.host.test" incorrectly, [...] We ingest the entire hostsvc here and store it as the testname, which gets booted out.
Testing a fix now.
Yay, thanks! Looking forward to the fix and will happily test it here.
which is what's expected (and what is generated by xymongen and everything else)...
Didn't get that part. Parsed it as "It's incorrect, but expected." and that doesn't make sense to me.
Kind regards, Axel Beckert
-- Axel Beckert <beckert at phys.ethz.ch> support: +41 44 633 26 68 IT Services Group, HPT H 6 voice: +41 44 633 41 89 Departement of Physics, ETH Zurich CH-8093 Zurich, Switzerland http://nic.phys.ethz.ch/
participants (3)
-
beckert@phys.ethz.ch
-
cleaver@terabithia.org
-
Paul.Root@CenturyLink.com