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

Re: parameter not represent a number

Post by magikk »

But how to know the oid?

i see your link ,
http://docs.cacti.net/manual:087:3a_ad ... a_queries
I tried (without understanding what i am doing)

Code: Select all

 snmpwalk -v2c -c  .1.3.6.1.2.1.2.1.0
IF-MIB::ifNumber.0 = INTEGER: 8

snmpwalk -v2c -c<community> <local_ip> .1.3.6.1.2.1.2.2.1.1.3
IF-MIB::ifIndex.3 = INTEGER: 3

snmpwalk -v2c -c<community> <local_ip> .1.3.6.1.2.1.2.2.1.2.3
IF-MIB::ifDescr.3 = STRING: Adaptive Security Appliance 'Inside' interface

snmpwalk -v2c -c<community> <local_ip> .1.3.6.1.2.1.2.2.1.3.3
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)

snmpwalk -v2c -c <community> <local_ip> .1.3.6.1.2.1.2.2.1.8.3
IF-MIB::ifOperStatus.3 = INTEGER: up(1)

snmpwalk -v2c -c <community> <local_ip> .1.3.6.1.2.1.2.2.1.10.3
IF-MIB::ifInOctets.3 = Counter32: 2442498343

 snmpwalk -v2c -c <community> <local_ip> .1.3.6.1.2.1.2.2.1.16.3
IF-MIB::ifOutOctets.3 = Counter32: 458877641

Am i in the right direction ?
Maybe this can help?
ftp://ftp.cisco.com/pub/mibs/supportli ... list.html
Last edited by magikk on Tue Jan 15, 2013 8:51 am, edited 2 times in total.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

Ok , in fact i am just beginning to understand how to manage Cacti i guess...
I was confused between : Data Sources,Graph Management,Graph Tree,Data Queries etc....
I am pretty sure that the problem is linked to CPU graph for the distant device (the cisco).
I said i had a link with nothing inside (for cpu) when seeing my trees , that was because i had deleted or i hadn't Data Source for the CPU graph.
That's why i now added in "Data Sources" a "CPU usage Nice" that i added to "1er_equipement - CPU Usage" and the result is this blank graph at the bottom of my post.

Then let's try to get more informations concerning "1er_equipement_cpu_nice_37.rrd" :

Code: Select all

 rrdtool info 1er_equipement_cpu_nice_37.rrd
filename = "1er_equipement_cpu_nice_37.rrd"
rrd_version = "0003"
step = 300
last_update = 1357998001
header_size = 1888
ds[cpu_nice].index = 0
ds[cpu_nice].type = "COUNTER"
ds[cpu_nice].minimal_heartbeat = 600
ds[cpu_nice].min = 0,0000000000e+00
ds[cpu_nice].max = 1,0000000000e+02
ds[cpu_nice].last_ds = "U"
ds[cpu_nice].value = NaN
ds[cpu_nice].unknown_sec = 1
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 284
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 = 612
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 = 2
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 144
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 = 20
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 90
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 = 164
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].cur_row = 156
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 = 67
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 = 2
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].cur_row = 113
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 = 20
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].cur_row = 58
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 = 164
The OID for "1er_equipement_cpu_usage_nice" :

SNMP Version: 2, Community: cacti, OID: .1.3.6.1.4.1.2021.11.51.0
RRD: /usr/share/cacti/rra/1er_equipement_cpu_nice_37.rrd

Then :

Code: Select all

snmpwalk -v2c -c cacti 192.168.0.253 .1.3.6.1.4.1.2021.11.51.0
UCD-SNMP-MIB::ssCpuRawNice.0 = No Such Object available on this agent at this OID
(but if i try with the others OID of poller cache item , that's working...)
Attachments
cpuUsageNice.GIF
cpuUsageNice.GIF (28.57 KiB) Viewed 1450 times
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

Concerning my logs:

Code: Select all

01/14/2013 03:50:01 PM - SYSTEM STATS: Time:0.2768 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:30 RRDsProcessed:21
01/14/2013 03:50:01 PM - CMDPHP: Poller[0] Host[2] DS[37] WARNING: Result from SNMP not valid. Partial Result: U
01/14/2013 03:50:01 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.0.253', and OID:'.1.3.6.1.4.1.2021.11.51.0'
01/14/2013 03:50:01 PM - CMDPHP: Poller[0] Host[2] DS[39] WARNING: Result from SNMP not valid. Partial Result: U
01/14/2013 03:50:01 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' 


#snmpget -v2c -c cacti 192.168.0.253 .1.3.6.1.4.1.2021.11.51.0
UCD-SNMP-MIB::ssCpuRawNice.0 = No Such Object available on this agent at this OID

snmpget -v2c -c cacti 192.168.0.253 .1.3.6.1.4.1.9.2.1.58.0
SNMPv2-SMI::enterprises.9.2.1.58.0 = No Such Object available on this agent at this OID

(And also... : but what does that mean?i tried with this one from template repository but i didn't succeed to view a graph from- ) :

Code: Select all

# snmpwalk -v2c -c cacti 192.168.0.253 1.3.6.1.4.1.9.9.109.1.1.1.1
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.1 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.3.1 = Gauge32: 4
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.3.2 = Gauge32: 4
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.4.1 = Gauge32: 4
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.4.2 = Gauge32: 4
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.5.1 = Gauge32: 4
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.5.2 = Gauge32: 4
Last edited by magikk on Tue Jan 15, 2013 6:21 am, edited 2 times in total.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

I was abused by the snmp informations.I thought it was a cisco router but he tells me that the device was a firewall?!?! (a cisco firewall with ram memory and cpu integrated).

If i understand well , the solution would be to recreate a customized template for this firewall cisco in the same way that thoses in templates repository?

Oh i see in template repo this one which is also a security device (asa=adaptative security appliance)
asa_55xx Cisco ASA 55xx Security Devices 0.8.7e yes cisco
...but i have 0.8.8 version and not 0.8.7
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:

Code: Select all

 snmpwalk -v2c -c<community> <local_ip> .1.3.6.1.2.1.2.2.1.2.3
IF-MIB::ifDescr.3 = STRING: Adaptive Security Appliance 'Inside' interface
We have a known issue when using ticks within specific strings.
R.
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:I was abused by the snmp informations.I thought it was a cisco router but he tells me that the device was a firewall?!?! (a cisco firewall with ram memory and cpu integrated).

If i understand well , the solution would be to recreate a customized template for this firewall cisco in the same way that thoses in templates repository?

Oh i see in template repo this one which is also a security device (asa=adaptative security appliance)
asa_55xx Cisco ASA 55xx Security Devices 0.8.7e yes cisco
...but i have 0.8.8 version and not 0.8.7
Using an old template in a newer Cacti should work (well, we had some bugs recently - but generally speaking it works). The other way round does not work
R.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

It doesn't seem to work better with this new template.With or without this template , this is the CPU graph that shows nothing.The others (on localhost and 1erEquipement) graphs are working.
"5 min CPU usage" is from asa and "CPU usage" isn't from asa.
Attachments
myGraphs.GIF
myGraphs.GIF (41.86 KiB) Viewed 1426 times
Last edited by magikk on Tue Jan 15, 2013 8:21 pm, edited 2 times in total.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

This one for instance is created from the Cisco ASA 5 minutes CPU Usage template .And even in my 1erEquipement device i change the Host template with "Cisco Asa".All the graphs are working except for CPU.
Attachments
5mnCPU.GIF
5mnCPU.GIF (31.24 KiB) Viewed 1426 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 »

It is important to know, that there is no such things as a "CPU Template" as a general resource.
Each and every vendor of equipment may or may not create a so-called "private MIB" to expose whatever data he wants. And he may use any OID he wants in his PRIVATE MIB.
That's why it is expected, that
- there are devices that expose a CPU OID while others don't
- each CPU OID is different from the next one

Well, to be honest, there is the so-called HOST-MIB. It is an optional MIB; nobody needs to implement this. E.g. many Linux systems are know to expose it but usually no network device uses this OID.

All in all it makes no sense to play with any know CPU template. It has to match your device, assuming that the device exposes such data

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

Re: parameter not represent a number

Post by magikk »

Thank you for your clear explanations but how i can resolve my problem? (to pay you for a remote intervention ? Ok you won't accept lol , let's be serious).

I understand , oid for 5 min cpu and cpu usage nice are public.
Attachments
PollerCache.GIF
PollerCache.GIF (32.08 KiB) Viewed 1415 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 »

magikk wrote:but how i can resolve my problem?
For which exact device do you want to have a CPU graph?
R.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

I want a CPU graph for the device : "1er_equipement" (192.168.0.253) , the cisco firewall.
Attachments
1erEqu.GIF
1erEqu.GIF (51.05 KiB) Viewed 1411 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 »

magikk wrote:I want a CPU graph for the device : "1er_equipement" (192.168.0.253) , the cisco firewall.
Then, please search for a template for that very firewall. In case you find it, import it and associate it with that host
R.
magikk
Cacti User
Posts: 57
Joined: Sun Dec 23, 2012 9:59 am

Re: parameter not represent a number

Post by magikk »

As you can see i have already done it and it is not working.That's why i think the problem does not come from the template . Probably something special with cpu.
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 »

Please run a manual snmpget, then, against the given OID: .1.3.6.1.4.1.9.2.1.58.0 like
snmpget -c ... -v 2c <hostname> .1.3.6.1.4.1.9.2.1.58.0
and post results
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests