problem with rrdtool i think

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
teoboev
Posts: 5
Joined: Wed Mar 28, 2007 6:51 am

problem with rrdtool i think

Post by teoboev »

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Server - Traffic - tun0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
DEF:a="/usr/share/cacti/site/rra/server_traffic_in_10.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/server_traffic_in_10.rrd":traffic_out:AVERAGE \
AREA:a#00CF00:"Inbound" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:b#002A97:"Outbound" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"

RRDTool Says:

ERROR: opening '/usr/share/cacti/site/rra/server_traffic_in_10.rrd': No such file or directory


My questions is how can i create this files and if there have to be automatically created how can i find why they havent....


Cheers
User avatar
mahuani
Cacti User
Posts: 72
Joined: Tue Nov 01, 2005 2:10 pm
Location: Lafayette, LA
Contact:

Post by mahuani »

It think I'm having the same problem. Cacti won't generate rrds for interface graphs. It works fine for CPU, Load, Processes, etc.. Just doesn't like interface graphs.

I wonder if it is something with the template or another problem. I get this error when I look at my logs.

Code: Select all

OK u:0.01 s:0.03 r:1.52
PHP Notice:  Undefined index:   in /www/htdocs/lib/rrd.php on line 212
PHP Notice:  Undefined index:   in /www/htdocs/lib/rrd.php on line 212
PHP Notice:  Undefined index:   in /www/htdocs/lib/rrd.php on line 212
PHP Notice:  Undefined index:   in /www/htdocs/lib/rrd.php on line 212
PHP Notice:  Undefined index:   in /www/htdocs/lib/rrd.php on line 212
PHP Notice:  Undefined index:   in /www/htdocs/lib/rrd.php on line 212
OK u:0.01 s:0.03 r:1.60
OK u:0.01 s:0.03 r:1.60
OK u:0.01 s:0.03 r:1.60
OK u:0.01 s:0.03 r:1.60
OK u:0.01 s:0.03 r:1.60
OK u:0.01 s:0.03 r:1.60
OK u:0.01 s:0.03 r:1.60
ERROR: Unrecognized consolidation function
ERROR: opening '/www/htdocs/rra/cat65091_traffic_in_439.rrd': No such 
file or directory
ERROR: Unrecognized consolidation function
ERROR: opening '/www/htdocs/rra/cat65091_traffic_in_455.rrd': No such 
file or directory
ERROR: Unrecognized consolidation function
ERROR: opening '/www/htdocs/rra/cat65091_traffic_in_449.rrd': No such 
file or directory
I sent an e-mail to the mailing list, but as of yet I haven't received a response.

If you figure this out would you please post to this thread, I will be sure to do the same.
TimmiT.nl
Posts: 4
Joined: Thu Mar 03, 2005 11:50 am
Location: Netherlands
Contact:

Post by TimmiT.nl »

I have accactly the same problem...
alexander007
Posts: 11
Joined: Sat Oct 07, 2006 9:23 am

Post by alexander007 »

any help? I have the same problem for the interface graphics :-?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit the device and select "Verbose Query" for the interface data query. Please post the output
Reinhard
alexander007
Posts: 11
Joined: Sat Oct 07, 2006 9:23 am

Post by alexander007 »

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please snmpwalk against the OID mentioned in your output above and post the results
Reinhard
alexander007
Posts: 11
Joined: Sat Oct 07, 2006 9:23 am

Post by alexander007 »

mmm its not working....Im running CentOS on that box...
[root@soc ~]# snmpwalk -v2c -c public localhost 1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex = No Such Object available on this agent at this OID
[root@soc ~]#
this its not suppose to be the same for all?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you try with this minimalistic snmpd.conf :

Code: Select all

rocommunity public
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
alexander007
Posts: 11
Joined: Sat Oct 07, 2006 9:23 am

Post by alexander007 »

any help?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Did you modify snmpd.conf as advised ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests