I can not create a grap

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

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

Post by BSOD2600 »

Alright, so back to following http://docs.cacti.net/node/283
litass
Posts: 25
Joined: Tue Oct 09, 2007 7:46 am

Post by litass »

hi, i follow the instruction to debug NaN.

Code: Select all

rrdtool fetch <rrd file> AVERAGE
When i perform above command, i get NaN return, i don't know how to continue the rest of commands.

What is this all about ?

and check the ds[...].min and ds[...].max entries, e.g.
Code:
ds[loss].min = 0.0000000000e+00
ds[loss].max = 1.0000000000e+02


In this example, MINIMUM = 0 and MAXIMUM = 100. For a ds.[...].type=GAUGE verify, that e.g. the number returned by the script does not exceed ds[...].MAX (same holds for MINIMUM, respectively).

If you run into this, please do not only update the data source definition within the Data Template, but perform a
Code:
rrdtool tune <rrd file> --maximum <ds-name>:<new ds maximum>


for all existing rrd files belonging to that Data Template.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

litass wrote:When i perform above command, i get NaN return
That means cacti isn't getting data or updating the rrd files.
litass wrote: i don't know how to continue the rest of commands.
Why not? While the specific examples are for linux, they are really close to the ones you use on Windows.
litass
Posts: 25
Joined: Tue Oct 09, 2007 7:46 am

Post by litass »

BSOD2600,

Code: Select all

10/17/2007 04:46:07 AM - CMDPHP: Poller[0] Host[11] DS[21] WARNING: Result from SNMP not valid. Partial Result:No Such Instance cur
10/17/2007 04:46:07 AM - CMDPHP: Poller[0] Host[11] DS[21] SNMP: v2: 10.171.0.2, dsname: avgPowerLevel, oid: 1.3.6.1.4.1.161.19.3.1.4.1.34, output: U 
what is the error ? I tried to create a templete to capture my canopy radio of power level http://motorola.canopywireless.com/supp ... PowerLevel
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Just as the error states, the OID .1.3.6.1.4.1.161.19.3.1.4.1.34 is not valid. Manually snmpwalk it yourself and see.
litass
Posts: 25
Joined: Tue Oct 09, 2007 7:46 am

Post by litass »

Thanks.

I can get the reply as :
C:\>snmpget -v2c -c Canopy 10.170.2.9 .1.3.6.1.4.1.161.19.3.1.4.1.34.2
SNMPv2-SMI::enterprises.161.19.3.1.4.1.34.2 = STRING: "-49"
from CActi log:
10/17/2007 10:06:08 AM - CMDPHP: Poller[0] Host[20] DS[48] SNMP: v2: 10.170.2.9, dsname: dbm, oid: .1.3.6.1.4.1.161.19.3.1.4.1.34.2, output: -49
my graph isn't NaN, but is 0 value, can guide?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Who ever created the template, didn't do a good job setting the min/max values. You need to edit the data template and make sure the min value is set to -100. Then edit the graph template and set its min to -100 (turn on auto scale). Lastly, you need to use rrdtool tune, and change the min size of the data field (or delete the file so cacti recreates it).
litass
Posts: 25
Joined: Tue Oct 09, 2007 7:46 am

Post by litass »

Thanks BSOD2600 very much.

I get my graphs working properly now. Thanks for the support these few days. :D :D
litass
Posts: 25
Joined: Tue Oct 09, 2007 7:46 am

Post by litass »

Hi BSOD2600, sorry for trouble u again.

I've tried to import a scripts & templates for capture Canopy Temperature, but failed.

This is my output:
10/18/2007 04:44:05 AM - CMDPHP: Poller[0] Host[28] DS[77] CMD: perl C:/Inetpub/wwwroot/cacti/scripts/getCanopyApStats.pl 10.170.2.13 Canopy tempC, output: U
10/18/2007 04:44:05 AM - CMDPHP: Poller[0] Host[28] DS[77] WARNING: Result from CMD not valid. Partial Result:
C:\>snmpwalk -v2c -c Canopy 10.170.2.13 .1.3.6.1.4.1.161.19.3.3.1.5.0
SNMPv2-SMI::enterprises.161.19.3.3.1.5.0 = STRING: "54&deg;C/128&deg;F"
Can I simply create template without scripts?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You really should be posting the problem in the thread where you got this script from....

No, you don't have to use a perl script -- it can be anything. Since the Canopy Temperature device poorly represents the temperature (should separate the F and C into their own OID) as a String, instead of gauge, one must use a script to properly parse it out.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests