parameter not represent a number

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

Moderators: Developers, Moderators

magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

parameter not represent a number

Post by magikk »

Hello,

i don't succeed to view my CPU usage graph.The error is here:

Code: Select all

RRDTool Command:

/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='1er_equipement - CPU Usage' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='percent' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
AREA:#FF0000FF:"CPU Usage"  \
GPRINT::LAST:"Current\:%8.0lf"  \
GPRINT::AVERAGE:"Average\:%8.0lf"  \
GPRINT::MAX:"Maximum\:%8.0lf\n" 

RRDTool Says:

ERROR: parameter '#FF0000FF' does not represent a number in line AREA:#FF0000FF:CPU Usage
I think you have already answered here:
http://forums.cacti.net/viewtopic.php? ... A#p231952
I don't think to understand well ...
Edit the graph template and select the last graph item. Select the correct data source item and save
R.
In graph templates,at the top i have "Cisco CPU Usage" , i click on it.
Then in "Graph Template Items [edit: Cisco - CPU Usage]" i have 4 items.And....?
Graph Item Data Source Graph Item Type CF Type Item Color
Item # 1 (5min_cpu): CPU Usage AREA AVERAGE FF0000
Item # 2 (5min_cpu): Current: GPRINT LAST
Item # 3 (5min_cpu): Average: GPRINT AVERAGE
Item # 4 (5min_cpu): Maximum:<HR> GPRINT MAX



Graph Item Inputs Add
Name
CPU Usage Data Source
Legend Color
Thank you
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: parameter not represent a number

Post by BSOD2600 »

screenshots of the graph management and graph template screen please.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

Here is the image
Attachments
rrrrrGIF.GIF
rrrrrGIF.GIF (22.32 KiB) Viewed 2964 times
Last edited by magikk on Wed Jan 09, 2013 6:59 pm, edited 1 time in total.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

and:
Last edited by magikk on Wed Jan 09, 2013 7:00 pm, edited 1 time in total.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

and:
Attachments
pollr.GIF
pollr.GIF (30.35 KiB) Viewed 2964 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: parameter not represent a number

Post by gandalf »

For the last screenshot, we need the upper part. I need to see the reference to a valid data source
R.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

Sorry, i don't think to understand exactly what you want,but the bottom screen is the exact continuation of the top one.
(If i click on the DataSource link , i have nothing concerning CPU..)




PS:
Just for information, i have deleted a few .rrd files (with cpu in their name) ,because i thought they were in double.I hope i have done nothing wrong..
Here is the content of my /var/www/html/cacti/rra directory.

Code: Select all

1er_equipement_5min_cpu_29.rrd     1er_equipement_ping_22.rrd
1er_equipement_cpu_nice_32.rrd     1er_equipement_ping_9.rrd
1er_equipement_cpu_system_33.rrd   1er_equipement_proc_12.rrd
1er_equipement_cpu_user_34.rrd     1er_equipement_traffic_in_22.rrd
1er_equipement_hdd_free_14.rrd     1er_equipement_traffic_in_23.rrd
1er_equipement_hdd_free_15.rrd     1er_equipement_traffic_in_24.rrd
1er_equipement_hdd_free_16.rrd     1er_equipement_traffic_in_25.rrd
1er_equipement_load_15min_20.rrd   1er_equipement_traffic_in_26.rrd
1er_equipement_load_1min_10.rrd    1er_equipement_traffic_in_27.rrd
1er_equipement_load_1min_19.rrd    1er_equipement_traffic_in_30.rrd
1er_equipement_load_5min_21.rrd    1er_equipement_traffic_in_31.rrd
1er_equipement_mem_buffers_16.rrd  1er_equipement_users_11.rrd
1er_equipement_mem_buffers_8.rrd   localhost_load_1min_5.rrd
1er_equipement_mem_swap_17.rrd     localhost_mem_buffers_3.rrd
1er_equipement_mem_swap_9.rrd      localhost_mem_swap_4.rrd
1er_equipement_ping_10.rrd         localhost_proc_7.rrd
1er_equipement_ping_11.rrd         localhost_users_6.rrd
1er_equipement_ping_13.rrd

Attachments
dataSourceGIF.GIF
dataSourceGIF.GIF (6.93 KiB) Viewed 2954 times
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

I just added a 1erEquipement-5min-cpu in my dataSources , and added it to my graph Tree (and deleted the last one), and now i have again a CPU usage graph that is void.
So i need to follow the debugging procedure i guess.
That's why i check my cacti log file.
I find a :

Code: Select all

01/10/2013 12:55:02 PM - CMDPHP: Poller[0] Host[2] DS[35] WARNING: Result from SNMP not valid. Partial Result: U
01/10/2013 12:55:02 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.0.253', and OID:'.1.3.6.1.4.1.9.2.1.58.0' 
....but i don't know what to do with that OID.How can i know to what device he belongs to?
I tried to use the snmpget or snmpwalk command but usually that answered me that localhost was unreacheable...
If i try:

Code: Select all


snmpget -c cacti -v 2c 192.168.0.253 .1.3.6.1.4.1.9.2.1.58.0
I have: (192.168.0.253 is not the localhost).

Code: Select all

SNMPv2-SMI::enterprises.9.2.1.58.0 = No Such Object available on this agent at this OID

**************
What i don't understand also is if i have to run this command or not (from the debugging tutorial).All that i can say is that i am using root privileges for the shell and admin user for Cacti ...
Run the following command to cure this problem

chown cactiuser:cactiuser *.rrd
*************

Now my 5-min-cpu in debug mode is:

Code: Select all

Data Source Debug

/bin/rrdtool create \
/usr/share/cacti/rra/1er_equipement_5min_cpu_35.rrd \
--step 300  \
DS:5min_cpu:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
And i have now (for 5 min cpu) in /var/www/html/cacti/rra directory:

Code: Select all

1er_equipement_5min_cpu_35.rrd 
(I have deleted : 1er_equipement_5min_cpu_29.rrd)

My 1er_equipement_5min_cpu_35.rrd :
Attachments
ecran2.GIF
ecran2.GIF (41.8 KiB) Viewed 2951 times
Last edited by magikk on Thu Jan 10, 2013 11:23 am, edited 1 time in total.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

Code: Select all

rrdtool info 1er_equipement_5min_cpu_35.rrd
The output:

Code: Select all

filename = "1er_equipement_5min_cpu_35.rrd"
rrd_version = "0003"
step = 300
last_update = 1357833902
header_size = 1888
ds[5min_cpu].index = 0
ds[5min_cpu].type = "GAUGE"
ds[5min_cpu].minimal_heartbeat = 600
ds[5min_cpu].min = 0,0000000000e+00
ds[5min_cpu].max = 1,0000000000e+02
ds[5min_cpu].last_ds = "U"
ds[5min_cpu].value = NaN
ds[5min_cpu].unknown_sec = 2
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 72
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].cur_row = 451
rra[1].pdp_per_row = 6
rra[1].xff = 5,0000000000e-01
rra[1].cdp_prep[0].value = 0,0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 1
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 434
rra[2].pdp_per_row = 24
rra[2].xff = 5,0000000000e-01
rra[2].cdp_prep[0].value = 0,0000000000e+00
rra[2].cdp_prep[0].unknown_datapoints = 1
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 381
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 = 193
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].cur_row = 581
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].cur_row = 284
rra[5].pdp_per_row = 6
rra[5].xff = 5,0000000000e-01
rra[5].cdp_prep[0].value = -inf
rra[5].cdp_prep[0].unknown_datapoints = 1
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].cur_row = 483
rra[6].pdp_per_row = 24
rra[6].xff = 5,0000000000e-01
rra[6].cdp_prep[0].value = -inf
rra[6].cdp_prep[0].unknown_datapoints = 1
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].cur_row = 259
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 = 193

Maybe this could help ......
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: parameter not represent a number

Post by gandalf »

magikk wrote:Sorry, i don't think to understand exactly what you want,but the bottom screen is the exact continuation of the top one.
(If i click on the DataSource link , i have nothing concerning CPU..)
I'm sorry, my request was not exact. I need a screenshot of the AREA graph item (the first one). I expect NOT to find a related data source - this is the root cause, then.
R.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

Here it is..
Attachments
graphTemplateItem.GIF
graphTemplateItem.GIF (21.65 KiB) Viewed 2939 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: parameter not represent a number

Post by gandalf »

The output of
Posted: 2013 Jan Wed 09, 9:57 pm
and
Posted: 2013 Jan Thu 10, 12:06 pm
does not match. The last one at least matches the screenshot you've send last.
The first output usually refers to an issue that I had in mind when asking for the data source.
The last output is syntactically ok (no error message), but data is missing.
These are different issues, so please tell us which one to look at
R.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

My goal is to view hardware informations in a tree (cpu or ram ....) with snmp or netflow or whatever...I succeed it with localhost but not with the 192.168.0.253 device.
Now i have deleted The "CPU usage" graph from my "graph tree" and from my "graph management" because it wasn't working.
Then if i try again to add "Cisco CPU Usage" to my "Graph Management" with Host=1er_equipement(192.168.0.253) , i click on create , and because i am in debugging mode i have the screen that you see under this text.

Then i go to "Graph Tree" , i add (Graph>tree item value) : "1er_equipement-CPU Usage" (create).And the result is that in my graphs i don't have any "1er_equipement-CPU-Usage" graph.(This graph is just a link with nothing inside).
Attachments
CPUusag.GIF
CPUusag.GIF (23.41 KiB) Viewed 2928 times
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

Then i try with "Netware CPU Utilisation", i add it to the "Graph Management".This time for "CPU Utilisation data source" i try "1er_equipement-Memory-Free(mem_buffers)
(because if i leave at none i have the message :ERROR: parameter '#FF0000FF' does not represent a number in line AREA:#FF0000FF:CPU Utilization)
I click on "Save".
I add "Netware CPU Utilisation" to "tree item", (create).And .....
I visualize the graph : "CPU Utilisation for 1er equipement", but do i have succeed because if i select for instance "ping host" in "CPU usage data source", i have the same graph that my ping graph?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: parameter not represent a number

Post by gandalf »

Depending on the hardware you're polling at least one of those templates or both won't work.
They are able to monitor specific, device dependent OIDs that represent CPU usage for those types of devices only!

Some Cisco devices (there are so many of them) respond to the OID built into the Cisco CPU Usage template. But virtaully every other device in the world won't respond to this type of template.

As given by 2nd link of my sig, you are able to verify whether your target device responds to a given OID by issuing a specifc command from command line ... it's all explained at that link. Only when the target device is queried for the correct OID, it will respond with valid data.

So we have to check that first.

(and still: any graph debug that does not show at least one DEF statement won't work - it is broken)
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests