Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Jun 23, 2017 10:47 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Switch interfaces no graps
PostPosted: Tue Sep 13, 2011 2:26 pm 
Offline

Joined: Wed Apr 08, 2009 3:34 am
Posts: 8
i have installed (Cacti Version: 0.8.7h, Plugin Architecture Version: 3.0)

i tried to graph some switch interfaces but no luck, checkpoint interface are graphed alright but the switch interface remain blank


Log File [Total Lines: 179 - Admin View - No Other Filter in Affect]

09/14/2011 09:26:01 PM - SYSTEM STATS: Time:0.1029 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:0
09/14/2011 09:26:01 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
09/14/2011 09:26:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/usr/share/cacti/site/cmd.php" 0 13]
09/14/2011 09:25:48 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1315941948 --end=1316028348 --title='test - Traffic - Fa0/2' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2011/09/13 21\:25\:48 To 2011/09/14 21\:25\:48\c" COMMENT:" \n" --vertical-label='bits per second' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/site/rra/test_traffic_in_115.rrd":traffic_in:AVERAGE DEF:b="/usr/share/cacti/site/rra/test_traffic_in_115.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdeff=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" COMMENT:"Total In\: 0 bytes\n" LINE1:cdeff#002A97FF:"Outbound" GPRINT:cdeff:LAST:"Current\:%8.2lf %s" GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n" COMMENT:"Total Out\: 0 bytes\n"
09/14/2011 09:25:48 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool fetch /usr/share/cacti/site/rra/test_traffic_in_115.rrd AVERAGE -s 1315941948 -e 1316028348 -r 300
09/14/2011 09:25:48 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool info /usr/share/cacti/site/rra/test_traffic_in_115.rrd
09/14/2011 09:25:47 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1315941947 --end=1316028347 --title='test - Traffic - Fa0/2' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2011/09/13 21\:25\:47 To 2011/09/14 21\:25\:47\c" COMMENT:" \n" --vertical-label='bits per second' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/site/rra/test_traffic_in_115.rrd":traffic_in:AVERAGE DEF:b="/usr/share/cacti/site/rra/test_traffic_in_115.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdeff=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" COMMENT:"Total In\: 0 bytes\n" LINE1:cdeff#002A97FF:"Outbound" GPRINT:cdeff:LAST:"Current\:%8.2lf %s" GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n" COMMENT:"Total Out\: 0 bytes\n"
09/14/2011 09:25:47 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool fetch /usr/share/cacti/site/rra/test_traffic_in_115.rrd AVERAGE -s 1315941947 -e 1316028347 -r 300
09/14/2011 09:25:47 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool info /usr/share/cacti/site/rra/test_traffic_in_115.rrd
09/14/2011 09:25:45 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1315941945 --end=1316028345 --title='test - Traffic - Fa0/2' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2011/09/13 21\:25\:45 To 2011/09/14 21\:25\:45\c" COMMENT:" \n" --vertical-label='bits per second' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/site/rra/test_traffic_in_115.rrd":traffic_in:AVERAGE DEF:b="/usr/share/cacti/site/rra/test_traffic_in_115.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdeff=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" COMMENT:"Total In\: 0 bytes\n" LINE1:cdeff#002A97FF:"Outbound" GPRINT:cdeff:LAST:"Current\:%8.2lf %s" GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n" COMMENT:"Total Out\: 0 bytes\n"
09/14/2011 09:25:45 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool fetch /usr/share/cacti/site/rra/test_traffic_in_115.rrd AVERAGE -s 1315941945 -e 1316028345 -r 300
09/14/2011 09:25:45 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool info /usr/share/cacti/site/rra/test_traffic_in_115.rrd
09/14/2011 09:25:01 PM - SYSTEM STATS: Time:0.1033 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:0
09/14/2011 09:25:01 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
09/14/2011 09:25:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/usr/share/cacti/site/cmd.php" 0 13]
09/14/2011 09:25:01 PM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '5'
09/14/2011 09:24:33 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1315941873 --end=1316028273 --title='test - Traffic - Fa0/2' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2011/09/13 21\:24\:33 To 2011/09/14 21\:24\:33\c" COMMENT:" \n" --vertical-label='bits per second' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/site/rra/test_traffic_in_115.rrd":traffic_in:AVERAGE DEF:b="/usr/share/cacti/site/rra/test_traffic_in_115.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdeff=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" COMMENT:"Total In\: 0 bytes\n" LINE1:cdeff#002A97FF:"Outbound" GPRINT:cdeff:LAST:"Current\:%8.2lf %s" GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n" COMMENT:"Total Out\: 0 bytes\n"
09/14/2011 09:24:33 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool fetch /usr/share/cacti/site/rra/test_traffic_in_115.rrd AVERAGE -s 1315941873 -e 1316028273 -r 300
09/14/2011 09:24:33 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool info /usr/share/cacti/site/rra/test_traffic_in_115.rrd
09/14/2011 09:24:01 PM - SYSTEM STATS: Time:0.1033 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:1
09/14/2011 09:24:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/test1_traffic_in_116.rrd --template traffic_in:traffic_out 1316028241:2699306:2526325
09/14/2011 09:24:01 PM - CMDPHP: Poller[0] Time: 0.0121 s, Theads: N/A, Hosts: 2
09/14/2011 09:24:01 PM - CMDPHP: Poller[0] Host[13] Description[test1] DS[116] Graphs['test1 - Traffic - Fa0/2'] SNMP: v2: 192.168.10.200, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 2526325
09/14/2011 09:24:01 PM - CMDPHP: Poller[0] Host[13] Description[test1] DS[116] Graphs['test1 - Traffic - Fa0/2'] SNMP: v2: 192.168.10.200, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 2699306
09/14/2011 09:24:01 PM - CMDPHP: Poller[0] Host[13] Description[test1] RECACHE DQ[2] OID: .1.3.6.1.2.1.1.3.0, output: 478812
09/14/2011 09:24:01 PM - CMDPHP: Poller[0] Host[13] Description[test1] RECACHE DQ[2] OID: .1.3.6.1.2.1.1.3.0
09/14/2011 09:24:01 PM - CMDPHP: Poller[0] Host[13] Description[test1] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0, output: 478812
09/14/2011 09:24:01 PM - CMDPHP: Poller[0] Host[13] Description[test1] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0
09/14/2011 09:24:01 PM - CMDPHP: Poller[0] Host[13] Description[test1] RECACHE: Processing 2 items in the auto reindex cache for '192.168.10.200'.
09/14/2011 09:24:01 PM - CMDPHP: Poller[0] Host[13] Description[test1] SNMP: Host responded to SNMP
09/14/2011 09:24:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q

any idea's or help is more than welcome

regards

Peter


Top
 Profile  
 
 Post subject: Re: Switch interfaces no graps
PostPosted: Wed Sep 14, 2011 6:01 pm 
Offline
Cacti User
User avatar

Joined: Tue Jul 03, 2007 4:11 pm
Posts: 82
Location: San Luis Obispo
Could it be possible?

Code:
/usr/share/cacti/site/rra/test_traffic_in_115.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdeff=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" COMMENT:"Total In\: 0 bytes\n"

that cacti is actually polling that device and the result is 0.

Code:
Host[13] Description[test1] DS[116] Graphs['test1 - Traffic - Fa0/2'] SNMP: v2: 192.168.10.200, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 2526325

and the result is 2526325.

Are you not seeing graphs, are you seeing 0's or NaNs?

If NAN:

Code:
rrdtool info /usr/share/cacti/site/rra/test_traffic_in_115.rrd
look for ..... NaNs, if so, find at top:
ds[traffic_in].max = 1.0000000000e+00
ds[traffic_out].max = 1.0000000000e+00


If I saw that I'd change it by:

Code:
rrdtool tune /usr/share/cacti/site/rra/test_traffic_in_115.rrd --maximum traffic_in:1.0000000000e+09
rrdtool tune /usr/share/cacti/site/rra/test_traffic_in_115.rrd --maximum traffic_out:1.0000000000e+09

_________________
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE


Top
 Profile  
 
 Post subject: Re: Switch interfaces no graps
PostPosted: Fri Sep 16, 2011 1:15 am 
Offline

Joined: Wed Apr 08, 2009 3:34 am
Posts: 8
Thanks for your help this solved the problem, only question remains.

How do we solve this for other interfaces, i can think that i have to do this for a switch with 96 interfaces

regards Peter


Top
 Profile  
 
 Post subject: Re: Switch interfaces no graps
PostPosted: Tue Sep 27, 2011 6:23 pm 
Offline
Cacti User
User avatar

Joined: Tue Jul 03, 2007 4:11 pm
Posts: 82
Location: San Luis Obispo
Sorry for the late reply. I need to remember to check this forum more often.

I understand exactly, I'm not sure how to make this change via the web interface (it should be possible but no one has answered that for me yet).

There is a way to "rrdtool tune" multiple files at the same time via the CLI. I'm not sure which solution fixed your issue so I'll assume it was the --maximum interface_in setting.

If you're running linux, you'll be able to do this, if not...apt-get install or yum xargs.
From your rra/ directory
ls devicename_traffic_in_*.rrd | xargs -I '{}' rrdtool tune {} --maximum traffic_in:1.0000000000e+09 --maximum traffic_out:1.0000000000e+09

Explanation:

ls (list)
| (pipe)
xargs (take list and do this)
-I '{}' (put list into {})
rrdtool tune {} (do rrdtool tune to the list of file in {}) --maximum bla bla bla.

Let me know if that works for you.

_________________
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group