[SOLVED] Apache stats. NaN only on waiting threads

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

Moderators: Developers, Moderators

Post Reply
nakom
Posts: 3
Joined: Fri Sep 25, 2015 6:07 am

[SOLVED] Apache stats. NaN only on waiting threads

Post by nakom »

Hi forum, does anyone know what I'm doing wrong here?
as you can see from the picture the value of the waiting threads is NaN, all the other ones work fine.
if I run this command:
sudo -u cactiuser php /var/www/html/scripts/ss_apache_stats.php prod-web1 threads
thread_W:29 threadS:0 threadR:0 threadW:1 threadK:5 threadD:0 threadC:1 threadL:0 threadG:0 threadI:0 thread_O:964
it shows the correct value
step is set to 60 and heartbeat to 120

other info:
rrdtool fetch /var/www/html/rra/prod-web1_threads_499.rrd AVERAGE | tail
1443178380: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 1.3400000000e+01 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 1.9000000000e+00 1.0000000000e+00
1443178440: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 1.0266666667e+01 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 1.3333333333e-01 1.0000000000e+00
1443178500: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 2.0266666667e+01 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 9.3333333333e-01 1.9333333333e+00
1443178560: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 9.8000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 1.0000000000e+00 3.8666666667e+00
1443178620: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 1.8500000000e+01 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 1.0000000000e+00 2.1000000000e+00
1443178680: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 4.0666666667e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 6.6666666667e-02 2.9333333333e+00
1443178740: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 9.5333333333e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 2.0666666667e+00
1443178800: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 1.4666666667e+01 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 9.3333333333e+00 2.9333333333e+00
1443178860: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 5.6666666667e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 3.4666666667e+00 1.1333333333e+00
1443178920: 0.0000000000e+00 -nan 0.0000000000e+00 0.0000000000e+00 5.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 7.6666666667e+00 1.9333333333e+00

rrdtool info /var/www/html/rra/prod-web1_threads_499.rrd
filename = "/var/www/html/rra/prod-web1_threads_499.rrd"
rrd_version = "0003"
step = 60
last_update = 1443182464
ds[threadS].type = "GAUGE"
ds[threadS].minimal_heartbeat = 120
ds[threadS].min = 0.0000000000e+00
ds[threadS].max = 5.0000000000e+02
ds[threadS].last_ds = "0"
ds[threadS].value = 0.0000000000e+00
ds[threadS].unknown_sec = 0
ds[thread_W].type = "GAUGE"
ds[thread_W].minimal_heartbeat = 120
ds[thread_W].min = 0.0000000000e+00
ds[thread_W].max = 5.0000000000e+02
ds[thread_W].last_ds = "U"
ds[thread_W].value = NaN
ds[thread_W].unknown_sec = 4
ds[threadR].type = "GAUGE"
ds[threadR].minimal_heartbeat = 120
ds[threadR].min = 0.0000000000e+00
ds[threadR].max = 5.0000000000e+02
ds[threadR].last_ds = "0"
ds[threadR].value = 0.0000000000e+00
ds[threadR].unknown_sec = 0
ds[threadL].type = "GAUGE"
ds[threadL].minimal_heartbeat = 120
ds[threadL].min = 0.0000000000e+00
ds[threadL].max = 5.0000000000e+02
ds[threadL].last_ds = "0"
ds[threadL].value = 0.0000000000e+00
ds[threadL].unknown_sec = 0
ds[threadK].type = "GAUGE"
ds[threadK].minimal_heartbeat = 120
ds[threadK].min = 0.0000000000e+00
ds[threadK].max = 5.0000000000e+02
ds[threadK].last_ds = "9"
ds[threadK].value = 3.6000000000e+01
ds[threadK].unknown_sec = 0
ds[threadI].type = "GAUGE"
ds[threadI].minimal_heartbeat = 120
ds[threadI].min = 0.0000000000e+00
ds[threadI].max = 5.0000000000e+02
ds[threadI].last_ds = "0"
ds[threadI].value = 0.0000000000e+00
ds[threadI].unknown_sec = 0
ds[threadG].type = "GAUGE"
ds[threadG].minimal_heartbeat = 120
ds[threadG].min = 0.0000000000e+00
ds[threadG].max = 5.0000000000e+02
ds[threadG].last_ds = "0"
ds[threadG].value = 0.0000000000e+00
ds[threadG].unknown_sec = 0
ds[threadD].type = "GAUGE"
ds[threadD].minimal_heartbeat = 120
ds[threadD].min = 0.0000000000e+00
ds[threadD].max = 5.0000000000e+02
ds[threadD].last_ds = "0"
ds[threadD].value = 0.0000000000e+00
ds[threadD].unknown_sec = 0
ds[threadC].type = "GAUGE"
ds[threadC].minimal_heartbeat = 120
ds[threadC].min = 0.0000000000e+00
ds[threadC].max = 5.0000000000e+02
ds[threadC].last_ds = "2"
ds[threadC].value = 8.0000000000e+00
ds[threadC].unknown_sec = 0
ds[threadW].type = "GAUGE"
ds[threadW].minimal_heartbeat = 120
ds[threadW].min = 0.0000000000e+00
ds[threadW].max = 5.0000000000e+02
ds[threadW].last_ds = "2"
ds[threadW].value = 8.0000000000e+00
ds[threadW].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 10080
rra[0].cur_row = 483
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[0].cdp_prep[6].value = NaN
rra[0].cdp_prep[6].unknown_datapoints = 0
rra[0].cdp_prep[7].value = NaN
rra[0].cdp_prep[7].unknown_datapoints = 0
rra[0].cdp_prep[8].value = NaN
rra[0].cdp_prep[8].unknown_datapoints = 0
rra[0].cdp_prep[9].value = NaN
rra[0].cdp_prep[9].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 25920
rra[1].cur_row = 25447
rra[1].pdp_per_row = 5
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = NaN
rra[1].cdp_prep[1].unknown_datapoints = 1
rra[1].cdp_prep[2].value = 0.0000000000e+00
rra[1].cdp_prep[2].unknown_datapoints = 0
rra[1].cdp_prep[3].value = 0.0000000000e+00
rra[1].cdp_prep[3].unknown_datapoints = 0
rra[1].cdp_prep[4].value = 9.2000000000e+00
rra[1].cdp_prep[4].unknown_datapoints = 0
rra[1].cdp_prep[5].value = 0.0000000000e+00
rra[1].cdp_prep[5].unknown_datapoints = 0
rra[1].cdp_prep[6].value = 0.0000000000e+00
rra[1].cdp_prep[6].unknown_datapoints = 0
rra[1].cdp_prep[7].value = 0.0000000000e+00
rra[1].cdp_prep[7].unknown_datapoints = 0
rra[1].cdp_prep[8].value = 2.1333333333e+00
rra[1].cdp_prep[8].unknown_datapoints = 0
rra[1].cdp_prep[9].value = 2.0000000000e+00
rra[1].cdp_prep[9].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 9000
rra[2].cur_row = 53
rra[2].pdp_per_row = 30
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 0.0000000000e+00
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = NaN
rra[2].cdp_prep[1].unknown_datapoints = 1
rra[2].cdp_prep[2].value = 0.0000000000e+00
rra[2].cdp_prep[2].unknown_datapoints = 0
rra[2].cdp_prep[3].value = 0.0000000000e+00
rra[2].cdp_prep[3].unknown_datapoints = 0
rra[2].cdp_prep[4].value = 9.2000000000e+00
rra[2].cdp_prep[4].unknown_datapoints = 0
rra[2].cdp_prep[5].value = 0.0000000000e+00
rra[2].cdp_prep[5].unknown_datapoints = 0
rra[2].cdp_prep[6].value = 0.0000000000e+00
rra[2].cdp_prep[6].unknown_datapoints = 0
rra[2].cdp_prep[7].value = 0.0000000000e+00
rra[2].cdp_prep[7].unknown_datapoints = 0
rra[2].cdp_prep[8].value = 2.1333333333e+00
rra[2].cdp_prep[8].unknown_datapoints = 0
rra[2].cdp_prep[9].value = 2.0000000000e+00
rra[2].cdp_prep[9].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 2250
rra[3].cur_row = 1129
rra[3].pdp_per_row = 120
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 0.0000000000e+00
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = NaN
rra[3].cdp_prep[1].unknown_datapoints = 1
rra[3].cdp_prep[2].value = 0.0000000000e+00
rra[3].cdp_prep[2].unknown_datapoints = 0
rra[3].cdp_prep[3].value = 0.0000000000e+00
rra[3].cdp_prep[3].unknown_datapoints = 0
rra[3].cdp_prep[4].value = 9.2000000000e+00
rra[3].cdp_prep[4].unknown_datapoints = 0
rra[3].cdp_prep[5].value = 0.0000000000e+00
rra[3].cdp_prep[5].unknown_datapoints = 0
rra[3].cdp_prep[6].value = 0.0000000000e+00
rra[3].cdp_prep[6].unknown_datapoints = 0
rra[3].cdp_prep[7].value = 0.0000000000e+00
rra[3].cdp_prep[7].unknown_datapoints = 0
rra[3].cdp_prep[8].value = 2.1333333333e+00
rra[3].cdp_prep[8].unknown_datapoints = 0
rra[3].cdp_prep[9].value = 2.0000000000e+00
rra[3].cdp_prep[9].unknown_datapoints = 0
rra[4].cf = "AVERAGE"
rra[4].rows = 797
rra[4].cur_row = 632
rra[4].pdp_per_row = 1440
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = 0.0000000000e+00
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 721
rra[4].cdp_prep[2].value = 1.2966666667e+01
rra[4].cdp_prep[2].unknown_datapoints = 0
rra[4].cdp_prep[3].value = 0.0000000000e+00
rra[4].cdp_prep[3].unknown_datapoints = 0
rra[4].cdp_prep[4].value = 6.1426666667e+03
rra[4].cdp_prep[4].unknown_datapoints = 0
rra[4].cdp_prep[5].value = 0.0000000000e+00
rra[4].cdp_prep[5].unknown_datapoints = 0
rra[4].cdp_prep[6].value = 0.0000000000e+00
rra[4].cdp_prep[6].unknown_datapoints = 0
rra[4].cdp_prep[7].value = 0.0000000000e+00
rra[4].cdp_prep[7].unknown_datapoints = 0
rra[4].cdp_prep[8].value = 1.8099666667e+03
rra[4].cdp_prep[8].unknown_datapoints = 0
rra[4].cdp_prep[9].value = 1.2668166667e+03
rra[4].cdp_prep[9].unknown_datapoints = 0
Attachments
cacti.png
cacti.png (45.3 KiB) Viewed 627 times
Last edited by nakom on Tue Sep 29, 2015 8:52 am, edited 1 time in total.
nakom
Posts: 3
Joined: Fri Sep 25, 2015 6:07 am

Re: Apache stats. NaN only on waiting threads

Post by nakom »

anyone?
nakom
Posts: 3
Joined: Fri Sep 25, 2015 6:07 am

Re: [SOLVED] Apache stats. NaN only on waiting threads

Post by nakom »

turned out to be caused by this bug http://bugs.cacti.net/view.php?id=2599
After updating to 0.8.8f all is working properly.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests