Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
ctyler2621
Posts: 6 Joined: Tue Aug 09, 2016 11:51 am
Post
by ctyler2621 » Tue Aug 09, 2016 12:00 pm
Graph Display Selection_025.png (13.8 KiB) Viewed 928 times
Here is the gist of the problem. The graph is for negative numbers, the poller is getting the correct values as evidenced in the log below...
Code: Select all
08/09/2016 11:30:10 AM - SPINE: Poller[0] Host[128] DS[1954] SNMP: v1: 172.22.50.166, dsname: ubnt_staSignal, oid: .1.3.6.1.4.1.41112.1.4.7.1.3.1.104.114.81.12.97.59, value: -54
08/09/2016 11:30:10 AM - SPINE: Poller[0] Host[128] DS[1953] SNMP: v1: 172.22.50.166, dsname: ubnt_noiseFloor, oid: .1.3.6.1.4.1.41112.1.4.7.1.4.1.104.114.81.12.97.59, value: -98
However the graph starts with a value of zero, only for the first result and then no results are shown at all. Here is the config...
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='SM - RF Signal' \
--base='1000' \
--height='120' \
--width='800' \
--alt-autoscale-max \
--lower-limit='-100' \
--vertical-label='Decibels' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/sm_ubnt_stasignal_1954.rrd':'ubnt_staSignal':AVERAGE \
DEF:b='/usr/share/cacti/rra/sm_ubnt_noisefloor_1953.rrd':'ubnt_noiseFloor':AVERAGE \
LINE1:a#00CF00FF:'Signal' \
GPRINT:a:LAST:' Current\:%8.0lf' \
GPRINT:a:AVERAGE:'Average\:%8.0lf' \
GPRINT:a:MAX:'Maximum\:%8.0lf\n' \
LINE1:b#FF0000FF:'Noise Floor' \
GPRINT:b:LAST:'Current\:%8.0lf' \
GPRINT:b:AVERAGE:'Average\:%8.0lf' \
GPRINT:b:MAX:'Maximum\:%8.0lf\n' \
HRULE:-80#0000FFFF:'Threshold'
The HRULE with a value of -80 displays fine on the graph. The scale on the left shows 0 to -100 as you would expect. Any assistance is appreciated.
opticadam
Posts: 2 Joined: Fri Sep 02, 2016 11:47 am
Post
by opticadam » Fri Sep 02, 2016 11:53 am
I ran into a very similar issue trying to graph optical power levels. I found the issue with the data template. I changed the minimum value to -50. I then deleted and recreated the graph creating a new RRD file.
Hope this helps.
ctyler2621
Posts: 6 Joined: Tue Aug 09, 2016 11:51 am
Post
by ctyler2621 » Fri Sep 02, 2016 11:59 am
Unfortunately, the graph template has a value of -100 already and I have deleted and re-created the graphs since setting that up. Thanks for trying to help, it is appreciated.
opticadam
Posts: 2 Joined: Fri Sep 02, 2016 11:47 am
Post
by opticadam » Fri Sep 02, 2016 12:06 pm
Check the data template instead of the graph template. The is a minimum value on both templates.
Users browsing this forum: No registered users and 0 guests