Xymon Mailing List Archive search

How to view history of status changes from CLI

5 messages in this thread

list David Mills · Mon, 19 Nov 2012 20:17:40 +0000 ·
Hello -

Is there a way to generate the output from the "eventlog.sh" report from the CLI? I need to manipulate the data via scripts and would prefer not cutting / pasting...

?

Thanks!

david


~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman
list Thomas Eckert · Tue, 20 Nov 2012 20:03:36 +0100 ·
Hi David,

as a last resort this information is available on a per-host basis in
`data/hist/<hostname>`.

For each host there is one file in `data/hist/` containing _the
complete history_ for that host in the form, format can be easily verified by comparing with the web version:
  <column> <end-time> <start-time> <duration> <old-color> <new-color> <?>

HTH
Thomas

"Mills, David (IS)" <user-eb64c112f0e9@xymon.invalid> schrieb:
list David Mills · Tue, 20 Nov 2012 20:38:53 +0000 ·
Brilliant, Thomas. Thanks!

By any chance do you know what process(es) update these files?

Thanks again…

david
quoted from Thomas Eckert

From: Thomas Eckert [mailto:user-2a86d6cd6326@xymon.invalid]
Sent: Tuesday, November 20, 2012 1:04 PM
To: Mills, David (IS)
Cc: xymon at xymon.com
Subject: EXT :Re: [Xymon] How to view history of status changes from CLI

Hi David,

as a last resort this information is available on a per-host basis in
`data/hist/<hostname>`.

For each host there is one file in `data/hist/` containing _the
complete history_ for that host in the form, format can be easily verified by comparing with the web version:
  <column> <end-time> <start-time> <duration> <old-color> <new-color> <?>

HTH
Thomas

"Mills, David (IS)" <user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>> schrieb:
Hello –

Is there a way to generate the output from the “eventlog.sh” report from the CLI? I need to manipulate the data via scripts and would prefer not cutting / pasting…

?

Thanks!

david

~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman
list Thomas Eckert · Tue, 20 Nov 2012 21:54:31 +0100 ·
According to the documentation this I I'd done by xymond_history.
The data is feed from the 'stachg'- channel -- _probably_you can even subscribe a program daemon-like to that channel and do your own handling in real-time... 

Thomas

"Mills, David (IS)" <user-eb64c112f0e9@xymon.invalid> schrieb:
<!-- /* Font Definitions */ @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal 	{margin:0in; 	margin-bottom:.0001pt; 	font-size:12.0pt; 	font-family:"Times New Roman","serif";} a:link, span.MsoHyperlink 	{mso-style-priority:99; 	color:blue; 	text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed 	{mso-style-priority:99; 	color:purple; 	text-decoration:underline;} span.EmailStyle17 	{mso-style-type:personal-reply; 	font-family:"Calibri","sans-serif"; 	color:#1F497D;} .MsoChpDefault 	{mso-style-type:export-only;} @page WordSection1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 	{page:WordSection1;} --> 
quoted from David Mills

Brilliant, Thomas. Thanks!

 

By any chance do you know what process(es) update these files? 

 

Thanks again…

 

david

 

From: Thomas Eckert [mailto:user-2a86d6cd6326@xymon.invalid] 
Sent: Tuesday, November 20, 2012 1:04 PM
To: Mills, David (IS)
Cc: xymon at xymon.com
Subject: EXT :Re: [Xymon] How to view history of status changes from CLI

 

Hi David,

as a last resort this information is available on a per-host basis in
`data/hist/<hostname>`.

For each host there is one file in `data/hist/` containing _the
complete history_ for that host in the form, format can be easily verified by comparing with the web version:
  <column> <end-time> <start-time> <duration> <old-color> <new-color> <?>

HTH
Thomas

"Mills, David (IS)" <user-eb64c112f0e9@xymon.invalid> schrieb:

Hello –

 

Is there a way to generate the output from the “eventlog.sh” report from the CLI? I need to manipulate the data via scripts and would prefer not cutting / pasting…

 

?

 

Thanks!

 

david

 

~~~~~~~~~~~~~~~~~~~ 
David Mills 
Systems Administrator 
Northrop Grumman 

 

 

 
list David Mills · Tue, 20 Nov 2012 20:55:51 +0000 ·
Thank you, sir!

;-)
quoted from Thomas Eckert

From: Thomas Eckert [mailto:user-2a86d6cd6326@xymon.invalid]
Sent: Tuesday, November 20, 2012 2:55 PM
To: Mills, David (IS)
Cc: xymon at xymon.com
Subject: EXT :Re: [Xymon] How to view history of status changes from CLI

According to the documentation this I I'd done by xymond_history.
The data is feed from the 'stachg'- channel -- _probably_you can even subscribe a program daemon-like to that channel and do your own handling in real-time...

Thomas

"Mills, David (IS)" <user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>> schrieb:
Brilliant, Thomas. Thanks!

By any chance do you know what process(es) update these files?

Thanks again…

david

From: Thomas Eckert [mailto:user-2a86d6cd6326@xymon.invalid]
Sent: Tuesday, November 20, 2012 1:04 PM
To: Mills, David (IS)
Cc: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: EXT :Re: [Xymon] How to view history of status changes from CLI

Hi David,

as a last resort this information is available on a per-host basis in
`data/hist/<hostname>`.

For each host there is one file in `data/hist/` containing _the
complete history_ for that host in the form, format can be easily verified by comparing with the web version:
  <column> <end-time> <start-time> <duration> <old-color> <new-color> <?>

HTH
Thomas

"Mills, David (IS)" <user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>> schrieb:
Hello –

Is there a way to generate the output from the “eventlog.sh” report from the CLI? I need to manipulate the data via scripts and would prefer not cutting / pasting…

?

Thanks!

david

~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman