Menu

CPU graph changes completely between views

Help
2011-10-13
2012-11-09
  • Simon Wilson

    Simon Wilson - 2011-10-13

    I go into CPU graph and see this:

    Then I click on multi-proc line graph.. then back to the bar graph…. and I see
    this!:

    If I go back to main menu then come back in, it's back at the first one. Which
    is accurate??

     
  • eric gerbier

    eric gerbier - 2011-10-14

    Hello

    The creation date (bottom of images) are very different (near one day) ,
    and by default, it is the end date for graph data. So it is not strange to
    have very differerent graphs.

    You should check if the cache cleaning works :
    /usr/libexec/webmin/sysstats/graphs/ directory should be empty if you do not
    use webminstats.

     
  • Simon Wilson

    Simon Wilson - 2011-10-15

    Hadn't noticed the dates - they were viewed within seconds of each other. It's
    still doing it, just did it now and it showed me today's first, then
    yesterday's from the same time. Easy to reproduce - go into Historic System
    Statistics, then go to the line graph, then back to the bar chart - shows the
    two different ones.

    The directory /usr/libexec/webmin/sysstats/graphs is empty.

     
  • Simon Wilson

    Simon Wilson - 2011-10-15

    I pressed clear cache once, and it then showed me yesterday's graph. Pressed
    again and it changed to today's. Now it seems ok. What do you mean "graphs/
    directory should be empty if you do not use webminstats" - I obviously DO use
    it, am I misunderstanding your post?

     
  • eric gerbier

    eric gerbier - 2011-10-16

    It looks like a cache problem. This may be the webminstats cache or the
    browser cache.
    - in some configuration, the webminstats cache cleaning does not work (it
    needs atd daemon in the current release)
    - for browser : which one are you using ?

    a last question : is this hourly graph or custom cpu graph ?

     
  • Simon Wilson

    Simon Wilson - 2011-10-16

    Firefox 7.0.1

    Standard hourly graph. Currently showing me the graph from two days ago. Only
    way I can get current one is to go to multi-proc line then back to bar.

     
  • eric gerbier

    eric gerbier - 2011-10-19

    If you look at html source (CTRL+U on firefox), you should find an html line
    in head section :
    <meta http-equiv="Refresh" content="120">

    This tell firefox to refresh every 2 minutes :
    http://en.wikipedia.org/wiki/Meta_refresh

    Do you have the same problem with all modules ?

     
  • Simon Wilson

    Simon Wilson - 2011-10-20
    <!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
    <html>
    <head>
    <link rel='stylesheet' type='text/css' href='/unauthenticated/style.css' />
    <script type='text/javascript' src='/unauthenticated/toggleview.js'></script>
    <script>
    var rowsel = new Array();
    </script>
    <script type='text/javascript' src='/unauthenticated/sorttable.js'></script>
    <title>Webmin 1.570 on emp00.simonandkate.lan (CentOS Linux 6.0)</title>
    </head>
    <frameset cols="230,*" border=0>
        <frame name="left" src="left.cgi" scrolling="auto">
        <frame name="right" src="right.cgi?open=system&open=status" noresize>
    <noframes>
    <body>
    <p>This page uses frames, but your browser doesn't support them.</p>
    </body>
    </noframes>
    </frameset>
    </body>
    </html>
    

    Only CPU.

    At the moment it is shifting between 4 days old, 3 days old, and yesterday.
    Can't get it to show today's at all… until it auto-refreshes after a minute or
    so, then it shows today. If I click on anything to go to the CPU module it
    almost always shows me old data.

     
  • eric gerbier

    eric gerbier - 2011-10-20

    Depending themes, webmin can use html frame, so you have to check the
    following url for Refresh :
    https://localhost:10000/sysstats/display.cgi?idx=cpu-0.27

    what is your operating system ?
    can you try with another browser (chrome, konqueror …)

     
  • Simon Wilson

    Simon Wilson - 2011-10-21

    https://emp00:10000/sysstats/display.cgi?idx=cpu-0.27

    <!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
    <html>
    <head>
    <link rel='stylesheet' type='text/css' href='/unauthenticated/style.css' />
    <script type='text/javascript' src='/unauthenticated/toggleview.js'></script>
    <script>
    var rowsel = new Array();
    </script>
    <script type='text/javascript' src='/unauthenticated/sorttable.js'></script>
    <meta http-equiv="Content-Type" content="text/html; Charset=iso-8859-1">
    <title>display data cpu</title>
    <meta http-equiv=Refresh content=120><script language=JavaScript type=text/javascript>
    defaultStatus="root logged into Webmin 1.570 on emp00.simonandkate.lan (CentOS Linux 6.0)";
    </script>
    </head>
    <body bgcolor=#ffffff link=#0000ee vlink=#0000ee text=#000000    >
    <table class='header' width=100%><tr>
    <td id='headln2l' width=15% valign=top align=left><a href="/sysstats/">Module Index</a><br>
    <a onClick='window.open("/help.cgi/sysstats/cpu", "help", "toolbar=no,menubar=no,scrollbars=yes,width=600,height=400,resizable=yes"); return false' href="/help.cgi/sysstats/cpu">Help..</a><br>
    </td>
    <td id='headln2c' align=center width=70%><font size=+2>display data cpu</font></td>
    <td id='headln2r' width=15% valign=top align=right></td></tr></table>
    <script type="text/javascript" src="display.js"></script><ul>
    <li><table summary="navigation"><tr >
    <td>navigation</td><td><form action="navigation.cgi"><input type=button value="|<" disabled >
    </form></td>
    <td><form action="navigation.cgi"><input type=button value="<" disabled >
    </form></td>
    <td><form action="navigation.cgi"><input type=hidden name=cgi value="display">
    <input type=submit value="go to"><select name="idx"><option value="disk-0.24">disk</option>
    <option value="diskio-0.1">diskio</option>
    <option value="filesopen-0.18">filesopen</option>
    <option value="firewall-0.20">firewall</option>
    <option value="irq-0.25">irq</option>
    <option value="lm_sensors-0.13">lm_sensors</option>
    <option value="load-0.19">load</option>
    <option value="mailq-0.21">mailq</option>
    <option value="mem-0.23">mem</option>
    <option value="netstat-0.13">netstat</option>
    <option value="network-0.22">network</option>
    <option value="process-0.15">process</option>
    <option value="services-0.19">services</option>
    <option value="smart-0.13">smart</option>
    <option value="users-0.17">users</option>
    </select></form></td>
    <td><form action="navigation.cgi"><input type=hidden name=cgi value="display">
    <input type=hidden name=idx value="disk-0.24">
    <input type=submit value=">:disk" >
    </form></td>
    <td><form action="navigation.cgi"><input type=hidden name=cgi value="display">
    <input type=hidden name=idx value="users-0.17">
    <input type=submit value=">|:users" >
    </form></td>
    </tr>
    </table>
    </li><li>period : <a href="#hourly">hourly</a>&nbsp;&nbsp;<a href="#daily">daily</a>&nbsp;&nbsp;<a href="#weekly">weekly</a>&nbsp;&nbsp;<a href="#monthly">monthly</a>&nbsp;&nbsp;<a href="#yearly">yearly</a>&nbsp;&nbsp;<a href="display_custom.cgi?idx=cpu-0.27">customized display</a></li><li><a href="display.cgi?idx=cpu-0.27&nocache=1">clear cache</a></li>
    <li><a href="display.cgi?idx=cpu-0.27&norefresh=1">stop refresh</a></li>
    <li>next graph type : <a href="display.cgi?idx=cpu-0.27&nocache=1&gtype=0">Line graph (multi-proc)</a></li>
    </ul>
    <hr>
    <table summary="top" border=1  width="100%">
    <tr bgcolor=#427AD1 class='maintitle'>
    <td ><strong>CPU activity</strong></td>
    </tr>
    <tr bgcolor=#EFEFEF class='mainbody'>
    <td><br><table summary="content" border=0  width="100%">
    <tr >
    <td align=center><font color="#691BFA"><a name=hourly><img src="graphs/cpu-0.27_hour.png.957" onmousemove="wbmPosition(event, this)" onmouseout="wbmOut(this)" id="hour" alt="hourly"  width="597" height="436"></a></font></td>
    </tr>
    <tr >
    <td align=center><font color="#691BFA"><a name=daily><img src="graphs/cpu-0.27_day.png.957" onmousemove="wbmPosition(event, this)" onmouseout="wbmOut(this)" id="day" alt="daily"  width="597" height="436"></a></font></td>
    </tr>
    <tr >
    <td align=center><font color="#691BFA"><a name=weekly><img src="graphs/cpu-0.27_week.png.957" onmousemove="wbmPosition(event, this)" onmouseout="wbmOut(this)" id="week" alt="weekly"  width="597" height="436"></a></font></td>
    </tr>
    <tr >
    <td align=center><font color="#691BFA"><a name=monthly><img src="graphs/cpu-0.27_month.png.957" onmousemove="wbmPosition(event, this)" onmouseout="wbmOut(this)" id="month" alt="monthly"  width="597" height="436"></a></font></td>
    </tr>
    <tr >
    <td align=center><font color="#691BFA"><a name=yearly><img src="graphs/cpu-0.27_year.png.957" onmousemove="wbmPosition(event, this)" onmouseout="wbmOut(this)" id="year" alt="yearly"  width="597" height="436"></a></font></td>
    </tr>
    </table></td></tr>
    </table>
    <hr>
    <hr>
    module cpu 0.27 : <font color="#00ff00">run ( OK )</font>
    <hr>
    <div class='wrapper'>
    <table class='icons_table' id='main' width=100% cellpadding=5>
    <tr>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="index.cgi" ><img src="images/gohome.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="index.cgi" >webminstats index</a>
    </td>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="display_all.cgi" ><img src="images/all.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="display_all.cgi" >panorama general</a>
    </td>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="display.cgi?idx=cpu-0.27" ><img src="images/display.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="display.cgi?idx=cpu-0.27" >display</a>
    </td>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="snapshot.cgi?idx=cpu-0.27" ><img src="images/snapshot.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="snapshot.cgi?idx=cpu-0.27" >snapshot</a>
    </td>
    </tr>
    <tr>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="config.cgi" ><img src="images/settings.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="config.cgi" >Modules list configuration</a>
    </td>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="edit_module.cgi?idx=cpu-0.27" ><img src="images/config.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="edit_module.cgi?idx=cpu-0.27" >configure module</a>
    </td>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="config_action.cgi?idx=cpu-0.27" ><img src="images/run.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="config_action.cgi?idx=cpu-0.27" >action configuration</a>
    </td>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="check_config.cgi?idx=cpu-0.27" ><img src="images/check_config.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="check_config.cgi?idx=cpu-0.27" >check configuration</a>
    </td>
    </tr>
    <tr>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="log.cgi" ><img src="images/log.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="log.cgi" >log file</a>
    </td>
    <td width=25% align=center valign=top>
    <table><tr><td width=48 height=48>
    <a href="debug_module.cgi?idx=cpu-0.27" ><img src="images/debug.gif" alt="" border=0 width=48 height=48></a></td></tr></table>
    <a href="debug_module.cgi?idx=cpu-0.27" >debug</a>
    </td>
    <td width=25%></td>
    <td width=25%></td>
    </tr>
    </table>
    </div>
    

    OS = Win7.

    Works fine in Chrome, FF 7.01 breaks it. Reloading the frame in FF brings the
    current one. So it looks like a FF caching issue.

     

Log in to post a comment.