No graph for new devices
Moderators: Developers, Moderators
No graph for new devices
Hi,
I tried to install plugin Arc. but got some errors and graph was not geting updated then I removed all new files and put the old files of version 0.8.6j. It is updating graph.
But Now when I have added two new devices it is not generating graph for this new devices.
When I checked with php -q poller.php I got many OKs and the following
"09/10/2007 10:54:09 AM - SYSTEM STATS: Time:27.4693 Method:cmd.php Processes:1 Threads:N/A Hosts:12 HostsPerProcess:12 DataSources:363 RRDsProcessed:194"
and from the web for one interface
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="IBM Rack 1 - Traffic - Fa12" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd":traffic_in:MAX \
DEF:b="/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd":traffic_out:MAX \
DEF:d="/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefb=b,8,* \
CDEF:cdefe=c,8,* \
CDEF:cdeff=d,8,* \
CDEF:cdefi=a,UN,INF,UNKN,IF \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefb:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" \
AREA:cdefi#8F9286:""
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd': No such file or directory
Can anybody help me out pls?
Thanks in advance
I tried to install plugin Arc. but got some errors and graph was not geting updated then I removed all new files and put the old files of version 0.8.6j. It is updating graph.
But Now when I have added two new devices it is not generating graph for this new devices.
When I checked with php -q poller.php I got many OKs and the following
"09/10/2007 10:54:09 AM - SYSTEM STATS: Time:27.4693 Method:cmd.php Processes:1 Threads:N/A Hosts:12 HostsPerProcess:12 DataSources:363 RRDsProcessed:194"
and from the web for one interface
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="IBM Rack 1 - Traffic - Fa12" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd":traffic_in:MAX \
DEF:b="/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd":traffic_out:MAX \
DEF:d="/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefb=b,8,* \
CDEF:cdefe=c,8,* \
CDEF:cdeff=d,8,* \
CDEF:cdefi=a,UN,INF,UNKN,IF \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefb:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" \
AREA:cdefi#8F9286:""
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/ibm_rack_1_traffic_in_952.rrd': No such file or directory
Can anybody help me out pls?
Thanks in advance
The devices is up as it is reading with cricket. I m planning to remove cricket and put all the devices on cacti.
One thing i notice is that when I select any interface to monitor, the selected infterface colour is not changing to yellow as this has happed to old devices.
There is no rrd files creation for new devices. I checked the ownership for rra and log folder it for cacti user.
Thanks
One thing i notice is that when I select any interface to monitor, the selected infterface colour is not changing to yellow as this has happed to old devices.
There is no rrd files creation for new devices. I checked the ownership for rra and log folder it for cacti user.
Thanks
I applied few plugins like monitor, tools, update, all are working fine with all the old devices. but it is not generating graph for the newly added devices. I am getting broken link for the new devices. and still no luck with rrd files
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/gw_dam_rtr_traffic_in_1056.rrd': No such file or directory
Pls help.
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/gw_dam_rtr_traffic_in_1056.rrd': No such file or directory
Pls help.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
As long as you do not delete the running database and do not delete the rra folder, this will workshanz wrote:Do you suggest me to remove all /var/www/html/cacti files and upload new cacti files again ? and then restore config.php file?
If i do so then history, plugin arct. and plugins will work?
Reinhard
long-time cacti bug, new devices not graphing
Hello,
I'm running cacti 0.8.6c and it has been awesome but after using for about 4-5 months it quit creating graphs when I would add new devices. Took me a little while to figure it out and I hadn't seen it solved anywhere else. I apologize if it is in the forum but I couldn't find it and it may solve other people's problems:
I wasn't getting a graph so I turned on graph debugging and saw:
So now what--- ... Finally figured out where to see what code was being generated:
Notice how it created the second set of DS: lines (above)? RRDTOOL doesn't like this and so doesn't do anything. If you eliminate them and run them in your console the rrdtool file is created and then cacti works.
If you change the data source or the graph info you'll have to do it again.
So in summary:
1) go to 'Data Sources' section
2) select the data source with 'Interface - Traffic' template
3) 'Turn On Data Source Debug Mode.'
4) copy the script to create the rrdtool database
5) delete the DS duplicated lines. ( not all DS )
6) execute de clean script in your console.
7) remenber to associate this .rrd file to a cacti user.
If you are having similar problems see if you can run the rrdtool script directly to see what rrdtool does/says.
cheers,
David
I'm running cacti 0.8.6c and it has been awesome but after using for about 4-5 months it quit creating graphs when I would add new devices. Took me a little while to figure it out and I hadn't seen it solved anywhere else. I apologize if it is in the forum but I couldn't find it and it may solve other people's problems:
I wasn't getting a graph so I turned on graph debugging and saw:
Code: Select all
RRDTool Says:
ERROR: opening '/home/www/htdocs/cacti-0.8.6c/rra/netapp_3020c_sannas_traffic_in_883.rrd': No such file or directory
Code: Select all
Data Source Debug
/usr/local/rrdtool-1.0.48/bin/rrdtool create \
/home/www/htdocs/cacti-0.8.6c/rra/netapp_3020c_sannas_traffic_in_882.rrd \
--step 300 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
If you change the data source or the graph info you'll have to do it again.
So in summary:
1) go to 'Data Sources' section
2) select the data source with 'Interface - Traffic' template
3) 'Turn On Data Source Debug Mode.'
4) copy the script to create the rrdtool database
5) delete the DS duplicated lines. ( not all DS )
6) execute de clean script in your console.
7) remenber to associate this .rrd file to a cacti user.
If you are having similar problems see if you can run the rrdtool script directly to see what rrdtool does/says.
cheers,
David
Well, I believe its all happened after importing bluecoat xml file from the forum.
I removed all files and kept the same database, it did not work
then I removed the database and uploaded the new one. Everything starts working and I was able to add new devices. But when I imported the file cacti_host_template_bluecoat_proxy1.xml for bluecoat. All the same problem again, not able to add new devices.
How can I fix the Interface - Traffic Tamplate?
Pls save me from deleting the database and doing it from the begning.
Thanks
I removed all files and kept the same database, it did not work
then I removed the database and uploaded the new one. Everything starts working and I was able to add new devices. But when I imported the file cacti_host_template_bluecoat_proxy1.xml for bluecoat. All the same problem again, not able to add new devices.
How can I fix the Interface - Traffic Tamplate?
Pls save me from deleting the database and doing it from the begning.
Thanks
David,
I did all the 7 steps Its showing me NAN value.
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="IBM_Rack 4 - Traffic - Fa10" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/ibm_rack_4_traffic_in_128.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/ibm_rack_4_traffic_in_128.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf%s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf%s"
RRDTool Says:
OK
Did i missed something? Thanks.
I did all the 7 steps Its showing me NAN value.
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="IBM_Rack 4 - Traffic - Fa10" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/ibm_rack_4_traffic_in_128.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/ibm_rack_4_traffic_in_128.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf%s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf%s"
RRDTool Says:
OK
Did i missed something? Thanks.
Who is online
Users browsing this forum: No registered users and 2 guests