Xymon Mailing List Archive search

Renaming a test from UPPERCASE to NormalCase

list Ralph Mitchell
Mon, 9 Feb 2015 06:51:14 -0500
Message-Id: <CAAEjoCUEw+NAo3y2paxub4aqSW=user-63c3e9fdd2ac@xymon.invalid>

The checkpoint file saves the state of everything. Xymon writes to it
occasionally and loads it on startup. I think it also saves state when it
shuts down.  That's why you need to shut down Xymon before editing the
checkpoint file.

I have never tried it...

Ralph Mitchell
On Feb 9, 2015 3:16 AM, "Becker Christian" <
user-e4a19bfb94c0@xymon.invalid> wrote:
 I found the checkpointfile.


But what can i say? I’ve made a copy of the xymond.chk, after that I’ve
deleted out all the UPPERCASE entries of these tests. After restarting
Xymon, the tests are still present in UPPERCASE.


Hm, Xymon – the beast ? J


Regards


*Christian Becker*
IT-Services


user-e4a19bfb94c0@xymon.invalid


Mittelrhein-Verlag GmbH
August-Horch-Straße 28
D-56070 Koblenz

Verleger und Geschäftsführer: Walterpeter Twer
Reg.-Gericht Koblenz HRB 121
Finanzamt Koblenz Str.Nr. 22 65 10 285 2

www.rhein-zeitung.de


*Von:* Xymon [mailto:xymon-bounces at xymon.com] *Im Auftrag von *Becker
Christian
*Gesendet:* Montag, 9. Februar 2015 08:43
*An:* 'Ralph Mitchell'
*Cc:* xymon at xymon.com
*Betreff:* Re: [Xymon] Renaming a test from UPPERCASE to NormalCase


Can you shortly explain the „checkpoint“ file?


Regards

Christian


*Christian Becker*
IT-Services


user-e4a19bfb94c0@xymon.invalid


Mittelrhein-Verlag GmbH
August-Horch-Straße 28
D-56070 Koblenz

Verleger und Geschäftsführer: Walterpeter Twer
Reg.-Gericht Koblenz HRB 121
Finanzamt Koblenz Str.Nr. 22 65 10 285 2

www.rhein-zeitung.de


*Von:* Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid
<user-00a5e44c48c0@xymon.invalid>]
*Gesendet:* Freitag, 6. Februar 2015 16:37
*An:* Becker Christian
*Cc:* John Thurston; xymon at xymon.com
*Betreff:* Re: AW: AW: [Xymon] Renaming a test from UPPERCASE to
NormalCase


If you stop Xymon, save a copy of the checkpoint file, then edit the file
to change all the misspellings , that might do it.  I don't know where else
it might be "remembered".  You might also need to rename and/or edit some
history files.

Ralph Mitchell

On Feb 6, 2015 9:42 AM, "Becker Christian" <
user-e4a19bfb94c0@xymon.invalid> wrote:

 Ralph,


that’s what i’ve learned from that behaviour.


But I’m wondering if it wouldn’t be possible to ->completely wipe out the
word<- in UPPERCASE out of my Xymon data?

So that my script afterwards creates a Normalcase word?


Regards

Christian


*Christian Becker*
IT-Services


user-e4a19bfb94c0@xymon.invalid


Mittelrhein-Verlag GmbH
August-Horch-Straße 28
D-56070 Koblenz

Verleger und Geschäftsführer: Walterpeter Twer
Reg.-Gericht Koblenz HRB 121
Finanzamt Koblenz Str.Nr. 22 65 10 285 2

www.rhein-zeitung.de


*Von:* Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
*Gesendet:* Freitag, 6. Februar 2015 12:48
*An:* Becker Christian
*Cc:* John Thurston; xymon at xymon.com
*Betreff:* Re: AW: [Xymon] Renaming a test from UPPERCASE to NormalCase


Well, yes, you can change the test name to a completely different word.
However, the first report with the new name defines the uppercase/lowercase
characteristics for that word.

So, you can change the test name from DATANODE to dN, which is a different
word, but you won't subsequently be able to change dN to DN or dN or Dn.

Ralph Mitchell

On Feb 6, 2015 2:40 AM, "Becker Christian" <
user-e4a19bfb94c0@xymon.invalid> wrote:

 I think that’s not 100% right, since i was able to rename this test from
“DATANODE” to “DN”; so this was successful.

But after that, when my script was reporting again to the Xymon server,
there was an additional column “DATANODE” again. So, that part matches your
answer, that the next upcoming messages will result in the “old” column
name.


Regards

Christian


*Christian Becker*
IT-Services


user-e4a19bfb94c0@xymon.invalid


Mittelrhein-Verlag GmbH
August-Horch-Straße 28
D-56070 Koblenz

Verleger und Geschäftsführer: Walterpeter Twer
Reg.-Gericht Koblenz HRB 121
Finanzamt Koblenz Str.Nr. 22 65 10 285 2

www.rhein-zeitung.de


*Von:* Xymon [mailto:xymon-bounces at xymon.com] *Im Auftrag von *Ralph
Mitchell
*Gesendet:* Donnerstag, 5. Februar 2015 18:24
*An:* John Thurston
*Cc:* xymon at xymon.com
*Betreff:* Re: [Xymon] Renaming a test from UPPERCASE to NormalCase


In my experience, it is next to impossible to rename a test column.
Whatever it first shows up as, that's what is remembered. I guess
subsequent reports are matched case-insensitively, so any other upper/lower
case combination is mapped to that first record.

Or maybe things have changed since I last tried, but that's how I remember
it. Rename was for hostnames only.

Ralph Mitchell

On Feb 5, 2015 11:48 AM, "John Thurston" <user-ce4d79d99bab@xymon.invalid> wrote:

On 2/5/2015 6:52 AM, Becker Christian wrote:

All,

i want to rename a test column from UPPERCASE to NormalCase.

I tried this using the command:

xymon localhost “rename MYHOST DATANODE DataNode”

Unfortunately this doesn’t seem to work.


Did you try the ol' two-step?
“rename MYHOST DATANODE foo”
“rename MYHOST foo DataNode”

Is your test script reporting in as "DATANODE" or as "DataNode"?


--
   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