Cisco router - BGP Updates graphs don't work

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

Moderators: Developers, Moderators

User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Cisco router - BGP Updates graphs don't work

Post by haflinger »

Hi All Cacti fans :)

I just finished a fresh installation of Cacti (the latest version powered by Ubuntu 22.04).
Then I added the first device - Cisco router and some new graphs.
Everything works fine except the BGP Update graphs :/.

All BGP Update graphs appear with the result "ERROR: invalid y-grid format".

Could you please support me with this issue?

In the following you can check the output:

Code: Select all

RRDtool Command:

/usr/bin/rrdtool graph - \
--imgformat=SVG \
--start='-86400' \
--end='-300' \
--pango-markup  \
--title='r1_jel - bgpPeerIdentifier' \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--y-grid='1' \
--units-exponent=1 \
--tabwidth '30' \
--alt-autoscale-max \
--lower-limit='0' \
--y-grid='1' \
--units-exponent='1' \
COMMENT:"From 2022-08-18 14\:49\:56 To 2022-08-19 14\:44\:56\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 $rrdborder --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='/var/www/html/rra/r1_jel_bgppeerouttotalmsg_48.rrd':'bgpPeerInUpdates':AVERAGE \
DEF:b='/var/www/html/rra/r1_jel_bgppeerouttotalmsg_48.rrd':'bgpPeerOutUpdates':AVERAGE \
CDEF:cdefa='a,300,*' \
CDEF:cdefe='b,300,*' \
LINE2:cdefa#3D168BFF:'In updates '  \
GPRINT:cdefa:LAST:'Current\:%8.0lf'  \
GPRINT:cdefa:MIN:'Min\:%8.0lf'  \
GPRINT:cdefa:MAX:'Max\:%8.0lf\n'  \
LINE2:cdefe#7EE600FF:'Out updates'  \
GPRINT:cdefe:LAST:'Current\:%8.0lf'  \
GPRINT:cdefe:MIN:'Min\:%8.0lf'  \
GPRINT:cdefe:MAX:'Max\:%8.0lf\n' 

RRDtool Command lengths = 1288 characters.
RRDtool Says:
ERROR: invalid y-grid format
Thanks a lot in advance for any help :)

Best regards,
HaflingeR.
Best regards,
HaflingeR.
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Cisco router - BGP Updates graphs don't work

Post by bmfmancini »

Hey HaflingeR

Would you mind posting a screenshot of the graph template?

go to console >> templates >> graph >> Cisco - BGP Updates
Also, which version of RRDtool are you using ?
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Re: Cisco router - BGP Updates graphs don't work

Post by haflinger »

Hey seanmancini,

Thank you for your reply. I have attached screenshots of the graph template settings. Please take a look at it...
RRDtool Version is set to 1.7.2+.
Attachments
1.JPG
1.JPG (147.65 KiB) Viewed 1658 times
2.JPG
2.JPG (130.56 KiB) Viewed 1658 times
Best regards,
HaflingeR.
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Cisco router - BGP Updates graphs don't work

Post by bmfmancini »

Ok found the issue

there is a value set in the deprecated y-axis
remove the 1 next to Unit Grid Value (--unit/--y-grid) and Unit Exponent Value (--units-exponent)

this fixes it for me confirm and I will update the template

thanks for reporting !
Attachments
bgp_updates_template.JPG
bgp_updates_template.JPG (36.31 KiB) Viewed 1658 times
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Re: Cisco router - BGP Updates graphs don't work

Post by haflinger »

It seems to be working. I will confirm it definitively in a few minutes :)

Thank you! :) Beer for you!
Best regards,
HaflingeR.
User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Re: Cisco router - BGP Updates graphs don't work

Post by haflinger »

Premature joy or still have to wait a while....

RRDtool Says:
ERROR: opening '/var/www/html/rra/r1_jel_bgppeerouttotalmsg_55.rrd': No such file or directory
Best regards,
HaflingeR.
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Cisco router - BGP Updates graphs don't work

Post by bmfmancini »

Actually I found something else

the snmp query is missing the in updates and out

hold on
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Re: Cisco router - BGP Updates graphs don't work

Post by haflinger »

Okay :D
Best regards,
HaflingeR.
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Cisco router - BGP Updates graphs don't work

Post by bmfmancini »

OK I have the data query updated and the graph is working on my end now !

I am going to repackage and post to my git ill send you the link so you can try it out
Attachments
updates.JPG
updates.JPG (29.85 KiB) Viewed 1651 times
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Re: Cisco router - BGP Updates graphs don't work

Post by haflinger »

Sounds good :) Thanks a lot!
Best regards,
HaflingeR.
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Cisco router - BGP Updates graphs don't work

Post by bmfmancini »

ok so download this
https://github.com/bmfmancini/cacti/blo ... ter.xml.gz

and place it in <cacti dir>/install/templates/

then import the template like so

<cacti dir>/cli/install_package.php --filename=/cacti/install/templates/Cisco_Router.xml.gz

it may be best to delete the graphs you have now and re-add them also re-run the query

let me know how it works for you
reach out to me via email if you have issues importing the package !
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Re: Cisco router - BGP Updates graphs don't work

Post by haflinger »

I will test it and let you know about result. Thank you!
Best regards,
HaflingeR.
User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Re: Cisco router - BGP Updates graphs don't work

Post by haflinger »

I have checked and I do not have file install_package.php in <cacti dir>....

# ./cli/install_package.php --filename=/install/templates/Cisco_Router.xml.gz
bash: ./cli/install_package.php: No such file or directory
Best regards,
HaflingeR.
User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Re: Cisco router - BGP Updates graphs don't work

Post by haflinger »

I did:

# ./cli/import_package.php --filename=./install/templates/Cisco_Router.xml.gz
PHP Warning: Trying to access array offset on value of type null in /var/www/html/lib/functions.php on line 5821
PHP Warning: Trying to access array offset on value of type null in /var/www/html/lib/functions.php on line 5821
Read 52854 bytes of Package data
Import Results Cacti has imported the following items for the Package:Package Files/var/www/html/scripts/ss_hstats.php [written]/var/www/html/resource/snmp_queries/interface.xml [written]/var/www/html/resource/snmp_queries/cisco_bgp.xml [written]CDEF[success] Turn Uptime to Days [unchanged][success] Turn Bytes into Bits [unchanged][success] Make Per 5 Minutes [unchanged]GPRINT Preset[success] Normal [unchanged][success] Exact Numbers [unchanged]Data Input Method[success] Get SNMP Data [unchanged][success] Device - Polling Time [unchanged][success] Device - Uptime [unchanged][success] Get SNMP Data (Indexed) [unchanged]Data Template[success] Cisco Router - 5 Minute CPU [unchanged][success] Device - Polling Time [unchanged][success] Device - Uptime [unchanged][success] Interface - Traffic [unchanged][success] Interface - Errors/Discards [unchanged][success] Interface - Unicast Packets [unchanged][success] Interface - Non-Unicast Packets [unchanged][success] Cisco Router - BGP Peer Status [unchanged][success] Cisco Router - BGP Peer Updates [updated]Table: data_template, Column: name, New Value: Cisco Router - BGP Peer Updates, Old Value: Cisco Router - BGP updatesTable: data_template_data, Column: name, New Value: |host_description| - BGP Peer Updates, Old Value: |host_description| - PeerIdentifierGraph Template[success] Cisco - CPU Usage [unchanged][success] Device - Polling Time [unchanged][success] Device - Uptime [unchanged][success] Interface - Traffic (bits/sec) [unchanged][success] Interface - Errors/Discards [unchanged][success] Interface - Unicast Packets [unchanged][success] Interface - Non-Unicast Packets [unchanged][success] Interface - Traffic (bytes/sec) [unchanged][success] Interface - Traffic (bits/sec, 95th) [unchanged][success] Interface - Traffic (bits/sec, BW) [unchanged][success] Interface - Traffic (bytes/sec, BW) [unchanged][success] Interface - Multicast Packets [unchanged][success] Interface - Broadcast Packets [unchanged][success] Cisco - BGP Peer Status [updated]Table: graph_templates_graph, Column: image_format_id, New Value: 1, Old Value: 3Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700[success] Cisco - BGP Updates [updated]Table: graph_templates_graph, Column: title, New Value: |host_description| - BGP Peer Updates, Old Value: |host_description| - bgpPeerIdentifierTable: graph_templates_graph, Column: image_format_id, New Value: 1, Old Value: 3Table: graph_templates_graph, Column: height, New Value: 120, Old Value: 200Table: graph_templates_graph, Column: width, New Value: 500, Old Value: 700Data Query[success] SNMP - Interface Statistics [unchanged][success] Cisco - BGP peer status [updated]Table: snmp_query, Column: name, New Value: Cisco - BGP peer status, Old Value: Cisco - BGPTable: snmp_query, Column: description, New Value: Cisco BGP Peering status, Old Value: Cisco BGP QueryTable: snmp_query_graph, Column: name, New Value: Cisco BGP peer State, Old Value: Cisco - BGP Peer StatusSzablon urządzenia[success] Cisco Router [unchanged]VDEF[success] Last (Current) [unchanged]
Last edited by haflinger on Fri Aug 19, 2022 2:27 pm, edited 2 times in total.
Best regards,
HaflingeR.
User avatar
haflinger
Posts: 20
Joined: Fri Aug 19, 2022 7:39 am
Location: Jelenia Gora, Poland

Re: Cisco router - BGP Updates graphs don't work

Post by haflinger »

Great! It works! Thank you. But one cosmetic note...

The new graphs are drawing but they are not compatible with the other graphs. The sizes of the new graphs are different from the others.
Please take a look:
adfafwqefa.JPG
adfafwqefa.JPG (270 KiB) Viewed 1633 times
Maybe it is some problem with me.... But nevertheless I am very grateful for your help. Thanks a lot!
Best regards,
HaflingeR.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest