Y Axis off by a factor of 100

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
dyack4036
Posts: 2
Joined: Wed Nov 27, 2019 9:10 am

Y Axis off by a factor of 100

Post by dyack4036 »

Hello everyone,

Searched around for this and found similar, but not exact, issues like this. Tried those solutions but still having the problem.
I have a Fortigate firewall that is reporting Interface traffic stats. The Y axis is off by a factor of 100. (it says 1.6MB is passing but it's actually 160MB)
-I'm using 64bit counters and pasted the Graph debug below.
-Using SNMP v2 only.
-Installed on Ubuntu Linux
-CACTI version 1.2.7

It's been almost 15 years since I've worked on Linux...but I'll do my best to get you any extra information you need.

Any thoughts? And thank you in advance.

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--pango-markup  \
--title='Fortigate FW - Traffic - Public_Internet' \
--vertical-label='bytes per second' \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2019/11/26 09\:08\:41 To 2019/11/27 09\:03\:41\c" \
COMMENT:"  \n" \
--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:'Arial' \
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
--slope-mode \
--watermark 'Generated by Cacti®' \
DEF:a='/opt/cacti/rra/fortigate_fw_traffic_in_53.rrd':'traffic_in':MAX \
DEF:b='/opt/cacti/rra/fortigate_fw_traffic_in_53.rrd':'traffic_out':MAX \
LINE1:a#00CF00FF:  \
AREA:a#00CF007F:'Inbound '  \
GPRINT:a:LAST:'Current\:%8.2lf %s'  \
GPRINT:a:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:a:MAX:'Maximum\:%8.2lf %s\n'  \
LINE1:b#002A97FF:  \
LINE1:b#002A977F:'Outbound'  \
GPRINT:b:LAST:'Current\:%8.2lf %s'  \
GPRINT:b:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:b:MAX:'Maximum\:%8.2lf %s\n' 
RRDtool Says:
OK
Attachments
FW_Traffic.png
FW_Traffic.png (53.28 KiB) Viewed 1085 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Y Axis off by a factor of 100

Post by netniV »

Have you done a verbose query to see what values you are getting back? You may actually have to put a graph into debug mode and see what values the poller is seeing. It's possible the firewall is giving out a value different to most other devices?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Y Axis off by a factor of 100

Post by camerabob »

Having worked on Fortinets myself, confirm that the data you are receiving is bytes (capital B), not bits (lower case b). They do interchange these two a bit in their configurations.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
dyack4036
Posts: 2
Joined: Wed Nov 27, 2019 9:10 am

Re: Y Axis off by a factor of 100

Post by dyack4036 »

Appreciate both replies....Tried both bits and bytes and it didn't seem to change, so I'm doing something wrong. I don't have the resources on hand to figure out exactly what/why/how, so I created a CDEF and applied it to the graphs that I'm working with. It's resolved the problem. now all of the graphs match what the Dashboard on the Fortigate shows. I have several more Fortigates and Cisco's to hook into this, (Cisco's will be on different graphs thankfully) so this should work.

Is this the right way to do it? Definitely not. I have 2 hours blocked out to resolve this after the new year. CACTI was a quick/easy way to get a good look at my network and now it's doing just that. Can't ask for more then that.

Again, thanks for the help!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Y Axis off by a factor of 100

Post by netniV »

Glad to hear that you have been using it successfully, that's what we aim for. If you have a separate template for different device types, that is acceptable, though just means more maintenance when you want to update them all to a new layout or format. But it seems like you are aware of that already so it should be fine.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
netForgeWorker
Posts: 1
Joined: Fri Dec 06, 2019 11:27 am

Re: Y Axis off by a factor of 100

Post by netForgeWorker »

I noticed these issues in my Data Source Info Mode, but I don't have any graphs that are missing data so I'm confused: (maybe this is why the graphs were off in the first place) This is a new install, so I haven't been changing settings around/etc:

Required RRD step size is '60'
Number of rows for Cacti RRA id '0' should be '2900'
RRA 'cacti_1' missing in Cacti definition
RRA 'cacti_2' missing in Cacti definition
RRA 'cacti_3' missing in Cacti definition
Number of rows for Cacti RRA id '4' should be '2900'
RRA 'cacti_5' missing in Cacti definition
RRA 'cacti_6' missing in Cacti definition
RRA 'cacti_7' missing in Cacti definition
Number of rows for Cacti RRA id '8' should be '2900'
RRA 'cacti_9' missing in Cacti definition
RRA 'cacti_10' missing in Cacti definition
RRA 'cacti_11' missing in Cacti definition
Number of rows for Cacti RRA id '12' should be '2900'
RRA 'cacti_13' missing in Cacti definition
RRA 'cacti_14' missing in Cacti definition
RRA 'cacti_15' missing in Cacti definition
RRA '1' missing in Cacti definition
RRA '2' missing in Cacti definition
RRA '3' missing in Cacti definition
RRA '5' missing in Cacti definition
RRA '6' missing in Cacti definition
RRA '7' missing in Cacti definition
RRA '9' missing in Cacti definition
RRA '10' missing in Cacti definition
RRA '11' missing in Cacti definition
RRA '13' missing in Cacti definition
RRA '14' missing in Cacti definition
RRA '15' missing in Cacti definition
/usr/bin/rrdtool resize /opt/cacti/rra/fortigatenovi_traffic_in_94.rrd 0 GROW 2300
rename /opt/cacti/rra/resize.rrd to /opt/cacti/rra/fortigatenovi_traffic_in_94.rrd
/usr/bin/rrdtool resize /opt/cacti/rra/fortigatenovi_traffic_in_94.rrd 4 GROW 2300
rename /opt/cacti/rra/resize.rrd to /opt/cacti/rra/fortigatenovi_traffic_in_94.rrd
/usr/bin/rrdtool resize /opt/cacti/rra/fortigatenovi_traffic_in_94.rrd 8 GROW 2300
rename /opt/cacti/rra/resize.rrd to /opt/cacti/rra/fortigatenovi_traffic_in_94.rrd
/usr/bin/rrdtool resize /opt/cacti/rra/fortigatenovi_traffic_in_94.rrd 12 GROW 2300
rename /opt/cacti/rra/resize.rrd to /opt/cacti/rra/fortigatenovi_traffic_in_94.rrd
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Y Axis off by a factor of 100

Post by netniV »

The bottom four commands can be run to address the issues that can be addressed. However, the missing data sources would indicate that you have data linked to an RRD ID that is not present within the file. If you don't need the older data, you could move this out of the way and let it be recreated.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests