Various issues with new hosts

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
starkers
Posts: 8
Joined: Thu Feb 07, 2013 3:48 am

Various issues with new hosts

Post by starkers »

Hi all, I'm running on CactiEZ 7, Cacti 0.8.8a, up until recently everything has been fine but after adding in a mass of new servers recently I've noticed that some of my new graphs no longer work.

Sometime recently (before this issue was encountered) I found my mysql log full of these (and lotsa dead graphs):
130225 15:02:17 [ERROR] /usr/libexec/mysqld: The table 'data_source_stats_hourly_cache' is full
... so I set this according to something I read here: max-heap-table-size = 64M

Apart from that, designing some templates and DS'es for my own stuff nothing major has changed (did a yum update at some point though)

Whats frustrating me is that all the existing graphs are fine, however when I add in a new host no matter what some of them just won't graph... In preview mode they are fine however I'm getting either nothing or complete nonsense (see screenshot, +1T physical RAM? lol ) The most important thing I use cacti for is thold alerts on disk usage.. however all my new machines can't graph certain ones anymore (using "SNMP - Get Mounted Partitions" as example)

Its also effecting other plugins/templates.. such as Advanced Ping and the fantastic net-snmpd memory usage (http://forums.cacti.net/about11376.html)..

My questions I are..
- why if I add a host do some of the graphs work?
- why would the broken ones work in preview mode?
- how can I come closer to finding where things are going wrong?

Your advice/help muchly appreciated!

See screenshots, of working and non-working graphs on a new host.. Here is the verbose query on "SNMP - Get Mounted Partitions"

Data Query Debug Information

Code: Select all

+ Running data query [1].
+ Found type = '6' [Script Query - Script Server].
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' not supported
+ Executing script for list of indexes '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.0.11.1 2:161:500:rocom:::::: 45 index' Index Count: 9
+ Found index: 1
+ Found index: 3
+ Found index: 6
+ Found index: 7
+ Found index: 10
+ Found index: 31
+ Found index: 35
+ Found index: 36
+ Found index: 37
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.0.11.1 2:161:500:rocom:::::: 45 query index'
+ Found item [hrStorageIndex='1'] index: 1
+ Found item [hrStorageIndex='3'] index: 3
+ Found item [hrStorageIndex='6'] index: 6
+ Found item [hrStorageIndex='7'] index: 7
+ Found item [hrStorageIndex='10'] index: 10
+ Found item [hrStorageIndex='31'] index: 31
+ Found item [hrStorageIndex='35'] index: 35
+ Found item [hrStorageIndex='36'] index: 36
+ Found item [hrStorageIndex='37'] index: 37
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.0.11.1 2:161:500:rocom:::::: 45 query description'
+ Found item [hrStorageDescr='Physical memory'] index: 1
+ Found item [hrStorageDescr='Virtual memory'] index: 3
+ Found item [hrStorageDescr='Memory buffers'] index: 6
+ Found item [hrStorageDescr='Cached memory'] index: 7
+ Found item [hrStorageDescr='Swap space'] index: 10
+ Found item [hrStorageDescr='/'] index: 31
+ Found item [hrStorageDescr='/dev/shm'] index: 35
+ Found item [hrStorageDescr='/boot'] index: 36
+ Found item [hrStorageDescr='/home'] index: 37
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.0.11.1 2:161:500:rocom:::::: 45 query sau'
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 1
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 3
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 6
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 7
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 10
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 31
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 35
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 36
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 37
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.0.11.1 2:161:500:rocom:::::: 45 query total'
+ Found item [hrStorageTotalCache='3917700'] index: 1
+ Found item [hrStorageTotalCache='10078076'] index: 3
+ Found item [hrStorageTotalCache='3917700'] index: 6
+ Found item [hrStorageTotalCache='3060636'] index: 7
+ Found item [hrStorageTotalCache='6160376'] index: 10
+ Found item [hrStorageTotalCache='32461211'] index: 31
+ Found item [hrStorageTotalCache='489712'] index: 35
+ Found item [hrStorageTotalCache='495844'] index: 36
+ Found item [hrStorageTotalCache='1020016'] index: 37
Attachments
Graphs perfectly in preview mode o_O
Graphs perfectly in preview mode o_O
Selection_011.png (23.09 KiB) Viewed 1180 times
Graphing normally
Graphing normally
Selection_009.png (36.94 KiB) Viewed 1180 times
Broken graphs, these graph perfectly in preview
Broken graphs, these graph perfectly in preview
Selection_008.png (129.52 KiB) Viewed 1180 times
starkers
Posts: 8
Joined: Thu Feb 07, 2013 3:48 am

Re: Various issues with new hosts

Post by starkers »

More data if it helps:

Code: Select all

[root@cacti cli]# rrdtool info /var/www/html/rra/brundle_hdd_total_2442.rrd 
filename = "/var/www/html/rra/brundle_hdd_total_2442.rrd"
rrd_version = "0003"
step = 60
last_update = 1362485473
ds[hdd_total].type = "GAUGE"
ds[hdd_total].minimal_heartbeat = 120
ds[hdd_total].min = 0.0000000000e+00
ds[hdd_total].max = NaN
ds[hdd_total].last_ds = "U"
ds[hdd_total].value = NaN
ds[hdd_total].unknown_sec = 13
ds[hdd_used].type = "GAUGE"
ds[hdd_used].minimal_heartbeat = 120
ds[hdd_used].min = 0.0000000000e+00
ds[hdd_used].max = NaN
ds[hdd_used].last_ds = "U"
ds[hdd_used].value = NaN
ds[hdd_used].unknown_sec = 13
ds[hdd_percent].type = "GAUGE"
ds[hdd_percent].minimal_heartbeat = 120
ds[hdd_percent].min = 0.0000000000e+00
ds[hdd_percent].max = 1.0000000000e+02
ds[hdd_percent].last_ds = "12.19"
ds[hdd_percent].value = 1.5847000000e+02
ds[hdd_percent].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 493
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[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].cur_row = 473
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 1.7649422782e+12
rra[1].cdp_prep[0].unknown_datapoints = 2
rra[1].cdp_prep[1].value = 4.0373949066e+10
rra[1].cdp_prep[1].unknown_datapoints = 2
rra[1].cdp_prep[2].value = 1.2190000000e+01
rra[1].cdp_prep[2].unknown_datapoints = 4
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 118
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 1.7649422782e+12
rra[2].cdp_prep[0].unknown_datapoints = 5
rra[2].cdp_prep[1].value = 4.0373949322e+10
rra[2].cdp_prep[1].unknown_datapoints = 7
rra[2].cdp_prep[2].value = 1.2190000000e+01
rra[2].cdp_prep[2].unknown_datapoints = 10
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 677
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 1.8621503470e+12
rra[3].cdp_prep[0].unknown_datapoints = 117
rra[3].cdp_prep[1].value = 3.1773964616e+12
rra[3].cdp_prep[1].unknown_datapoints = 125
rra[3].cdp_prep[2].value = 2.3804000000e+02
rra[3].cdp_prep[2].unknown_datapoints = 138
rra[4].cf = "MIN"
rra[4].rows = 600
rra[4].cur_row = 585
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[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[4].cdp_prep[2].value = NaN
rra[4].cdp_prep[2].unknown_datapoints = 0
rra[5].cf = "MIN"
rra[5].rows = 700
rra[5].cur_row = 482
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 0.0000000000e+00
rra[5].cdp_prep[0].unknown_datapoints = 2
rra[5].cdp_prep[1].value = 9.6690000000e+01
rra[5].cdp_prep[1].unknown_datapoints = 2
rra[5].cdp_prep[2].value = 1.2190000000e+01
rra[5].cdp_prep[2].unknown_datapoints = 4
rra[6].cf = "MIN"
rra[6].rows = 775
rra[6].cur_row = 479
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 0.0000000000e+00
rra[6].cdp_prep[0].unknown_datapoints = 5
rra[6].cdp_prep[1].value = 9.6690000000e+01
rra[6].cdp_prep[1].unknown_datapoints = 7
rra[6].cdp_prep[2].value = 1.2190000000e+01
rra[6].cdp_prep[2].unknown_datapoints = 10
rra[7].cf = "MIN"
rra[7].rows = 797
rra[7].cur_row = 130
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 0.0000000000e+00
rra[7].cdp_prep[0].unknown_datapoints = 117
rra[7].cdp_prep[1].value = 0.0000000000e+00
rra[7].cdp_prep[1].unknown_datapoints = 125
rra[7].cdp_prep[2].value = 0.0000000000e+00
rra[7].cdp_prep[2].unknown_datapoints = 138
rra[8].cf = "MAX"
rra[8].rows = 600
rra[8].cur_row = 223
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[8].cdp_prep[1].value = NaN
rra[8].cdp_prep[1].unknown_datapoints = 0
rra[8].cdp_prep[2].value = NaN
rra[8].cdp_prep[2].unknown_datapoints = 0
rra[9].cf = "MAX"
rra[9].rows = 700
rra[9].cur_row = 511
rra[9].pdp_per_row = 6
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = 1.3888070386e+12
rra[9].cdp_prep[0].unknown_datapoints = 2
rra[9].cdp_prep[1].value = 3.3184067584e+10
rra[9].cdp_prep[1].unknown_datapoints = 2
rra[9].cdp_prep[2].value = 1.2190000000e+01
rra[9].cdp_prep[2].unknown_datapoints = 4
rra[10].cf = "MAX"
rra[10].rows = 775
rra[10].cur_row = 744
rra[10].pdp_per_row = 24
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = 1.3888070386e+12
rra[10].cdp_prep[0].unknown_datapoints = 5
rra[10].cdp_prep[1].value = 3.3184067584e+10
rra[10].cdp_prep[1].unknown_datapoints = 7
rra[10].cdp_prep[2].value = 1.2190000000e+01
rra[10].cdp_prep[2].unknown_datapoints = 10
rra[11].cf = "MAX"
rra[11].rows = 797
rra[11].cur_row = 295
rra[11].pdp_per_row = 288
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = 1.3888070386e+12
rra[11].cdp_prep[0].unknown_datapoints = 117
rra[11].cdp_prep[1].value = 1.7360087982e+12
rra[11].cdp_prep[1].unknown_datapoints = 125
rra[11].cdp_prep[2].value = 9.5320000000e+01
rra[11].cdp_prep[2].unknown_datapoints = 138
rra[12].cf = "LAST"
rra[12].rows = 600
rra[12].cur_row = 6
rra[12].pdp_per_row = 1
rra[12].xff = 5.0000000000e-01
rra[12].cdp_prep[0].value = NaN
rra[12].cdp_prep[0].unknown_datapoints = 0
rra[12].cdp_prep[1].value = NaN
rra[12].cdp_prep[1].unknown_datapoints = 0
rra[12].cdp_prep[2].value = NaN
rra[12].cdp_prep[2].unknown_datapoints = 0
rra[13].cf = "LAST"
rra[13].rows = 700
rra[13].cur_row = 115
rra[13].pdp_per_row = 6
rra[13].xff = 5.0000000000e-01
rra[13].cdp_prep[0].value = 0.0000000000e+00
rra[13].cdp_prep[0].unknown_datapoints = 2
rra[13].cdp_prep[1].value = 9.6690000000e+01
rra[13].cdp_prep[1].unknown_datapoints = 2
rra[13].cdp_prep[2].value = 1.2190000000e+01
rra[13].cdp_prep[2].unknown_datapoints = 4
rra[14].cf = "LAST"
rra[14].rows = 775
rra[14].cur_row = 624
rra[14].pdp_per_row = 24
rra[14].xff = 5.0000000000e-01
rra[14].cdp_prep[0].value = 0.0000000000e+00
rra[14].cdp_prep[0].unknown_datapoints = 5
rra[14].cdp_prep[1].value = 9.6690000000e+01
rra[14].cdp_prep[1].unknown_datapoints = 7
rra[14].cdp_prep[2].value = 1.2190000000e+01
rra[14].cdp_prep[2].unknown_datapoints = 10
rra[15].cf = "LAST"
rra[15].rows = 797
rra[15].cur_row = 510
rra[15].pdp_per_row = 288
rra[15].xff = 5.0000000000e-01
rra[15].cdp_prep[0].value = 0.0000000000e+00
rra[15].cdp_prep[0].unknown_datapoints = 117
rra[15].cdp_prep[1].value = 9.6690000000e+01
rra[15].cdp_prep[1].unknown_datapoints = 125
rra[15].cdp_prep[2].value = 1.2190000000e+01
rra[15].cdp_prep[2].unknown_datapoints = 138
Attachments
Note the changes to Total O_o !? madness
Note the changes to Total O_o !? madness
Selection_012.png (165.79 KiB) Viewed 1177 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Various issues with new hosts

Post by phalek »

Do you have the DSStats plugin enabled ? If yes, please try to disable it and check the graphs again.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
starkers
Posts: 8
Joined: Thu Feb 07, 2013 3:48 am

Re: Various issues with new hosts

Post by starkers »

It was enabled, I've disabled it but they still look the same, should I wait?

I did recently plot the dsstats actually, didn't think that would cause issues
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Various issues with new hosts

Post by phalek »

Well, at least the table name comes from DSStats ( Data Source Stats ) so it's worth a try :-)
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
starkers
Posts: 8
Joined: Thu Feb 07, 2013 3:48 am

Re: Various issues with new hosts

Post by starkers »

Thanks for the suggestion anyway, I've disabled every plugin I can bare to be without, add-ed a new test host but same thing I'm afraid.

I'm wondering if its something wrong with the way data is getting through, the reported results just can't be correct yet the verbose queries look spot on.. so maybe a DB problem perhaps? This (I assume) doesn't explain why existing graphs of the same template work though, or why others work....

uuugghh.... when things I don't understand break like this I want to throw my keyboard away and take up classes in yodling :lol:
starkers
Posts: 8
Joined: Thu Feb 07, 2013 3:48 am

Re: Various issues with new hosts

Post by starkers »

...anyone? :(
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests