Giter VIP home page Giter VIP logo

Comments (18)

Poil avatar Poil commented on June 8, 2024

Hi,

Which version are you using ? I've made lot off change this weekend, perhaps a new bug ?
Could you try v2.10 alpha 4 ? (be careful schema change) https://github.com/Poil/CGraphz/archive/v2.10alpha4.tar.gz

Best regards,

from cgraphz.

tec-the-dark avatar tec-the-dark commented on June 8, 2024

ohh. I use the trunk release.. just git clone :)
Ok will try a stable version next time and give feedback.

Thx
tec

from cgraphz.

tec-the-dark avatar tec-the-dark commented on June 8, 2024

OK.. just tried out 2.00 and 2.10alpha4
No differ ... the same problem.

from cgraphz.

Poil avatar Poil commented on June 8, 2024

I can't reproduce it :)

Have you got the same problem on the demo website : http://web.quakelive.fr/CGraphz/index.php?module=config&component=server (admin/pass) ?

Could you give me the POST values (in firebug, goto network, submit the form and give me the result of post http://xxxxxxx//index.php?module=config&component=server& on post tab)

from cgraphz.

Poil avatar Poil commented on June 8, 2024

Hum perhaps I've found why, could you add this in config.php (It's commited on alpha5)

Collectd

define('COLLECTD_DEFAULT_VERSION',5);
define('COLLECTD_VERSIONS',serialize(array(3,4,5.0,5.1,5.2)));

from cgraphz.

tec-the-dark avatar tec-the-dark commented on June 8, 2024

On the demo site all seams to be ok. I will try the changes in the config file. Anyway is it a problem to use ipnumbers instate of hostnames in the server form? I always try to add the ip 10.10.10.11.

Thx 4 your help!
Regards
tec

from cgraphz.

tec-the-dark avatar tec-the-dark commented on June 8, 2024

Hi Poil,

I have performed the tests with the modified config. The results from firebug (network) are:

SyntaxError: missing ; before statement

"sEmptyTable":     "No data available in table",

jquery....min.js (Row 2, Column 17)
GET http://10.10.10.36/CGraphz/lib/multiselect/locale/ui.multiselect-en.js?_=1387354183487

200 OK
        1ms 
jquery....min.js (Row 3)
ParameterHeaderAntwortCookies

/**
 * Localization strings for the UI Multiselect widget
 *
 * @locale en, en-US
 */

$.extend($.ui.multiselect.locale, {
    addAll:'Add all',
    removeAll:'Remove all',
    itemsCount:'#{count} items selected',
    itemsTotal:'#{count} items total',
    busy:'please wait...',
    errorDataFormat:"Cannot add options, unknown data format",
    errorInsertNode:"There was a problem trying to add the item:\n\n\t[#{key}] => #{value}\n\nThe operation was aborted.",
    errorReadonly:"The option #{option} is readonly",
    errorRequest:"Sorry! There seemed to be a problem with the remote call. (Type: #{status})"
});

GET http://10.10.10.36/CGraphz/lib/dataTables/locale/ui.dataTables-en.js

200 OK
        1ms 
jquery....min.js (Zeile 3)
HeaderAntwortJSONCookies

{
    "sEmptyTable":     "No data available in table",
    "sInfo":           "Showing _START_ to _END_ of _TOTAL_ entries",
    "sInfoEmpty":      "Showing 0 to 0 of 0 entries",
    "sInfoFiltered":   "(filtered from _MAX_ total entries)",
    "sInfoPostFix":    "",
    "sInfoThousands":  ",",
    "sLengthMenu":     "Show _MENU_ entries",
    "sLoadingRecords": "Loading...",
    "sProcessing":     "Processing...",
    "sSearch":         "Search:",
    "sZeroRecords":    "No matching records found",
    "oPaginate": {
        "sFirst":    "First",
        "sLast":     "Last",
        "sNext":     "Next",
        "sPrevious": "Previous"
    },
    "oAria": {
        "sSortAscending":  ": activate to sort column ascending",
        "sSortDescending": ": activate to sort column descending"
    }
}


There was no http://xxxxxxx//index.php?module=config&component=server&... in the output. Do I something wrong?

regards
tec

from cgraphz.

Poil avatar Poil commented on June 8, 2024

The jquery error is normal, I need to debug it ... ;)
Normally you must have something like this in firebug :
screen1
screen2

from cgraphz.

tec-the-dark avatar tec-the-dark commented on June 8, 2024

Ahh OK :)

Is that what you wanted?

firebug

from cgraphz.

Poil avatar Poil commented on June 8, 2024

Not the Jquery :), I want the POST on index.php when you submit the form to add servers

from cgraphz.

tec-the-dark avatar tec-the-dark commented on June 8, 2024

ok ... :)

But the URL is the same. There are no Parameters appended in the URL string....

Maybe I'm using the form in the wrong way?? Here is what I post in the form before klick on submit:
firefox_submit

And here is the Result in Firebug:

firebug_02

hmmm... maybe something in the HTML form is not as suspected? This is the Source code of the server form, taken from firefox:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />!-->

    <link rel="stylesheet" type="text/css" media="screen" href="/CGraphz/lib/css/redmond/jquery-ui-1.10.0.custom.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="/CGraphz/lib/css/jquery-ui-timepicker-addon.css" />
    <script type="text/javascript" src="/CGraphz/lib/jquery-1.9.0.min.js"></script>
    <script type="text/javascript" src="/CGraphz/lib/jquery-ui-1.10.0.custom.min.js"></script>
    <script type="text/javascript" src="/CGraphz/lib/jquery-ui-timepicker-addon.js"></script>
    <script type="text/javascript" src="/CGraphz/lib/jquery.strtotime.js"></script>
    <script type="text/javascript" src="/CGraphz/lib/jquery.localisation.min.js"></script>
    <script type="text/javascript" src="/CGraphz/lib/jquery.liveSearch.js"></script>

    <script type="text/javascript" src="/CGraphz/lib/development-bundle/ui/i18n/jquery.ui.datepicker-en.js"></script><script type="text/javascript" src="/CGraphz/lib/development-bundle/ui/i18n/jquery.ui.timepicker-addon-en.js"></script>    <script type="text/javascript" src="/CGraphz/lib/func.js"></script>
    <script type="text/javascript" src="/CGraphz/lib/dateformat.js"></script>
        <link rel="stylesheet" type="text/css" media="screen" href="/CGraphz/lib/css/demo_table.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="/CGraphz/lib/multiselect/css/common.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="/CGraphz/lib/multiselect/css/ui.multiselect.css" />
    <script type="text/javascript" src="/CGraphz/lib/dyn_js.php"></script>
    <script type="text/javascript" src="/CGraphz/lib/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="/CGraphz/lib/multiselect/js/jquery.tmpl.1.1.1.js"></script>
    <script type="text/javascript" src="/CGraphz/lib/multiselect/js/ui.multiselect.js"></script>
        <link rel="stylesheet" type="text/css" media="screen" href="/CGraphz/style/000.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="/CGraphz/style/menu.css" />  


    <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/sprintf.js"></script>
            <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/strftime.js"></script>
            <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/RrdRpn.js"></script>
            <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/RrdTime.js"></script>
            <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/RrdGraph.js"></script>
            <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/RrdGfxCanvas.js"></script>
            <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/binaryXHR.js"></script>
            <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/rrdFile.js"></script>
            <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/RrdDataFile.js"></script>
            <script type="text/javascript" src="/CGraphz/lib/javascriptrrd/RrdCmdLine.js"></script>

    <title>CGRAPHZ 2.10 alpha 3</title>
</head>
<body id="id_body">
<div id="content">
<div id="div_header">
    <a href="index.php" style="float:left">Home</a>
    <a href="index.php" style="float:left">Help</a>
    <a href="index.php?f_logout=exit" style="float:right">Logout</a>
</div>
<div id="div_menu">


<h1>CGRAPHZ</h1>

    <ul class="niveau1">
        <li>Performance analysis
        <ul class="niveau2"><li><a href="index.php?module=dashboard&amp;component=view">Dashboards</a></li><li>Dynamic Dashboards<ul class="niveau3"></ul></li></ul>
        </li>
    </ul>

    <ul class="niveau1">
        <li>Small admin
        <ul class="niveau2"><li><a href="index.php?module=small_admin&amp;component=myaccount">My Account</a></li><li><a href="index.php?module=small_admin&amp;component=mygroup">My Groups</a></li><li><a href="index.php?module=small_admin&amp;component=newuser">New User</a></li><li><a href="index.php?module=small_admin&amp;component=mydashboard">My Dynamic Dashboards</a></li></ul>
        </li>
    </ul>

    <ul class="niveau1">
        <li>Administration
            <ul class="niveau2">
                <li>Permissions
                    <ul class="niveau3">                        <li><a href="index.php?module=perm&amp;component=module">Modules</a></li>                       
                        <li><a href="index.php?module=auth&amp;component=user">Users</a></li><li><a href="index.php?module=auth&amp;component=group">Groups</a></li>
                    </ul>
                </li>
                <li>Settings
                    <ul class="niveau3"><li><a href="index.php?module=config&amp;component=server">Servers</a></li><li><a href="index.php?module=config&amp;component=project">Projects</a></li><li><a href="index.php?module=config&amp;component=plugin">Filters</a></li><li><a href="index.php?module=config&amp;component=dynamic_dashboard">Dynamic Dashboards</a></li><li><a href="index.php?module=config&amp;component=role">Roles</a></li><li><a href="index.php?module=config&amp;component=environment">Environments</a></li>                    </ul>
                </li>
            </ul>
        </li>
    </ul>
    </div>
<h1>Manage servers</h1><table border="0" cellpadding="0" cellspacing="0" id="table_server" class="table_admin">
<thead>
<tr>
    <th>Server</th>
    <th>Description</th>
    <th>Collectd version</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="spacer">&nbsp;</div><div class="spacer">&nbsp;</div><fieldset><fieldset><legend>Add</legend><form name="f_form_server" method="post" action="">
<input type="hidden" name="f_id_config_server" id="f_id_config_server" value="" />
    <select name="f_server_name[]" id="f_server_name" class="multiselect" multiple="multiple">
        </select><br />

    <label for="f_server_description">Description</label>
    <input type="text" name="f_server_description" id="f_server_description" value="" /><br />
    <label for="f_collectd_version">Collectd version</label>
    <select name="f_collectd_version" id="f_collectd_version">
    <option value="3" >3</option><option value="4" >4</option><option value="5"  selected="selected">5</option><option value="5.1" >5.1</option><option value="5.2" >5.2</option><option value="5.3" >5.3</option><option value="5.4" >5.4</option></select><br /><br />
<input type="submit" name="f_submit_server" id="f_submit_server" value="Submit" />
</form>
</fieldset><fieldset><legend>Clean</legend><form name="f_form_del_server_check" method="post" action="">
    <select name="f_server_name_to_del[]" id="f_server_name_to_del" class="multiselect" multiple="multiple">
            </select><br />

    <input type="submit" name="f_del_server_check" id="f_del_server_check" value="Delete" />
</form>

</fieldset></fieldset><div class="spacer">&nbsp;</div> 
</div>

<div id="mask" style="display: none;"></div>
<div id="popup" style="display: none;"></div>
</body>
</html>

from cgraphz.

Poil avatar Poil commented on June 8, 2024

I want the post TAB (not header) ! :)

from cgraphz.

tec-the-dark avatar tec-the-dark commented on June 8, 2024

upps ... :/ sorry

this one?

firebug_03

from cgraphz.

Poil avatar Poil commented on June 8, 2024

You need to add some servers in the multi-semect (move from right "available" to left "selected" by clicking on)
I've updated the library for a more stable on alpha 8 you can try it

from cgraphz.

tec-the-dark avatar tec-the-dark commented on June 8, 2024

Now I'm totally confused. So far I assumed that the new server is added to the red-framed box. But that seemingly just to be a search box.

Maybe I'm too stupid, but what do I need to create a new server? :)

firefox_submit02

from cgraphz.

Poil avatar Poil commented on June 8, 2024

Hi,

1- You need collectd, running, collecting data and writing in a directory (plugin rrdtool or rrdcache)
2- You need to configure CGraph (config/config.php) :

collectd's datadir

$CONFIG['datadir'] = '/var/lib/collectd/rrd/';

Normally it's /var/lib/collectd or /var/lib/collectd/rrd or if you have rrdcached sometime it's something like /var/lib/rrdcached/rrd

Best regards,

Now I'm totally confused. So far I assumed that the new server is added to the red-framed box. But that seemingly just to be a search box.

Maybe I'm too stupid, but what do I need to create a new server? :)



รข

Reply to this email directly or view it on GitHub.

from cgraphz.

tec-the-dark avatar tec-the-dark commented on June 8, 2024

Facepalm to myself ...

Collectd is a client / server system ...
Of curse the client has to upload all its data to the server ...

Now CGraphz find all the Clients and the Server and shows beautifully graphs!!!!

tec <-- was a little bit stupid, but now he knows how it works :)

Thank you so much Poil!

from cgraphz.

Poil avatar Poil commented on June 8, 2024

Cool :)
Have a nice day

from cgraphz.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.