new device problems after upgreade from 0.8.7b to 0.8.7c
Moderators: Developers, Moderators
-
- Posts: 13
- Joined: Mon Sep 08, 2008 7:10 am
- Contact:
new device problems after upgreade from 0.8.7b to 0.8.7c
hello,
after upgrading from 0.8.7b to 0.8.7c i have problems with creating graphs fro new devices. i've creating the graphs presented in screenshot attached. this lines are came out on debug mode in graph management:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="cg-2-01.cluj - Traffic - = Fa0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd":traffic_in:AVERAGE \
DEF:b="/srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"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#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:
ERROR: opening '/srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd': No such file or directory
data source:
Data Source Debug
/usr/bin/rrdtool create \
/srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:= 100000000 \
DS:traffic_out: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:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN: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 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
after upgrading from 0.8.7b to 0.8.7c i have problems with creating graphs fro new devices. i've creating the graphs presented in screenshot attached. this lines are came out on debug mode in graph management:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="cg-2-01.cluj - Traffic - = Fa0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd":traffic_in:AVERAGE \
DEF:b="/srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"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#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:
ERROR: opening '/srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd': No such file or directory
data source:
Data Source Debug
/usr/bin/rrdtool create \
/srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:= 100000000 \
DS:traffic_out: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:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN: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 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
- Attachments
-
- new device adding
- newdevice.png (122.39 KiB) Viewed 5852 times
-
- Posts: 13
- Joined: Mon Sep 08, 2008 7:10 am
- Contact:
From CLI:
# /usr/bin/rrdtool create \
> /srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd \
> --step 300 \
> DS:traffic_in:COUNTER:600:0:= 100000000 \
> DS:traffic_out: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:MIN:0.5:1:600 \
> RRA:MIN:0.5:6:700 \
> RRA:MIN:0.5:24:775 \
> RRA:MIN: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 \
> RRA:LAST:0.5:1:600 \
> RRA:LAST:0.5:6:700 \
> RRA:LAST:0.5:24:775 \
> RRA:LAST:0.5:288:797 \
>
ERROR: min must be less than max in DS definition
I think the problems are here:
> DS:traffic_in:COUNTER:600:0:= 100000000 \
> DS:traffic_out:COUNTER:600:0:= 100000000 \
# /usr/bin/rrdtool create \
> /srv/www/htdocs/cacti-0.8.7c/rra/cg-2-01_cluj_traffic_in_21802.rrd \
> --step 300 \
> DS:traffic_in:COUNTER:600:0:= 100000000 \
> DS:traffic_out: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:MIN:0.5:1:600 \
> RRA:MIN:0.5:6:700 \
> RRA:MIN:0.5:24:775 \
> RRA:MIN: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 \
> RRA:LAST:0.5:1:600 \
> RRA:LAST:0.5:6:700 \
> RRA:LAST:0.5:24:775 \
> RRA:LAST:0.5:288:797 \
>
ERROR: min must be less than max in DS definition
I think the problems are here:
> DS:traffic_in:COUNTER:600:0:= 100000000 \
> DS:traffic_out:COUNTER:600:0:= 100000000 \
-
- Posts: 13
- Joined: Mon Sep 08, 2008 7:10 am
- Contact:
Hi,
I've got the same issues with a fresh install of 0.8.7c
You are right with regards to the DS: Traffic in & out
If you remove the "=" the graphs are created without a problem
> DS:traffic_in:COUNTER:600:0: 100000000 \
> DS:traffic_out:COUNTER:600:0: 100000000 \
If I create a new device it always adds an "=" in front of the Maximum Value field for Data Source Item Fields [traffic_in] & [traffic_out]
Can anybody please cofirm whether this is correct and if I am missing something?
Bit of a pain having to edit each Data Source List of every device!
It also throws up the following error when rrd is manually run from the CLI, remove the "=" and it works OK.
/usr/local/rrd/bin/rrdtool create /usr/local/apache/sites/cacti/rra/test_traffic_in_24.rrd --step 300 DS:traffic_in:COUNTER:600:0:= 1000000000 DS:traffic_out:COUNTER:600:0:= 1000000000 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
ERROR: min must be less than max in DS definition
Any help appreciated
I've got the same issues with a fresh install of 0.8.7c
You are right with regards to the DS: Traffic in & out
If you remove the "=" the graphs are created without a problem
> DS:traffic_in:COUNTER:600:0: 100000000 \
> DS:traffic_out:COUNTER:600:0: 100000000 \
If I create a new device it always adds an "=" in front of the Maximum Value field for Data Source Item Fields [traffic_in] & [traffic_out]
Can anybody please cofirm whether this is correct and if I am missing something?
Bit of a pain having to edit each Data Source List of every device!
It also throws up the following error when rrd is manually run from the CLI, remove the "=" and it works OK.
/usr/local/rrd/bin/rrdtool create /usr/local/apache/sites/cacti/rra/test_traffic_in_24.rrd --step 300 DS:traffic_in:COUNTER:600:0:= 1000000000 DS:traffic_out:COUNTER:600:0:= 1000000000 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
ERROR: min must be less than max in DS definition
Any help appreciated
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please update your "lib/snmp.php" from svn and then reindex your hosts.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Posts: 13
- Joined: Mon Sep 08, 2008 7:10 am
- Contact:
-
- Posts: 13
- Joined: Mon Sep 08, 2008 7:10 am
- Contact:
tried this version:
http://svn.cacti.net/viewvc/cacti/branc ... ision=4920
still have no graphs for new datasources..
after 5 min.: killed datasources and entered them newly, now anything is ok
http://svn.cacti.net/viewvc/cacti/branc ... ision=4920
still have no graphs for new datasources..
after 5 min.: killed datasources and entered them newly, now anything is ok
Hi ,
I update snmp.h and now I don't have the same error. But curiosly the datasources doesn't create automatically. If I turn on debug on datasources and paste the "rrdtool create" code in terminal the datasource is created, but the poller doesn't create it.
I'm runnning cacti 0.8.7c in a Debian Etch.
Thanks,
I update snmp.h and now I don't have the same error. But curiosly the datasources doesn't create automatically. If I turn on debug on datasources and paste the "rrdtool create" code in terminal the datasource is created, but the poller doesn't create it.
I'm runnning cacti 0.8.7c in a Debian Etch.
Thanks,
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Not snmp.h
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
-
- Cacti User
- Posts: 89
- Joined: Fri May 25, 2007 1:18 pm
Hi all,
no luck for me.. graphs don't generate at all..
PHP Notice: Undefined index: in /mnt/fioa160/www/htdocs/cacti/lib/rrd.php on line 275, referer: http://10.32.0.99/cacti/data_sources.php
how do I clear the indexes? aside from deleting the device and associated datasource?
no luck for me.. graphs don't generate at all..
PHP Notice: Undefined index: in /mnt/fioa160/www/htdocs/cacti/lib/rrd.php on line 275, referer: http://10.32.0.99/cacti/data_sources.php
how do I clear the indexes? aside from deleting the device and associated datasource?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Let me guess, php 4?
Download the following file from SVN and update it on your installation:
http://svn.cacti.net/viewvc/cacti/branc ... threv=4925
Download the following file from SVN and update it on your installation:
http://svn.cacti.net/viewvc/cacti/branc ... threv=4925
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
-
- Cacti User
- Posts: 89
- Joined: Fri May 25, 2007 1:18 pm
nope
root@tools:~> php -v
PHP 5.2.8 (cli) (built: Feb 10 2009 01:26:58)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
I tried copying snmp.php and rrd.php from the SVN, still nothing is created.
running the debug option under Mgmt --> Datasources seemed ok,
but Debug under Graph mgmt for the single graph I created fails..
rrd file is never created...
two different errors depending on if I try to use rrdtool1.3 or 1.2...
root@tools:~> php -v
PHP 5.2.8 (cli) (built: Feb 10 2009 01:26:58)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
I tried copying snmp.php and rrd.php from the SVN, still nothing is created.
running the debug option under Mgmt --> Datasources seemed ok,
but Debug under Graph mgmt for the single graph I created fails..
rrd file is never created...
two different errors depending on if I try to use rrdtool1.3 or 1.2...
Who is online
Users browsing this forum: No registered users and 4 guests