Generic OID graph template works in realtime but not otherwise

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Generic OID graph template works in realtime but not otherwise

Post by bmfmancini »

Hey Guys

I have a generic OID template to monitor interface status on a media converter
so far I have it working but ONLY if I put the graph in realtime view else the graph is just all nan

Where could I be going wrong if realtime graphing working then the OID is correct so not sure why the poller is not picking this up automatically ????
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!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Generic OID graph template works in realtime but not otherwise

Post by netniV »

Your directory permissions are probably incorrect so that the poller and/or website are unable to write (thus create) an RRD file in the RRA folders.
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
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Generic OID graph template works in realtime but not otherwise

Post by bmfmancini »

I already checked that but the permissions are good I also have a few thousand graphs working just great

Here is the debug

RRDtool Command:

/bin/rrdtool graph - \
--imgformat=PNG \
--start='1574345580' \
--end='1574347338' \
--pango-markup \
--title='(device name) - (device name) - Interface Status' \
--vertical-label='Up/Down' \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--tabwidth '40' \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2019/11/21 09\:13\:00 To 2019/11/21 09\:42\:18\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 \
DEF:a='/var/www/html/cacti/rra/(device_name)_snmp_oid_63011.rrd':'snmp_oid':MAX \
AREA:a#F5F800FF: \
GPRINT:a:LAST:'Current\:%8.2lf%s' \
GPRINT:a:AVERAGE:'Average\:%8.2lf%s' \
GPRINT:a:MAX:'Maximum\:%8.2lf%s\n'

RRDtool Says:
OK
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!
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Generic OID graph template works in realtime but not otherwise

Post by bmfmancini »

-rw-r--r-- 1 apache apache 321K Nov 21 09:45 /var/www/html/cacti/rra/(device_name)_snmp_oid_63011.rrd
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!
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Generic OID graph template works in realtime but not otherwise

Post by bmfmancini »

OK another example

I made a duplicate of the CPU DS and Graph template since I have a newer ASR with a differnt OID than what is hard coded in the DS
the CPU graphs are working for 800 devices so I know that ds and graph works fine

I changed the OID and I am able to graph CPU usage but only in realtime view the regular polling cycle gives me nan

see the debug output below

RRDtool Command:

/bin/rrdtool graph - \
--imgformat=PNG \
--start='1574354580' \
--end='1574356380' \
--pango-markup \
--title='Device Name - 5 Minute CPU Usage' \
--vertical-label='percent' \
--slope-mode \
--base=1000 \
--height=120 \
--width=500 \
--tabwidth '30' \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2019/11/21 11\:43\:00 To 2019/11/21 12\:13\:00\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 \
DEF:a='/var/www/html/cacti/rra/device name_asr5min_cpu_67681.rrd':'asr5min_cpu':MAX \
AREA:a#FF0000FF:'CPU Usage' \
GPRINT:a:LAST:'Current\:%8.0lf' \
GPRINT:a:AVERAGE:'Average\:%8.0lf' \
GPRINT:a:MAX:'Maximum\:%8.0lf\n'

RRDtool Says:
OK
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!
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Generic OID graph template works in realtime but not otherwise

Post by bmfmancini »

ignore the above that was my fault
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!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests