After upgrade to 0.8.7 SNMP - disk graphs are empty

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

Moderators: Developers, Moderators

Beaujolais
Posts: 30
Joined: Fri Apr 15, 2005 7:34 am
Location: Canada

After upgrade to 0.8.7 SNMP - disk graphs are empty

Post by Beaujolais »

After upgrading from 0.8.6i to 0.8.7 all "SNMP - Get Mounted Partitions" based graphs are empty.
These graphs are OK after upgrade:
Graph templates:
Host MIB - Logged in Users (standard)
Host MIB - Processes (standard)
ucd/net - CPU Usage (standard)
ucd/net - Load Average (standard)
ucd/net - Memory Usage (standard)
Data queries:
Linux - hddtemp - disk temperature (custom)
SNMP - Get Processor Information (standard)
SNMP - Interface Statistics (standard)

This one is showing empty graph:
SNMP - Get Mounted Partitions

Even though the debug seems to be OK

Verbose query

Code: Select all

+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /srv/www/htdocs/cacti/scripts/ss_host_disk.php 192.168.3.6 9 2:161:2000:public:::::: index'
+ Executing script query '/usr/bin/php -q /srv/www/htdocs/cacti/scripts/ss_host_disk.php 192.168.3.6 9 2:161:2000:public:::::: 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='8'] index: 8
+ Found item [hrStorageIndex='10'] index: 10
+ Found item [hrStorageIndex='31'] index: 31
+ Found item [hrStorageIndex='32'] index: 32
+ Found item [hrStorageIndex='33'] index: 33
+ Found item [hrStorageIndex='34'] index: 34
+ Found item [hrStorageIndex='35'] index: 35
+ Found item [hrStorageIndex='36'] index: 36
+ Executing script query '/usr/bin/php -q /srv/www/htdocs/cacti/scripts/ss_host_disk.php 192.168.3.6 9 2:161:2000:public:::::: 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='Shared memory'] index: 8
+ Found item [hrStorageDescr='Swap space'] index: 10
+ Found item [hrStorageDescr='/'] index: 31
+ Found item [hrStorageDescr='/sys'] index: 32
+ Found item [hrStorageDescr='/sys/kernel/debug'] index: 33
+ Found item [hrStorageDescr='/media/RAID5'] index: 34
+ Found item [hrStorageDescr='/proc/sys/fs/binfmt_misc'] index: 35
+ Found item [hrStorageDescr='/proc/fs/nfsd'] index: 36
+ Executing script query '/usr/bin/php -q /srv/www/htdocs/cacti/scripts/ss_host_disk.php 192.168.3.6 9 2:161:2000:public:::::: 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: 8
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 10
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 31
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 32
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 33
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 34
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 35
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 36
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/script_server/host_disk.xml'
Debug

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="tekux2 - Used Space - /" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/srv/www/htdocs/cacti/rra/tekux2_hdd_total_108.rrd":hdd_total:AVERAGE \
DEF:b="/srv/www/htdocs/cacti/rra/tekux2_hdd_total_108.rrd":hdd_used:AVERAGE \
AREA:a#002A97:"Total"  \
GPRINT:a:LAST:"Current\:%8.2lf%s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:b#F51D30:"Used"  \
GPRINT:b:LAST:" Current\:%8.2lf%s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf%s\n" 

RRDTool Says:

OK
But the graph is since the upgrade empty as shown on the picture.
I've tried deleting the graphs, all data sources and recreating but nothing helped.
I've made sure that none of the scripts from 0.8.7 were not overwritten with from the old version.

Any idea what went wrong?

thanks
Attachments
graph_image.php.png
graph_image.php.png (23.08 KiB) Viewed 3186 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well that is not good. Turn logging to medium and then do the following:

1) Note the host_id from Cacti
2) run "php -q <path_to_cacti>/cmd.php <host_id> <host_id>

Record the output. Look for the Host disk stuff. If it does not appear:

1) Check the poller cache. If not there
2) Repopulate the poller cache and see if it appears

Post your results.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Beaujolais
Posts: 30
Joined: Fri Apr 15, 2005 7:34 am
Location: Canada

Post by Beaujolais »

Code: Select all

tweety:/srv/www/htdocs/cacti # php -q cmd.php 8 8
PHP Warning:  Missing argument 9 for cacti_snmp_get(), called in /srv/www/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 304 and defined in /srv/www/htdocs/cacti/lib/snmp.php on line 39
PHP Warning:  Missing argument 10 for cacti_snmp_get(), called in /srv/www/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 304 and defined in /srv/www/htdocs/cacti/lib/snmp.php on line 39
PHP Warning:  Missing argument 9 for cacti_snmp_get(), called in /srv/www/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 385 and defined in /srv/www/htdocs/cacti/lib/snmp.php on line 39
PHP Warning:  Missing argument 10 for cacti_snmp_get(), called in /srv/www/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 385 and defined in /srv/www/htdocs/cacti/lib/snmp.php on line 39
PHP Warning:  Missing argument 9 for cacti_snmp_get(), called in /srv/www/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 304 and defined in /srv/www/htdocs/cacti/lib/snmp.php on line 39
PHP Warning:  Missing argument 10 for cacti_snmp_get(), called in /srv/www/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 304 and defined in /srv/www/htdocs/cacti/lib/snmp.php on line 39
PHP Warning:  Missing argument 9 for cacti_snmp_get(), called in /srv/www/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 385 and defined in /srv/www/htdocs/cacti/lib/snmp.php on line 39
PHP Warning:  Missing argument 10 for cacti_snmp_get(), called in /srv/www/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 385 and defined in /srv/www/htdocs/cacti/lib/snmp.php on line 39
Last edited by Beaujolais on Thu Oct 25, 2007 10:15 pm, edited 1 time in total.
Beaujolais
Posts: 30
Joined: Fri Apr 15, 2005 7:34 am
Location: Canada

Post by Beaujolais »

Here is the poller cache

Code: Select all

/usr/bin/rrdtool create \
/srv/www/htdocs/cacti/rra/tweety_hdd_total_60.rrd \
--step 300  \
DS:hdd_used:GAUGE:600:0:U \
DS:hdd_total:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
Last edited by Beaujolais on Thu Oct 25, 2007 10:19 pm, edited 2 times in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That, in fact, is not the poller cache. That is graph debug. Poller Cache is under System Utilities.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Beaujolais
Posts: 30
Joined: Fri Apr 15, 2005 7:34 am
Location: Canada

Post by Beaujolais »

Log file is showing

Code: Select all

10/25/2007 11:20:23 PM - CMDPHP: Poller[0] Host[8] DS[160] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail

10/25/2007 11:20:22 PM - CMDPHP: Poller[0] Host[8] DS[152] WARNING: Result from CMD not valid. Partial Result: No Such Instance cur
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If that sensors script is script server based, it could be hosing your disk graphs. Fix that issue first. You need to alter any script that used snmp to use the revised syntax which includes data for snmpv3. I think once you do that, you should be ok.

I would audit your scripts right away. The fix is quite simple and is posted as a part of the upgrade instructions.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Seeing that, you may have copied over your "old" host disk template from your prior installation. That will break the host disk and cpu graphs as well. You should always keep the Cacti XML and Scripts if they are newer.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Beaujolais
Posts: 30
Joined: Fri Apr 15, 2005 7:34 am
Location: Canada

Post by Beaujolais »

TheWitness wrote:If that sensors script is script server based, it could be hosing your disk graphs. Fix that issue first. You need to alter any script that used snmp to use the revised syntax which includes data for snmpv3. I think once you do that, you should be ok.

I would audit your scripts right away. The fix is quite simple and is posted as a part of the upgrade instructions.

TheWitness
OK, I'll check.
Beaujolais
Posts: 30
Joined: Fri Apr 15, 2005 7:34 am
Location: Canada

Post by Beaujolais »

TheWitness wrote:Seeing that, you may have copied over your "old" host disk template from your prior installation. That will break the host disk and cpu graphs as well. You should always keep the Cacti XML and Scripts if they are newer.

TheWitness
For sure not. After I did the upgrade and copied old scripts I've again copied new scripts from 0.8.7 to make sure the new are indeed new.
Beaujolais
Posts: 30
Joined: Fri Apr 15, 2005 7:34 am
Location: Canada

Post by Beaujolais »

TheWitness wrote: The fix is quite simple and is posted as a part of the upgrade instructions.
TheWitness
The lmsensors script is not mine, I've got it from this forum.
Not quite sure what to fix, can you please point me to the upgrade documentation?
I've fixed config.php to global.php that's all.

Much appreciated ;)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I think that is it. Does it still bomb out? Can you expand your cmd.php scope to more hosts and see if you get other errors?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Beaujolais
Posts: 30
Joined: Fri Apr 15, 2005 7:34 am
Location: Canada

Post by Beaujolais »

I've tried other hosts and I only see the lmsensors error on the hosts that are being polled for lmsensors. Only those errors shown above, no other errors.
BTW: CPU graphs are OK.

I'm not as such expert to be able to fix this I guess. I can try to copy once again the disk template from 0.8.7.tgz but not sure which file it is.

Guess, will have to start from scratch and try the lmsensors from beginning :-?

This seems to be the problem, but I'm clueless how to fix it

Code: Select all

                        $scratch = cacti_snmp_get($snmp_hostname,
                                $snmp_community,
                                ($oid[2][1] . "." . $cmdoutput[$cmdoutputcount][0]),
                                $snmp_version,
                                $snmp_username,
                                $snmp_password,
                                $snmp_port,
                                $snmp_timeout);
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That one was for the host disk. The new calling syntax for the SNMP* functions is the following:

Code: Select all

cacti_snmp_get($hostname, $community, $oid, $version, $username, $password, $auth_proto, $priv_pass, $priv_proto, $context, $port = 161, $timeout = 500, $retries = 0, $environ = SNMP_POLLER)
So, the new ones are the following:

$auto_proto
$priv_pass
$priv_proto,
$context

So, simply add then, they can be blank if you are not using snmpV3.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests