Hi all, I have xymon 4.3.5 and this used to work in 4.2.3.
I have a message that I send to Xymon to display and graph the size of Oracle Tablespaces.
The message contains a combination of HTML table formatted data (to display nicely) and hidden data (for RRD to use).
Since upgrading to 4.3.5 I have been getting extra empty graph place holders.
For example I have 6 tablespaces to graph but it shows 67. The first 6 are okay, but the rest are invalid.
What I have found is that svcstatus.cgi (I think) is counting the number of items between <PRE> and </PRE> and using that to generate the number of graphs. This didn't happen in 4.2.3
See the following extract from a "View source" of my web page.
<br><br><a name="begindata"> </a> <BR><BR><CENTER><FORM ACTION="/xymon-cgi/history.sh"><INPUT TYPE=SUBMIT VALUE="HISTORY"><INPUT TYPE=HIDDEN NAME="HISTFILE" VALUE="jackfpro.ora_ts"><INPUT TYPE=HIDDEN NAME="ENTRIES" VALUE="50"><INPUT TYPE=HIDDEN NAME="IP" VALUE="0.0.0.0"><INPUT TYPE=HIDDEN NAME="DISPLAYNAME" VALUE="jackfpro"></FORM></CENTER> <CENTER><TABLE ALIGN=CENTER BORDER=0 SUMMARY="Detail Status"> <TR><TD ALIGN=LEFT><H3> Wed Jan 4 16:57:25 EST 2012 <BR> </H3><br><table border=2><tr><th>Tablespace</th><th>Max Space</th><th>Allocated Space</th><th>Used Space</th><th>Free Maximum</th><th>Free Allocated</th><th>Max Used</th><th>Alloc Used</th></tr><tr></H3> <PRE> <td>JACKFO_IDX</td> <td align=right>20480 MB</td> <td align=right>2000 MB</td> <td align=right>1682 MB</td> <td align=right>18798 MB</td> <td align=right>318 MB</td> <td align=right> 8%</td> <td align=right> 84%</td> </tr> <tr> <td>JACKFO_TBL</td> <td align=right>20480 MB</td> <td align=right>1800 MB</td> <td align=right>1565 MB</td> <td align=right>18915 MB</td> <td align=right>235 MB</td> <td align=right> 8%</td> <td align=right> 87%</td> </tr> <tr> <td>SYSAUX</td> <td align=right>32768 MB</td> <td align=right>830 MB</td> <td align=right>775 MB</td> <td align=right>31993 MB</td> <td align=right>55 MB</td> <td align=right> 2%</td> <td align=right> 93%</td> </tr> <tr> <td>SYSTEM</td> <td align=right>32768 MB</td> <td align=right>1600 MB</td> <td align=right>1591 MB</td> <td align=right>31177 MB</td> <td align=right>9 MB</td> <td align=right> 5%</td> <td align=right> 99%</td> </tr> <tr> <td>UNDOTBS1</td> <td align=right>16384 MB</td> <td align=right>8300 MB</td> <td align=right>494 MB</td> <td align=right>15890 MB</td> <td align=right>7806 MB</td> <td align=right> 3%</td> <td align=right> 6%</td> </tr> <tr> <td>USERS</td> <td align=right>8192 MB</td> <td align=right>200 MB</td> <td align=right>3 MB</td> <td align=right>8189 MB</td> <td align=right>197 MB</td> <td align=right> 0%</td> <td align=right> 2%</td> </tr> </table> <!--LARRD JACKFO_IDX:20480:2000:1682:18798:318:8:84: --> <!--LARRD JACKFO_TBL:20480:1800:1565:18915:235:8:87: --> <!--LARRD SYSAUX:32768:830:775:31993:55:2:93: --> <!--LARRD SYSTEM:32768:1600:1591:31177:9:5:99: --> <!--LARRD UNDOTBS1:16384:8300:494:15890:7806:3:6: --> <!--LARRD USERS:8192:200:3:8189:197:0:2: --> </PRE> </TD></TR></TABLE> <br><br> <table align="center" border=0 summary="Status report info"> <tr><td align="center"><font COLOR="#87a9e5" SIZE="-1">Status unchanged in 1 days,8 hours, 9 minutes<br> Status message received from 10.203.12.13<br> </font></td></tr> </table> <!-- linecount=66 --> <table summary="ora_ts Graph"><tr><td><A HREF="/xymon-cgi/showgraph.sh?host=jackfpro&service=ora_ts&graph_width=576&graph_height=120&first=1&count=1&disp=jackfpro&nostale&color=green&graph_start=1325487629&graph_end=1325660429&action=menu"><IMG BORDER=0 SRC="/xymon-cgi/showgraph.sh?host=jackfpro&service=ora_ts&graph_width=576&graph_height=120&first=1&count=1&disp=jackfpro&nostale&color=green&graph_start=1325487629&graph_end=1325660429&graph=hourly&action=view" ALT="xymongraph ora_ts"></A></td><td> <td align="left" valign="top"> <a href="/xymon-cgi/showgraph.sh?host=jackfpro&service=ora_ts&graph_width=576&graph_height=120&first=1&count=1&disp=jackfpro&nostale&color=green&graph_start=1325487629&graph_end=1325660429&graph=custom&action=selzoom"> <img src="/xymon/gifs/zoom.gif" border=0 alt="Zoom graph" style='padding: 3px'> </a> </td></tr></table>
I use this trick in a couple of other places as well..
Not sure if this is a new bug or I was exploiting an old bug ;-)
Thanks
Alan Ford Senior Database Administrator Com Serv - Information Communications and Technology Stanwell Corporation Limited www.stanwell.com<http://www.stanwell.com>
This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx
On Wed, Jan 4, 2012 at 6:06 PM, FORD Alan <Alan.FORD at stanwell.com> wrote:
For example I have 6 tablespaces to graph but it shows 67. The first 6 are okay, but the rest are invalid.
What I have found is that svcstatus.cgi (I think) is counting the number of items between <PRE> and </PRE> and using that to generate the number of graphs. This didn’t happen in 4.2.3
I think this is what's doing it:
<!-- linecount=66 -->
Set this to "6" and it should show only 6 graphs.
Cheers Jeremy
That linecount=66 is being set by Xymon automagically somewhere. I'm not sure where.
I don't remember 4.2 having that linecount..
-----Original Message----- From: Jeremy Laidman [mailto:jlaidman at rebel-it.com.au] Sent: Thursday, 5 January 2012 12:10 PM To: FORD Alan Cc: xymon at xymon.com Subject: Re: [Xymon] Empty graph place holders in 4.3.5
On Wed, Jan 4, 2012 at 6:06 PM, FORD Alan <Alan.FORD at stanwell.com> wrote:
For example I have 6 tablespaces to graph but it shows 67. The first 6 are okay, but the rest are invalid.
What I have found is that svcstatus.cgi (I think) is counting the number of items between <PRE> and </PRE> and using that to generate the number of graphs. This didn't happen in 4.2.3
I think this is what's doing it:
<!-- linecount=66 -->
Set this to "6" and it should show only 6 graphs.
Cheers Jeremy
This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx
Ahhh should have had a look at the code first. Lol
In lib/htmllog.c there is a comment.
/*
* See if there is already a linecount in the report.
* If there is, this overrides the calculation here.
*
* From Francesco Duranti's hobbit-perl-client.
*/
Looks like I need to add a <!-- linecount=no_of_items --> to my test... Must be a new "hidden feature" ;-)
-----Original Message----- From: Jeremy Laidman [mailto:jlaidman at rebel-it.com.au] Sent: Thursday, 5 January 2012 12:10 PM To: FORD Alan Cc: xymon at xymon.com Subject: Re: [Xymon] Empty graph place holders in 4.3.5
On Wed, Jan 4, 2012 at 6:06 PM, FORD Alan <Alan.FORD at stanwell.com> wrote:
For example I have 6 tablespaces to graph but it shows 67. The first 6 are okay, but the rest are invalid.
What I have found is that svcstatus.cgi (I think) is counting the number of items between <PRE> and </PRE> and using that to generate the number of graphs. This didn't happen in 4.2.3
I think this is what's doing it:
<!-- linecount=66 -->
Set this to "6" and it should show only 6 graphs.
Cheers Jeremy
This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx
Just to confirm, it does work now. Added linecount to my report and works correctly!! :-)
Thanks...
-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of FORD Alan Sent: Thursday, 5 January 2012 12:25 PM To: 'Jeremy Laidman' Cc: xymon at xymon.com Subject: Re: [Xymon] Empty graph place holders in 4.3.5
Ahhh should have had a look at the code first. Lol
In lib/htmllog.c there is a comment.
/*
* See if there is already a linecount in the report.
* If there is, this overrides the calculation here.
*
* From Francesco Duranti's hobbit-perl-client.
*/
Looks like I need to add a <!-- linecount=no_of_items --> to my test... Must be a new "hidden feature" ;-)
-----Original Message----- From: Jeremy Laidman [mailto:jlaidman at rebel-it.com.au] Sent: Thursday, 5 January 2012 12:10 PM To: FORD Alan Cc: xymon at xymon.com Subject: Re: [Xymon] Empty graph place holders in 4.3.5
On Wed, Jan 4, 2012 at 6:06 PM, FORD Alan <Alan.FORD at stanwell.com> wrote:
For example I have 6 tablespaces to graph but it shows 67. The first 6 are okay, but the rest are invalid.
What I have found is that svcstatus.cgi (I think) is counting the number of items between <PRE> and </PRE> and using that to generate the number of graphs. This didn't happen in 4.2.3
I think this is what's doing it:
<!-- linecount=66 -->
Set this to "6" and it should show only 6 graphs.
Cheers Jeremy
This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
On Thu, Jan 5, 2012 at 1:34 PM, FORD Alan <Alan.FORD at stanwell.com> wrote:
Just to confirm, it does work now. Added linecount to my report and works correctly!! :-)
Good news.
Here's another tip: set the linecount to zero and it acts as a multi-graph, putting all graph lines on a single graph.
For example:
<!-- linecount=0 -->
I found this by accident, but I'll use this quite a bit from now on.
J
participants (2)
-
Alan.FORD@stanwell.com
-
jlaidman@rebel-it.com.au