Cacti + Bind = problem "NaN"

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

Moderators: Developers, Moderators

Post Reply
User avatar
Maillon
Posts: 16
Joined: Wed Jul 04, 2007 4:34 am
Location: Paris

Cacti + Bind = problem "NaN"

Post by Maillon »

Hello all ^^

i downloaded this link http://uversaconsulting.net/download/bi ... 1.0.tar.gz and i followed the file INSTALL. (step to step ^^)

When i go to the graphs' pages, i saw that Image

So, i have seen the properties of this graphs and there are this lines :

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1183542162 \
--end=1183628562 \
--title="Cerbere Bind - Bind9 Statistics - |query_b9stDomainName|" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2007/07/04 11\:42\:42 To 2007/07/05 11\:42\:42\c" \
COMMENT:" \n" \
--vertical-label="# Hits" \
--slope-mode \
DEF:a="/data/www/cacti/rra/cerbere_bind_bind9_referral_1072.rrd":bind9_success:AVERAGE \
DEF:b="/data/www/cacti/rra/cerbere_bind_bind9_referral_1072.rrd":bind9_failure:AVERAGE \
DEF:c="/data/www/cacti/rra/cerbere_bind_bind9_referral_1072.rrd":bind9_referral:AVERAGE \
DEF:d="/data/www/cacti/rra/cerbere_bind_bind9_referral_1072.rrd":bind9_nxrrset:AVERAGE \
DEF:e="/data/www/cacti/rra/cerbere_bind_bind9_referral_1072.rrd":bind9_nxdomain:AVERAGE \
DEF:f="/data/www/cacti/rra/cerbere_bind_bind9_referral_1072.rrd":bind9_recursion:AVERAGE \
AREA:a#0000FF:"Success" \
GPRINT:a:LAST:" Current\:%8.2lf%s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:a:MAX:"Maximum\:%8.2lf%s\n" \
...... etc ......

But the file cerbere_bind_bind9_referral_1072.rrd doesn't exist in /data/www/cacti/rra so i don't have statistics.

In the file stats.txt (created by bind9-stats-snmpd.pl), there are :

+++ Statistics Dump +++ (1183629001)
success 259841
referral 0
nxrrset 5376
nxdomain 51727
recursion 132839
failure 2294
success 0 0.0.127.in-addr.arpa inside
referral 0 0.0.127.in-addr.arpa inside
nxrrset 0 0.0.127.in-addr.arpa inside
nxdomain 0 0.0.127.in-addr.arpa inside
recursion 0 0.0.127.in-addr.arpa inside
failure 0 0.0.127.in-addr.arpa inside
success 107805 quotatis.net inside
referral 0 quotatis.net inside
nxrrset 3703 quotatis.net inside
nxdomain 11565 quotatis.net inside
recursion 0 quotatis.net inside
failure 0 quotatis.net inside
success 7468 1.168.192.in-addr.arpa inside
referral 0 1.168.192.in-addr.arpa inside
nxrrset 0 1.168.192.in-addr.arpa inside
nxdomain 60 1.168.192.in-addr.arpa inside
recursion 0 1.168.192.in-addr.arpa inside
failure 0 1.168.192.in-addr.arpa inside
--- Statistics Dump --- (1183629001)


Someone has any idea ?

ps : sorry for my poor english ^^

Thanks for your help ;-)
Last edited by Maillon on Fri Jul 06, 2007 7:25 am, edited 1 time in total.
User avatar
Maillon
Posts: 16
Joined: Wed Jul 04, 2007 4:34 am
Location: Paris

Post by Maillon »

Hi all ^^,

So i worked and now i have a graph ^^ which seems that :

Image


And the error :

Log File [Total Lines: 21 - All Items Shown]
07/05/2007 05:35:11 PM - SYSTEM STATS: Time:9.2354 Method:cmd.php Processes:5 Threads:N/A Hosts:16 HostsPerProcess:4 DataSources:260 RRDsProcessed:177
07/05/2007 05:35:08 PM - CMDPHP: Poller[0] Host[33] DS[1086] WARNING: Result from CMD not valid. Partial Result:

Have you any idea to help me ?

Thanks
User avatar
Maillon
Posts: 16
Joined: Wed Jul 04, 2007 4:34 am
Location: Paris

Post by Maillon »

When i run rrdtool info <file.rrd> i can see it :

Code: Select all

filename = "cerbere_bind_success_1095.rrd"
rrd_version = "0003"
step = 300
last_update = 1183733399
ds[success].type = "DERIVE"
ds[success].minimal_heartbeat = 600
ds[success].min = 0.0000000000e+00
ds[success].max = 1.0000000000e+04
ds[success].last_ds = "UNKN"
ds[success].value = 0.0000000000e+00
ds[success].unknown_sec = 299
ds[recursion].type = "DERIVE"
ds[recursion].minimal_heartbeat = 600
ds[recursion].min = 0.0000000000e+00
ds[recursion].max = 1.0000000000e+04
ds[recursion].last_ds = "UNKN"
....etc ...
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[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[0].cdp_prep[2].value = NaN
rra[0].cdp_prep[2].unknown_datapoints = 0
rra[0].cdp_prep[3].value = NaN
rra[0].cdp_prep[3].unknown_datapoints = 0
rra[0].cdp_prep[4].value = NaN
rra[0].cdp_prep[4].unknown_datapoints = 0
rra[0].cdp_prep[5].value = NaN
rra[0].cdp_prep[5].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
... etc ....
I tried to redefined ds[...]min (equal 1) and ds[...]max (equal 100) and i have the same result...

And when i run rrdtool fetch <file.rrd> AVERAGE, i have as result :

Code: Select all

1183730700: nan nan nan nan nan nan
1183731000: nan nan nan nan nan nan
1183731300: nan nan nan nan nan nan
1183731600: nan nan nan nan nan nan
1183731900: nan nan nan nan nan nan
1183732200: nan nan nan nan nan nan
1183732500: nan nan nan nan nan nan
1183732800: nan nan nan nan nan nan
1183733100: nan nan nan nan nan nan
1183733400: nan nan nan nan nan nan
1183733700: nan nan nan nan nan nan
1183734000: nan nan nan nan nan nan
1183734300: nan nan nan nan nan nan
Someone could help me ?

Thank you very much.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests