Karlnet Wireless Levels = NaN

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

Moderators: Developers, Moderators

Post Reply
speedracer05
Posts: 4
Joined: Wed Feb 18, 2004 6:59 pm

Karlnet Wireless Levels = NaN

Post by speedracer05 »

Hello,

I am having difficulties getting the wireless levels for my Karlnet's graphing. It appears that the data is being pulled from the radio, but not being displayed (all NaN's). Here is what my RRD output looks like:

/var/www/bin/rrdtool graph - \
--imgformat=PNG \
--start=1133386793 \
--end=1133473193 \
--title="mydevice - Wireless Levels (my_su)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
COMMENT:"From 2005/11/30 14:39:53 To 2005/12/01 14:39:53\c" \
COMMENT:" \n" \
--vertical-label="percent" \
DEF:a="/var/www/htdocs/cacti/rra/mydevice_wrls_signal_557.rrd":wrls_signal:AVERAGE \
DEF:b="/var/www/htdocs/cacti/rra/mydevice_wrls_noise_556.rrd":wrls_noise:AVERAGE \
CDEF:cdefa=a,2,/,-95,+ \
CDEF:cdefe=b,2,/,-95,+ \
AREA:cdefa#F51D30:"Signal Level" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:cdefe#FFF200:"Noise Level" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"

I followed the instructions for graphing signal noise; found here:

http://forums.cacti.net/about4149.html& ... ess+levels

When enabling debug mode, I do not see any errors.

Is this a problem with my upper and lower limits? If so, could anyone shed some light on this subject (the correct upper and lower limits)?

Cacti Version 0.8.6g (patched)

Thank you.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) when you look in the debug, did cacti collect any data for it?
2) Look in your rrd file, does it contain any recent data (rrdtool dump filename.rrd > filename.xml)
speedracer05
Posts: 4
Joined: Wed Feb 18, 2004 6:59 pm

Post by speedracer05 »

Here is the debug output (IP's changed):

12/02/2005 06:00:25 AM - CMDPHP: Poller[0] Host[24] DS[556] SNMP: v1: 1.1.1.1, dsname: wrls_noise, oid: .1.3.6.1.4.1.762
.2.5.2.1.4.2, output: 3560916
12/02/2005 06:00:25 AM - CMDPHP: Poller[0] Host[24] DS[557] SNMP: v1: 1.1.1.1, dsname: wrls_signal, oid: .1.3.6.1.4.1.76
2.2.5.2.1.4.2, output: 3560916
12/02/2005 06:00:25 AM - CMDPHP: Poller[0] Host[24] DS[558] SNMP: v1: 1.1.1.1, dsname: wrls_noise, oid: .1.3.6.1.4.1.762
.2.5.2.1.4.3, output: 827299
12/02/2005 06:00:25 AM - CMDPHP: Poller[0] Host[24] DS[559] SNMP: v1: 1.1.1.1, dsname: wrls_signal, oid: .1.3.6.1.4.1.76
2.2.5.2.1.4.3, output: 827299
12/02/2005 06:00:25 AM - CMDPHP: Poller[0] Host[24] DS[560] SNMP: v1: 1.1.1.1, dsname: wrls_noise, oid: .1.3.6.1.4.1.762
.2.5.2.1.4.4, output: 1723549
12/02/2005 06:00:25 AM - CMDPHP: Poller[0] Host[24] DS[561] SNMP: v1: 1.1.1.1, dsname: wrls_signal, oid: .1.3.6.1.4.1.76
2.2.5.2.1.4.4, output: 1723549
12/02/2005 06:00:25 AM - CMDPHP: Poller[0] Host[24] DS[554] SNMP: v1: 1.1.1.1, dsname: wrls_noise, oid: .1.3.6.1.4.1.762
.2.5.2.1.4.1, output: 1802410
12/02/2005 06:00:25 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
12/02/2005 06:00:25 AM - CMDPHP: Poller[0] Time: 23.6611 s, Theads: N/A, Hosts: 16
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_noi
se_554.rrd --template wrls_noise 1133528401:1802410
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_sig
nal_561.rrd --template wrls_signal 1133528401:1723549
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_noi
se_560.rrd --template wrls_noise 1133528401:1723549
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_sig
nal_559.rrd --template wrls_signal 1133528401:827299
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_noi
se_558.rrd --template wrls_noise 1133528401:827299
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_sig
nal_557.rrd --template wrls_signal 1133528401:3560916
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_noi
se_556.rrd --template wrls_noise 1133528401:3560916
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_sig
nal_555.rrd --template wrls_signal 1133528401:1802410
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_noi
se_562.rrd --template wrls_noise 1133528401:1308353
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_traffic_
in_570.rrd --template traffic_in:traffic_out 1133528401:0:0
12/02/2005 06:00:25 AM - POLLER: Poller[0] CACTI2RRD: /var/www/bin/rrdtool update /var/www/htdocs/cacti/rra/mydevice_wrls_sig
nal_563.rrd --template wrls_signal 1133528401:1308353

It appears that there is data for the wrls_signal.

When I run "rrdtool dump /var/www/htdocs/cacti/rra/mydevice_wrls_sig
nal_563.rrd > mydevice.xml", I see all NaN's:

<!-- 2005-12-02 05:45:00 MST / 1133527500 --> <row><v> NaN </v></row>
<!-- 2005-12-02 05:50:00 MST / 1133527800 --> <row><v> NaN </v></row>
<!-- 2005-12-02 05:55:00 MST / 1133528100 --> <row><v> NaN </v></row>
<!-- 2005-12-02 06:00:00 MST / 1133528400 --> <row><v> NaN </v></row>
<!-- 2005-12-02 06:05:00 MST / 1133528700 --> <row><v> NaN </v></row>

Thanks for your help.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ok, you're part way there.

Look at the date/time those mydevice_wrls rrd files were last updated. Are they being updated every 5 minutes? If not, then you have a permission problem. If they are, then there is something misconfigured with your data template and the max/min values. Do a rrdtool info filename.rrd and post the contents... this will show what the max/min values set in it.
speedracer05
Posts: 4
Joined: Wed Feb 18, 2004 6:59 pm

Post by speedracer05 »

Yes, they are being updated every five minutes. I have the traffic graphing for the Karlnet's; this problem only occurs when graphing the wireless levels.

Here's the output:

rrdtool info mydevice_wrls_signal_567.rrd

rrd_version = "0001"
step = 300
last_update = 1133583302
ds[wrls_signal].type = "GAUGE"
ds[wrls_signal].minimal_heartbeat = 600
ds[wrls_signal].min = 0.0000000000e+00
ds[wrls_signal].max = 1.0000000000e+02
ds[wrls_signal].last_ds = "UNKN"
ds[wrls_signal].value = 0.0000000000e+00
ds[wrls_signal].unknown_sec = 2
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 3
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 3
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 51
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 3
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 3
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = NaN
rra[7].cdp_prep[0].unknown_datapoints = 51

Thanks for the help.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Just as I suspected, the problem is with your max value in the rrd file. You've currently got it set to 100 but your device returned something as high as 827299. Change the max in cacti AND the rrd file to something like 1000000.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests