Traffic graphs
Moderators: Developers, Moderators
graph shows this log and i attached 2 screen shots
RRDTool Command:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Crutch - Traffic" \
--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:10: \
--font UNIT:8: \
DEF:a="/web-docs/www.hoppy.co.za/data/cacti/rra/crutch_t ... in:AVERAGE \
DEF:b="/web-docs/www.hoppy.co.za/data/cacti/rra/crutch_t ... ut: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 '/web-docs/www.hoppy.co.za/data/cacti/rra/crutch_traffic_in_8.rrd': No such file or directory
[/img]
RRDTool Command:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Crutch - Traffic" \
--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:10: \
--font UNIT:8: \
DEF:a="/web-docs/www.hoppy.co.za/data/cacti/rra/crutch_t ... in:AVERAGE \
DEF:b="/web-docs/www.hoppy.co.za/data/cacti/rra/crutch_t ... ut: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 '/web-docs/www.hoppy.co.za/data/cacti/rra/crutch_traffic_in_8.rrd': No such file or directory
[/img]
- Attachments
-
- 1.JPG (63.25 KiB) Viewed 2420 times
-
- 2.JPG (38.19 KiB) Viewed 2420 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please visit Graph Management and find the graph. Delete and when asked, the associated data source as well.
Then, please edit the host and delete the Graph Template "Interface Traffic".
Now, select "Create Graphs for this Host"; select the required interface(s) and the Graph you're interested in.
Please find some walkthroughs at the 1st link of my sig (see the documentation link in the 4th tab of all cacti sites)
Reinhard
Then, please edit the host and delete the Graph Template "Interface Traffic".
Now, select "Create Graphs for this Host"; select the required interface(s) and the Graph you're interested in.
Please find some walkthroughs at the 1st link of my sig (see the documentation link in the 4th tab of all cacti sites)
Reinhard
Hi
I followed the instructions, but get this error when tring to create the graph..
Data Query [SNMP - Interface Statistics] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
here is the debug...
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/web-docs/****/data/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'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Down'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='xl0'] index: 1 [from value]
+ Found item [ifDescr='plip0'] index: 2 [from value]
+ Found item [ifDescr='lo0'] index: 3 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd'] index: 1 [from value]
+ Found item [ifType='para'] index: 2 [from value]
+ Found item [ifType='softwareLoopback'] index: 3 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='0'] index: 2 [from value]
+ Found item [ifSpeed='0'] index: 3 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='00:10:4B:B9:49:91'] index: 1 [from value]
+ Found item [ifHwAddr=''] index: 2 [from value]
+ Found item [ifHwAddr=''] index: 3 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='127.0.0.1'] index: 3 [from regexp oid parse]
+ Found item [ifIP='****'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
I followed the instructions, but get this error when tring to create the graph..
Data Query [SNMP - Interface Statistics] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
here is the debug...
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/web-docs/****/data/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'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Down'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='xl0'] index: 1 [from value]
+ Found item [ifDescr='plip0'] index: 2 [from value]
+ Found item [ifDescr='lo0'] index: 3 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd'] index: 1 [from value]
+ Found item [ifType='para'] index: 2 [from value]
+ Found item [ifType='softwareLoopback'] index: 3 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='0'] index: 2 [from value]
+ Found item [ifSpeed='0'] index: 3 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='00:10:4B:B9:49:91'] index: 1 [from value]
+ Found item [ifHwAddr=''] index: 2 [from value]
+ Found item [ifHwAddr=''] index: 3 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='127.0.0.1'] index: 3 [from regexp oid parse]
+ Found item [ifIP='****'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
Ok, it seems as if i have a problem with all my SNMP data,
Data Query [SNMP - Get Mounted Partitions] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
Data Query [SNMP - Get Processor Information] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
Data Query [SNMP - Interface Statistics] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
One would then assume that my issues are related to my SNMP rather than Cacti its self.
How do i test to make sure my SNMP is working correctly and configured right?
Data Query [SNMP - Get Mounted Partitions] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
Data Query [SNMP - Get Processor Information] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
Data Query [SNMP - Interface Statistics] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
One would then assume that my issues are related to my SNMP rather than Cacti its self.
How do i test to make sure my SNMP is working correctly and configured right?
Hi..
Still no luck
removed the path as suggested. bit still get :-
Data Query [SNMP - Interface Statistics] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/web-docs/****/data/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'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Down'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='xl0'] index: 1 [from value]
+ Found item [ifDescr='plip0'] index: 2 [from value]
+ Found item [ifDescr='lo0'] index: 3 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd'] index: 1 [from value]
+ Found item [ifType='para'] index: 2 [from value]
+ Found item [ifType='softwareLoopback'] index: 3 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='0'] index: 2 [from value]
+ Found item [ifSpeed='0'] index: 3 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='00:10:4B:B9:49:91'] index: 1 [from value]
+ Found item [ifHwAddr=''] index: 2 [from value]
+ Found item [ifHwAddr=''] index: 3 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='127.0.0.1'] index: 3 [from regexp oid parse]
+ Found item [ifIP='196.****'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
I guess it something simple on my side , i just can't work out what it is... where is the new version coming out?
Cheers
Hoppy
Still no luck
removed the path as suggested. bit still get :-
Data Query [SNMP - Interface Statistics] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/web-docs/****/data/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'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Down'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='xl0'] index: 1 [from value]
+ Found item [ifDescr='plip0'] index: 2 [from value]
+ Found item [ifDescr='lo0'] index: 3 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd'] index: 1 [from value]
+ Found item [ifType='para'] index: 2 [from value]
+ Found item [ifType='softwareLoopback'] index: 3 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='0'] index: 2 [from value]
+ Found item [ifSpeed='0'] index: 3 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='00:10:4B:B9:49:91'] index: 1 [from value]
+ Found item [ifHwAddr=''] index: 2 [from value]
+ Found item [ifHwAddr=''] index: 3 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='127.0.0.1'] index: 3 [from regexp oid parse]
+ Found item [ifIP='196.****'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/web-docs/****/data/cacti/resource/snmp_queries/interface.xml'
I guess it something simple on my side , i just can't work out what it is... where is the new version coming out?
Cheers
Hoppy
i manually ran cmd.php and got the following...
php cmd.php
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/mhash.so' - Cannot open "/usr/local/lib/php/20020429/mhash.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/gettext.so' - Cannot open "/usr/local/lib/php/20020429/gettext.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/mbstring.so' - Cannot open "/usr/local/lib/php/20020429/mbstring.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/openssl.so' - Cannot open "/usr/local/lib/php/20020429/openssl.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/xmlrpc.so' - Cannot open "/usr/local/lib/php/20020429/xmlrpc.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/snmp.so' - Shared object "libnetsnmp.so.9" not found, required by "snmp.so" in Unknown on line 0
php cmd.php
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/mhash.so' - Cannot open "/usr/local/lib/php/20020429/mhash.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/gettext.so' - Cannot open "/usr/local/lib/php/20020429/gettext.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/mbstring.so' - Cannot open "/usr/local/lib/php/20020429/mbstring.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/openssl.so' - Cannot open "/usr/local/lib/php/20020429/openssl.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/xmlrpc.so' - Cannot open "/usr/local/lib/php/20020429/xmlrpc.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/snmp.so' - Shared object "libnetsnmp.so.9" not found, required by "snmp.so" in Unknown on line 0
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
That's ugly. Your php&modules seems to be broken. Any chance to fix this?hoppy wrote:i manually ran cmd.php and got the following...
php cmd.php
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/mhash.so' - Cannot open "/usr/local/lib/php/20020429/mhash.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/gettext.so' - Cannot open "/usr/local/lib/php/20020429/gettext.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/mbstring.so' - Cannot open "/usr/local/lib/php/20020429/mbstring.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/openssl.so' - Cannot open "/usr/local/lib/php/20020429/openssl.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/xmlrpc.so' - Cannot open "/usr/local/lib/php/20020429/xmlrpc.so" in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/20020429/snmp.so' - Shared object "libnetsnmp.so.9" not found, required by "snmp.so" in Unknown on line 0
Reinhard
Who is online
Users browsing this forum: No registered users and 2 guests