Comments (18)
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.
ohh. I use the trunk release.. just git clone :)
Ok will try a stable version next time and give feedback.
Thx
tec
from cgraphz.
OK.. just tried out 2.00 and 2.10alpha4
No differ ... the same problem.
from cgraphz.
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.
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.
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.
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.
The jquery error is normal, I need to debug it ... ;)
Normally you must have something like this in firebug :
from cgraphz.
Ahh OK :)
Is that what you wanted?
from cgraphz.
Not the Jquery :), I want the POST on index.php when you submit the form to add servers
from cgraphz.
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:
And here is the Result in Firebug:
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&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&component=myaccount">My Account</a></li><li><a href="index.php?module=small_admin&component=mygroup">My Groups</a></li><li><a href="index.php?module=small_admin&component=newuser">New User</a></li><li><a href="index.php?module=small_admin&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&component=module">Modules</a></li>
<li><a href="index.php?module=auth&component=user">Users</a></li><li><a href="index.php?module=auth&component=group">Groups</a></li>
</ul>
</li>
<li>Settings
<ul class="niveau3"><li><a href="index.php?module=config&component=server">Servers</a></li><li><a href="index.php?module=config&component=project">Projects</a></li><li><a href="index.php?module=config&component=plugin">Filters</a></li><li><a href="index.php?module=config&component=dynamic_dashboard">Dynamic Dashboards</a></li><li><a href="index.php?module=config&component=role">Roles</a></li><li><a href="index.php?module=config&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"> </div><div class="spacer"> </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"> </div>
</div>
<div id="mask" style="display: none;"></div>
<div id="popup" style="display: none;"></div>
</body>
</html>
from cgraphz.
I want the post TAB (not header) ! :)
from cgraphz.
upps ... :/ sorry
this one?
from cgraphz.
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.
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? :)
from cgraphz.
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.
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.
Cool :)
Have a nice day
from cgraphz.
Related Issues (17)
- Security issue with RRD files served as static HOT 2
- Message quand aucun graph ร afficher. HOT 1
- Projet visible pour profil ligth HOT 1
- Serveur visible pour profil ligth HOT 1
- SQLSTATE[HY000]: General error: 2031 HOT 1
- Define Socket for DB connection HOT 1
- Servers not shown if role not defined for some Servers HOT 1
- apache config HOT 6
- Problem to view dashboard for more than 2 servers HOT 1
- lots of notices from PHP HOT 7
- Hardcoded string only in french HOT 4
- v2.46.1 error with redis plugin. HOT 5
- Mysql problem HOT 2
- Update to PHP7.x HOT 3
- error in "sql/initial_cgraphz_2.50.sql" HOT 5
- Featurerequest: Merged CPU View HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgraphz.