Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNMP - Bits/Sec + Total Bandwith - Cacti Version 1.0.3 #298

Closed
SoNix21 opened this issue Feb 13, 2017 · 8 comments
Closed

SNMP - Bits/Sec + Total Bandwith - Cacti Version 1.0.3 #298

SoNix21 opened this issue Feb 13, 2017 · 8 comments

Comments

@SoNix21
Copy link

SoNix21 commented Feb 13, 2017

Anyone can confirm this problem...
My Graph stopped working since Cacti 1.0.3... (Every others graph works ).
And check at the bottom : RRDtools says : (Nothing)..

And there is no error in my Cacti Log.

bits_totalbandwith

@cigamit
Copy link
Member

cigamit commented Feb 18, 2017

Can you please copy the string on the left hand side and past it into a shell window and then see what the error is? I'm thinking that rrdtool is crashing on you. Also, please report your rrdtool version from 'rrdtool --version'.

@SoNix21
Copy link
Author

SoNix21 commented Feb 20, 2017

OKay... I tried to do, the complete Command :

C:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start="-86400" --end="-300" --pango-markup --title="LXXXX - XX - XX-5500 [IRF] - Traffic - ***VERS XXSW-XX-4800-1 GIG 1/0/28***" --vertical-label="bytes per second" --slope-mode --base=1000 --height=120 --width=500 --tabwidth "30" --rigid --alt-autoscale-max --lower-limit="0" --color BACK#F3F3F3 --color CANVAS#FDFDFD --color SHADEA#CBCBCB --color SHADEB#999999 --color FONT#000000 --color AXIS#2C4D43 --color ARROW#2C4D43 --color FRAME#2C4D43 --border 1 --font TITLE:11:"Ariel" --font AXIS:8:"Ariel" --font LEGEND:8:"Courier" --font UNIT:8:"Ariel" --font WATERMARK:6:"Ariel" --slope-mode --watermark "Copyright (C) 2004-2017 The Cacti Group" DEF:a="C\:/Cacti/Apache24/htdocs/Cacti/rra/178/649.rrd":"traffic_in":AVERAGE DEF:b="C\:/Cacti/Apache24/htdocs/Cacti/rra/178/649.rrd":"traffic_out":AVERAGE AREA:a#00CF00FF:"Inbound " GPRINT:a:LAST:"Current\:%8.2lf%s" GPRINT:a:AVERAGE:"Average\:%8.2lf%s" GPRINT:a:MAX:"Maximum\:%8.2lf%s\n" COMMENT:\"Total In\: -300 B\n\" LINE1:b#002A97FF:"Outbound" GPRINT:b:LAST:"Current\:%8.2lf%s" GPRINT:b:AVERAGE:"Average\:%8.2lf%s" GPRINT:b:MAX:"Maximum\:%8.2lf%s\n" COMMENT:\"Total Out\: -300 B\n\"

I get an "ERROR: unknown option '3'"

Here is my RRDTool Version :

`C:\rrdtool>rrdtool.exe -version
RRDtool 1.4.5 Copyright 1997-2009 by Tobias Oetiker tobi@oetiker.ch
Compiled Dec 15 2011 15:06:41

Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages`

@cigamit
Copy link
Member

cigamit commented Feb 20, 2017

Change the comments from the following:

COMMENT:"Total Out: -300 B\n"

to the following:

COMMENT:"Total Out: -300 B\n"

And comment. I think this will fix it. If you can confirm that, I can make the fix.

@SoNix21
Copy link
Author

SoNix21 commented Feb 20, 2017

I think the forum removed a \ or something.. because you write the same thing.. ;)

@cigamit
Copy link
Member

cigamit commented Feb 20, 2017

If you update the the latest lib/rrd.php, I think that this problem should be solved. We introduced a new escaping function. In my environment, when you look at the debug output, there will be single characters used instead of double for the bandwidth comments as well.

@SoNix21
Copy link
Author

SoNix21 commented Feb 20, 2017

I did the update, but the problem is still there.. :(

I still get no "OK" from rrdtool :
C:/rrdtool/rrdtool.exe graph - \ --imgformat=PNG \ --start="-86400" \ --end="-300" \ --pango-markup \ --title="LXXXXX - XX - XX-5500 [IRF] - Traffic - ***VERS XXSW-XXX-4800-1 GIG 1/0/28***" \ --vertical-label="bytes per second" \ --slope-mode \ --base=1000 \ --height=120 \ --width=500 \ --tabwidth "30" \ --rigid \ --alt-autoscale-max \ --lower-limit="0" \ --color BACK#F3F3F3 \ --color CANVAS#FDFDFD \ --color SHADEA#CBCBCB \ --color SHADEB#999999 \ --color FONT#000000 \ --color AXIS#2C4D43 \ --color ARROW#2C4D43 \ --color FRAME#2C4D43 \ --border 1 --font TITLE:11:"Ariel" \ --font AXIS:8:"Ariel" \ --font LEGEND:8:"Courier" \ --font UNIT:8:"Ariel" \ --font WATERMARK:6:"Ariel" \ --slope-mode \ --watermark "Copyright (C) 2004-2017 The Cacti Group" \ DEF:a="C\:/Cacti/Apache24/htdocs/Cacti/rra/178/649.rrd":"traffic_in":AVERAGE \ DEF:b="C\:/Cacti/Apache24/htdocs/Cacti/rra/178/649.rrd":"traffic_out":AVERAGE \ AREA:a#00CF00FF:"Inbound " \ GPRINT:a:LAST:"Current\:%8.2lf%s" \ GPRINT:a:AVERAGE:"Average\:%8.2lf%s" \ GPRINT:a:MAX:"Maximum\:%8.2lf%s\n" \ COMMENT:\"Total In\: 0 B\n\" \ LINE1:b#002A97FF:"Outbound" \ GPRINT:b:LAST:"Current\:%8.2lf%s" \ GPRINT:b:AVERAGE:"Average\:%8.2lf%s" \ GPRINT:b:MAX:"Maximum\:%8.2lf%s\n" \ COMMENT:\"Total Out\: 0 B\n\"

@cigamit
Copy link
Member

cigamit commented Feb 23, 2017

Please test with the latest commit. Thanks.

cigamit added a commit that referenced this issue Feb 23, 2017
@SoNix21
Copy link
Author

SoNix21 commented Feb 23, 2017

Yep! Problem Fixed!!! I close the ticket.

@SoNix21 SoNix21 closed this as completed Feb 23, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants