|
|
| Author |
Message |
hoppy
Joined: 05 May 2005 Posts: 33
|
Posted: Sat Jun 28, 2008 1:26 pm Post subject: |
|
|
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_traffic_in_8.rrd":traffic_in:AVERAGE \
DEF:b="/web-docs/www.hoppy.co.za/data/cacti/rra/crutch_traffic_in_8.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 '/web-docs/www.hoppy.co.za/data/cacti/rra/crutch_traffic_in_8.rrd': No such file or directory
[/img]
| Description: |
|
| Filesize: |
38.19 KB |
| Viewed: |
759 Time(s) |

|
| Description: |
|
| Filesize: |
63.25 KB |
| Viewed: |
759 Time(s) |

|
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12604 Location: Muenster, Germany
|
Posted: Sun Jun 29, 2008 2:34 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
hoppy
Joined: 05 May 2005 Posts: 33
|
Posted: Mon Jun 30, 2008 1:33 am Post subject: |
|
|
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'
|
|
| Back to top |
|
 |
hoppy
Joined: 05 May 2005 Posts: 33
|
Posted: Mon Jun 30, 2008 10:58 am Post subject: |
|
|
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?
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12604 Location: Muenster, Germany
|
Posted: Mon Jun 30, 2008 3:00 pm Post subject: |
|
|
Which kind of target are you working on? Are you using SNMP V2?
Reinhard
|
|
| Back to top |
|
 |
hoppy
Joined: 05 May 2005 Posts: 33
|
Posted: Tue Jul 01, 2008 1:32 am Post subject: |
|
|
| FreeBSD and SNMP v2
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12604 Location: Muenster, Germany
|
Posted: Tue Jul 01, 2008 3:05 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
hoppy
Joined: 05 May 2005 Posts: 33
|
Posted: Wed Jul 02, 2008 12:55 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
hoppy
Joined: 05 May 2005 Posts: 33
|
Posted: Tue Jul 08, 2008 10:14 am Post subject: |
|
|
| gandalf : any new ideas?
|
|
| Back to top |
|
 |
hoppy
Joined: 05 May 2005 Posts: 33
|
Posted: Tue Jul 08, 2008 10:58 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12604 Location: Muenster, Germany
|
Posted: Tue Jul 08, 2008 3:44 pm Post subject: |
|
|
| hoppy wrote: | | gandalf : any new ideas? | To be honest: NO. That's why I did not respond yet
Reinhard
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12604 Location: Muenster, Germany
|
Posted: Tue Jul 08, 2008 3:45 pm Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
gifty
Joined: 17 Jul 2008 Posts: 21
|
Posted: Tue Jul 22, 2008 6:25 pm Post subject: |
|
|
Does cacti has ability to use |query_ifSpeed| substitution for upper_limit graph variable?
Please help me out with this.
Thanks a lot.
|
|
| Back to top |
|
 |
gifty
Joined: 17 Jul 2008 Posts: 21
|
Posted: Wed Jul 23, 2008 12:16 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
|