No datas in the graph

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
mohamed
Posts: 3
Joined: Thu Mar 23, 2006 3:25 am

No datas in the graph

Post by mohamed »

Dear colleague ,

I have always the problems to see the datas in the graph that I have configured in my cacti , please find the log concerning 2 different
SNMP oid for the same server (mms_gateway_1 ) , I can see the datas in the graph of cacti for the snmp_oid_880 but Not for the snmp_oid_886.
IT is strange because I have use dthe same templates and the same way to create the both graphs.Please find below the cacti.log fo the 2 different graphs , maybe it can help.

Can you please help me to fix this issue , thans a lot for your help





SNMP query for which I can see the datas ( the SNMP risponse from the remote server) in the graph.


03/22/2006 02:41:27 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/mms_gateway_1_snmp_oid_880.rrd --template snmp_oid 1143035101:121825

03/22/2006 02:47:18 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=-86400 --end=-300 --title="MMS Gateway 1 - FORWARD REQ IN" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="" --slope-mode DEF:a="/var/www/cacti/rra/mms_gateway_1_snmp_oid_880.rrd":snmp_oid:AVERAGE AREA:a#F51D30:"" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"

SNMP query for which I can NOT see the datas ( the SNMP risponse from the remote server) in the graph.


03/22/2006 02:41:27 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/mms_gateway_1_snmp_oid_886.rrd --template snmp_oid 1143035101:29698

03/22/2006 02:47:53 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=-86400 --end=-300 --title="MMS Gateway 1 -FORWARD REQ OUT" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="" --slope-mode DEF:a="/var/www/cacti/rra/mms_gateway_1_snmp_oid_886.rrd":snmp_oid:AVERAGE AREA:a#8D00BA:"" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Both queries seem to work. This can be deduced from the rrdtool update statement. There is valid data in both cases.
Assuming, that the poller runs even theses queries every 5 mins, please do

Code: Select all

rrdtool fetch <rrd file> AVERAGE
and post the last 10 lines to see, whether rrdtool update was successful
Reinhard
mohamed
Posts: 3
Joined: Thu Mar 23, 2006 3:25 am

Post by mohamed »

Hi Richard



Below the answers

We would need some more info:

- what OID is queried ?

1.3.6.1.4.1.18328.1.1.915.0

- would does an snmpwalk against this OID return?

./snmpwalk -c public -v 1 193.43.236.193:8161 1.3.6.1.4.1.18328.1.1.915.0
SNMPv2-SMI::enterprises.18328.1.1.915.0 = Counter32: 33402

- is this a GAUGE or a COUNTER?
GAUGE ( I have tested COUNTER too but without succes)

- what is the MAXIMUM defined for the failing data source?

1000000 ( I have tested other value but without succes)

- please perform an "rrdtool fetch <rrd file> AVERAGE" and post the last 10 lines of the outcome to see, whether data is stored and perhaps "only" graphing fails.

rrdtool fetch /var/www/cacti/rra/mms_gateway_1_snmp_oid_886.rrd AVERAGE
1143533100: nan
1143533400: nan
1143533700: nan
1143534000: nan
1143534300: nan
1143534600: nan
1143534900: nan
1143535200: nan
1143535500: nan
1143535800: nan
1143536100: nan
1143536400: nan
1143536700: nan
1143537000: nan
1143537300: nan
1143537600: nan
1143537900: nan
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

mohamed wrote:Hi Richard

Below the answers

We would need some more info:

- what OID is queried ?

1.3.6.1.4.1.18328.1.1.915.0

- would does an snmpwalk against this OID return?

./snmpwalk -c public -v 1 193.43.236.193:8161 1.3.6.1.4.1.18328.1.1.915.0
SNMPv2-SMI::enterprises.18328.1.1.915.0 = Counter32: 33402
Ah, you're using a non-standard SNMP port 8161. You did configure this when setting up the DEVICE you're polling? Are you getting a red SNMP error on the upper left corner of the page?
- is this a GAUGE or a COUNTER?
GAUGE ( I have tested COUNTER too but without succes)
I cannot confirm. The output clearly states this is a Counter32. Take care when changing the Data Template: This will NOT change existing rrd files. Either use "rrdtool tune" or delete and re-create the file.
- what is the MAXIMUM defined for the failing data source?

1000000 ( I have tested other value but without succes)
This seems to be ok
- please perform an "rrdtool fetch <rrd file> AVERAGE" and post the last 10 lines of the outcome to see, whether data is stored and perhaps "only" graphing fails.

rrdtool fetch /var/www/cacti/rra/mms_gateway_1_snmp_oid_886.rrd AVERAGE
1143533100: nan
1143533400: nan
1143533700: nan
1143534000: nan
1143534300: nan
1143534600: nan
1143534900: nan
1143535200: nan
1143535500: nan
1143535800: nan
1143536100: nan
1143536400: nan
1143536700: nan
1143537000: nan
1143537300: nan
1143537600: nan
1143537900: nan
Ok, so no data was stored.

To sum up: Please check the ds.type of the Data Template as stated above. When running the poller, please wait for two polling cycles and perform a "rrdtool info" of the rrd file and post the first 20 lines
Reinhard
mohamed
Posts: 3
Joined: Thu Mar 23, 2006 3:25 am

Post by mohamed »

i have created anew rrd file and run the command:


(root@DMZMON2)/var/www/cacti/rra# rrdtool info /var/www/cacti/rra/mms_gateway_2_snmp_oid_907.rrd AVERAGE
filename = "/var/www/cacti/rra/mms_gateway_2_snmp_oid_907.rrd"
rrd_version = "0003"
step = 300
last_update = 1143792901
ds[snmp_oid].type = "GAUGE"
ds[snmp_oid].minimal_heartbeat = 300
ds[snmp_oid].min = 0.0000000000e+00
ds[snmp_oid].max = 1.0000000000e+04
ds[snmp_oid].last_ds = "UNKN"
ds[snmp_oid].value = NaN
ds[snmp_oid].unknown_sec = 1
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 = 99
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 = 99
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

But you again set this to ds.type= GAUGE. As I mentioned above, from the snmpwalk it can be ssen that COUNTER is the correct ds.type.
You may change this using

Code: Select all

rrdtool tune <rrdfile> -d snmp_oid:COUNTER
Please run the poller for some polling cycles and post rrdtool fetch output like above
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests