[rrd-users] Using rrdcgi

Eugene Prokopiev enp at itx.ru
Fri Oct 9 17:50:35 CEST 2015


Hi,

What is the right way to use rrdcgi? I have this example.cgi:

#!/usr/bin/rrdcgi
<html>
<head><title>RRDCGI Demo</title></head>
<body>
<RRD::GRAPH packets.png --lazy --title="Packets" DEF:cel=packets.rrd:rx:AVERAGE>
</body>
</html>

I have packets.rrd in the same directory. The result is:

$ curl http://localhost:5000/example.cgi

<html>
<head><title>RRDCGI Demo</title></head>
<body>
<IMG SRC="./packets.png" WIDTH="0" HEIGHT="0">
</body>
</html>

But I have no file packets.png in the same directory after running
example.cgi. How it must be created?

-- 
WBR,
Eugene Prokopiev



More information about the rrd-users mailing list