adding a table to a custom test
list Paul Root
I'm trying to get the format of a new custom test I'm writing correct.
What I want it to look like is:
Title
Header Header Header
Field Field Field
. . .
. . .
Trailing info
When I put in html tags, I get a full page of blank under the "History" button, then my output. Also, my trailing info comes first.
So how can I add a table into the status message of the xymon command?
My servers are 4.3.10, the clients are 4.2.3 or 4.3.4.
list Jeremy Ruffer
That's an interesting one. I've been meaning to look into that. If I remember correctly Xymon puts in a <pre> before your output which defeats the formatting. How about </pre> Your output with HTML tags followed by <pre>? Jeremy
▸
On 29 Jan 2013, at 21:19, "Root, Paul" <user-76fdb6883669@xymon.invalid> wrote:
I’m trying to get the format of a new custom test I’m writing correct.
What I want it to look like is:
Title
Header Header Header
Field Field Field
. . .
. . .
Trailing info
When I put in html tags, I get a full page of blank under the “History” button, then my output. Also, my trailing info comes first.
So how can I add a table into the status message of the xymon command?
My servers are 4.3.10, the clients are 4.2.3 or 4.3.4.
list Paul Root
I looked at the source, the are empty after my code. Sent via Divide iOS
▸
On Tuesday, January 29, 2013, 4:27:32 PM, "Jeremy Ruffer" wrote:
That's an interesting one. I've been meaning to look into that.
If I remember correctly Xymon puts in a <pre> before your output which defeats the formatting.
How about </pre> Your output with HTML tags followed by <pre>?
Jeremy
On 29 Jan 2013, at 21:19, "Root, Paul" <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>> wrote:
I’m trying to get the format of a new custom test I’m writing correct.
What I want it to look like is:
Title
Header Header Header
Field Field Field
. . .
. . .
Trailing info
When I put in html tags, I get a full page of blank under the “History” button, then my output. Also, my trailing info comes first.
So how can I add a table into the status message of the xymon command?
My servers are 4.3.10, the clients are 4.2.3 or 4.3.4.
list Ralph Mitchell
I recently did pretty much exactly what you're wanting to do, but with xymon-4.3.7. I'm away from work this week so I can't check my script, but as far as I remember, I just sent the table tags with plain text in the boxes. I don't think I did anything special to make it work. As Jeremy says, the report text is displayed between <pre> tags, and at a previous $JOB I had scripts that sent in reports starting with the closing </pre> tag and ending with the opening <pre> tag. That might have been xymon-4.2.X, but it should still work with 4.3.10. Ralph Mitchell
▸
On Tue, Jan 29, 2013 at 11:20 PM, Root, Paul <user-76fdb6883669@xymon.invalid>wrote:
I looked at the source, the
are empty after my code.
Sent via Divide iOS
On Tuesday, January 29, 2013, 4:27:32 PM, "Jeremy Ruffer" wrote:
That's an interesting one. I've been meaning to look into that.
If I remember correctly Xymon puts in a <pre> before your output which
defeats the formatting.
How about </pre> Your output with HTML tags followed by <pre>?
Jeremy
On 29 Jan 2013, at 21:19, "Root, Paul" <user-76fdb6883669@xymon.invalid> wrote:
I’m trying to get the format of a new custom test I’m writing correct.
What I want it to look like is:
Title
Header Header Header
Field Field Field
.
. .
.
. .
Trailing info
When I put in html tags, I get a full page of blank under the “History”
button, then my output. Also, my trailing info comes first.
So how can I add a table into the status message of the xymon command?
My servers are 4.3.10, the clients are 4.2.3 or 4.3.4.
list Alan Ford
Hi Paul, I’m on 4.3.10 This is how I did it as a status message. < ----- Code Snippet ---- > print "</H3><br>"; print "<table border=2>"; print "<tr>"; print "<th>Tablespace</th>"; print "<th>Max Space</th>"; print "<th>Allocated Space</th>"; print "<th>Used Space</th>"; print "<th>Free Maximum</th>"; print "<th>Free Allocated</th>"; print "<th>Max Used</th>"; print "<th>Alloc Used</th>"; print "</tr>"; Loop to print my table data print “<tr>\n”; print "<td>$tname</td>\n"; print "<td align=right>$m_space MB</td>\n"; print "<td align=right>$a_space MB</td>\n"; print "<td align=right>$u_space MB</td>\n"; print "<td align=right>$fm_space MB</td>\n"; print "<td align=right>$fa_space MB</td>\n"; print "<td align=right>$mp_used</td>\n"; print "<td align=right>$ap_used</td>\n"; print “</tr>\n”; And end the table def. print “</table>\n”;
▸
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Jeremy Ruffer
Sent: Wednesday, 30 January 2013 8:27 AM
To: Root, Paul
Cc: xymon
Subject: Re: [Xymon] adding a table to a custom test
That's an interesting one. I've been meaning to look into that.
If I remember correctly Xymon puts in a <pre> before your output which defeats the formatting.
How about </pre> Your output with HTML tags followed by <pre>?
Jeremy
On 29 Jan 2013, at 21:19, "Root, Paul" <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>> wrote:
I’m trying to get the format of a new custom test I’m writing correct.
What I want it to look like is:
Title
Header Header Header
Field Field Field
. . .
. . .
Trailing info
When I put in html tags, I get a full page of blank under the “History” button, then my output. Also, my trailing info comes first.
So how can I add a table into the status message of the xymon command?
My servers are 4.3.10, the clients are 4.2.3 or 4.3.4.
This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx
list Paul Root
Thanks. That’s pretty much what I did as well.
▸
From: Ford, Alan [mailto:user-eb925835b8b9@xymon.invalid] Sent: Wednesday, January 30, 2013 7:42 PM To: 'Jeremy Ruffer'; Root, Paul Cc: xymon Subject: RE: [Xymon] adding a table to a custom test Hi Paul, I’m on 4.3.10 This is how I did it as a status message. < ----- Code Snippet ---- > print "</H3><br>"; print "<table border=2>"; print "<tr>"; print "<th>Tablespace</th>"; print "<th>Max Space</th>"; print "<th>Allocated Space</th>"; print "<th>Used Space</th>"; print "<th>Free Maximum</th>"; print "<th>Free Allocated</th>"; print "<th>Max Used</th>"; print "<th>Alloc Used</th>"; print "</tr>"; Loop to print my table data print “<tr>\n”; print "<td>$tname</td>\n"; print "<td align=right>$m_space MB</td>\n"; print "<td align=right>$a_space MB</td>\n"; print "<td align=right>$u_space MB</td>\n"; print "<td align=right>$fm_space MB</td>\n"; print "<td align=right>$fa_space MB</td>\n"; print "<td align=right>$mp_used</td>\n"; print "<td align=right>$ap_used</td>\n"; print “</tr>\n”; And end the table def. print “</table>\n”; From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com] On Behalf Of Jeremy Ruffer Sent: Wednesday, 30 January 2013 8:27 AM To: Root, Paul Cc: xymon Subject: Re: [Xymon] adding a table to a custom test That's an interesting one. I've been meaning to look into that. If I remember correctly Xymon puts in a <pre> before your output which defeats the formatting. How about </pre> Your output with HTML tags followed by <pre>? Jeremy On 29 Jan 2013, at 21:19, "Root, Paul" <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>> wrote: I’m trying to get the format of a new custom test I’m writing correct. What I want it to look like is: Title Header Header Header Field Field Field . . . . . . Trailing info When I put in html tags, I get a full page of blank under the “History” button, then my output. Also, my trailing info comes first. So how can I add a table into the status message of the xymon command? My servers are 4.3.10, the clients are 4.2.3 or 4.3.4. This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx