Traffic graphs

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

Moderators: Developers, Moderators

hoppy
Posts: 33
Joined: Thu May 05, 2005 12:36 am

Post by hoppy »

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]
Attachments
1.JPG
1.JPG (63.25 KiB) Viewed 2419 times
2.JPG
2.JPG (38.19 KiB) Viewed 2419 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
hoppy
Posts: 33
Joined: Thu May 05, 2005 12:36 am

Post by hoppy »

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'
hoppy
Posts: 33
Joined: Thu May 05, 2005 12:36 am

Post by hoppy »

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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Which kind of target are you working on? Are you using SNMP V2?
Reinhard
hoppy
Posts: 33
Joined: Thu May 05, 2005 12:36 am

Post by hoppy »

FreeBSD and SNMP v2
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Perhaps there is an issue with snmpbulkwalk. An associated error will be fixed with upcoming 087c. Let's try another global workaround: See Settings->Paths and delete the snmpbulkwalk path entry. This should deactivate snmpbulkwalk as a whole for all targets. Ugly, but worth a try
Reinhard
hoppy
Posts: 33
Joined: Thu May 05, 2005 12:36 am

Post by hoppy »

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
hoppy
Posts: 33
Joined: Thu May 05, 2005 12:36 am

Post by hoppy »

gandalf : any new ideas?
hoppy
Posts: 33
Joined: Thu May 05, 2005 12:36 am

Post by 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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

hoppy wrote:gandalf : any new ideas?
To be honest: NO. That's why I did not respond yet
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
That's ugly. Your php&modules seems to be broken. Any chance to fix this?
Reinhard
gifty
Posts: 21
Joined: Thu Jul 17, 2008 1:47 pm

Post by gifty »

Does cacti has ability to use |query_ifSpeed| substitution for upper_limit graph variable?

Please help me out with this.

Thanks a lot.
gifty
Posts: 21
Joined: Thu Jul 17, 2008 1:47 pm

Post by gifty »

My problem Solved..
I had to edit few files according to patch for cacti 0.8.6h ...
And then i was able to put upper limit as |query_ifSpeed| ...

Thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests