[collectd] collection.cgi
KW 1C
kw1cool at gmail.com
Sat Nov 10 00:45:37 CET 2007
Hello All,
I am having an issue with collection.cgi
If I run it under the root account from a shell I see the right output
however running under the nobody account (via the web server or any other
account) I get no output.
Normal non root
Content-Type: application/xhtml+xml; charset=utf-8
Cache-Control: no-cache
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>collection.cgi, Version 2</title>
<style type="text/css">
img
{
border: none;
}
table.graphs
{
border-collapse: collapse;
}
table.graphs td,
table.graphs th
{
border: 1px solid black;
empty-cells: hide;
}
</style>
</head>
<body>
<form action="" method="get">
<fieldset>
<legend>Selector</legend>
<select name="host" multiple="multiple" size="10">
</select>
<select name="timespan">
<option value="hour">Hour</option>
<option value="day" selected="selected">Day</option>
<option value="week">Week</option>
<option value="month">Month</option>
<option value="year">Year</option>
</select>
<input type="submit" name="button" value="Ok" />
</fieldset>
</form>
<ul>
</ul>
</body>
</html>
With the root account
Content-Type: application/xhtml+xml; charset=utf-8
Cache-Control: no-cache
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>collection.cgi, Version 2</title>
<style type="text/css">
img
{
border: none;
}
table.graphs
{
border-collapse: collapse;
}
table.graphs td,
table.graphs th
{
border: 1px solid black;
empty-cells: hide;
}
</style>
</head>
<body>
<form action="" method="get">
<fieldset>
<legend>Selector</legend>
<select name="host" multiple="multiple" size="10">
<option value="cpu-0">cpu-0</option>
<option value="df">df</option>
<option value="disk-hda">disk-hda</option>
<option value="disk-hda1">disk-hda1</option>
<option value="disk-hda2">disk-hda2</option>
<option value="disk-hda3">disk-hda3</option>
<option value="disk-hdc">disk-hdc</option>
<option value="disk-hdc1">disk-hdc1</option>
<option value="disk-hdc2">disk-hdc2</option>
<option value="dns">dns</option>
<option value="entropy">entropy</option>
<option value="interface">interface</option>
<option value="irq">irq</option>
<option value="load">load</option>
<option value="memory">memory</option>
<option value="nfs-v2client">nfs-v2client</option>
<option value="processes">processes</option>
<option
value="sensors-via686a-isa-6000">sensors-via686a-isa-6000</option>
<option value="swap">swap</option>
<option value="tcpconns-1344-local">tcpconns-1344-local</option>
<option value="tcpconns-22-local">tcpconns-22-local</option>
<option value="tcpconns-25-local">tcpconns-25-local</option>
<option value="tcpconns-2626-local">tcpconns-2626-local</option>
<option value="tcpconns-3306-local">tcpconns-3306-local</option>
<option value="tcpconns-443-local">tcpconns-443-local</option>
<option value="tcpconns-53-local">tcpconns-53-local</option>
<option value="tcpconns-80-local">tcpconns-80-local</option>
<option value="tcpconns-8110-local">tcpconns-8110-local</option>
<option value="tcpconns-8181-local">tcpconns-8181-local</option>
<option value="tcpconns-953-local">tcpconns-953-local</option>
<option value="users">users</option>
</select>
<select name="timespan">
<option value="hour">Hour</option>
<option value="day" selected="selected">Day</option>
<option value="week">Week</option>
<option value="month">Month</option>
<option value="year">Year</option>
</select>
<input type="submit" name="button" value="Ok" />
</fieldset>
</form>
<ul>
<li><a href="?action=show_host;host=cpu-0">cpu-0</a></li>
<li><a href="?action=show_host;host=df">df</a></li>
<li><a href="?action=show_host;host=disk-hda">disk-hda</a></li>
<li><a href="?action=show_host;host=disk-hda1">disk-hda1</a></li>
<li><a href="?action=show_host;host=disk-hda2">disk-hda2</a></li>
<li><a href="?action=show_host;host=disk-hda3">disk-hda3</a></li>
<li><a href="?action=show_host;host=disk-hdc">disk-hdc</a></li>
<li><a href="?action=show_host;host=disk-hdc1">disk-hdc1</a></li>
<li><a href="?action=show_host;host=disk-hdc2">disk-hdc2</a></li>
<li><a href="?action=show_host;host=dns">dns</a></li>
<li><a href="?action=show_host;host=entropy">entropy</a></li>
<li><a href="?action=show_host;host=interface">interface</a></li>
<li><a href="?action=show_host;host=irq">irq</a></li>
<li><a href="?action=show_host;host=load">load</a></li>
<li><a href="?action=show_host;host=memory">memory</a></li>
<li><a href="?action=show_host;host=nfs-v2client">nfs-v2client</a></li>
<li><a href="?action=show_host;host=processes">processes</a></li>
<li><a
href="?action=show_host;host=sensors-via686a-isa-6000">sensors-via686a-isa-6000</a></li>
<li><a href="?action=show_host;host=swap">swap</a></li>
<li><a
href="?action=show_host;host=tcpconns-1344-local">tcpconns-1344-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-22-local">tcpconns-22-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-25-local">tcpconns-25-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-2626-local">tcpconns-2626-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-3306-local">tcpconns-3306-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-443-local">tcpconns-443-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-53-local">tcpconns-53-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-80-local">tcpconns-80-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-8110-local">tcpconns-8110-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-8181-local">tcpconns-8181-local</a></li>
<li><a
href="?action=show_host;host=tcpconns-953-local">tcpconns-953-local</a></li>
<li><a href="?action=show_host;host=users">users</a></li>
</ul>
</body>
</html>
I tried moving the data files to the webroot and many other places but
always with the same result
What do I miss....????
Running slackware apache 2.2.6 collectd 4.2.1
Please advice me on this..
Chrs...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20071110/58349975/attachment.htm
More information about the collectd
mailing list