All Windows hosts: only Partial Monitoring

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

MikaelS wrote:The device which has SNMP - Get Processor information doesn't have any datasource called like that.
You sure you've even added the data sources for a device to graph disk info? It *should* show up in the poller cache. If not, try clearing it.
MikaelS wrote: but it don't think I should be using the script_queries/host_disk.xml script anyway, right?
You can't manually execute a *.xml file for cacti. Only the script server files (ss_*) and normal script files. If you look inside the ss_host_disk.php file, you'll see all the arguments it takes, which is a pain to manually type out.

For this query, cacti actually (should be) using resource\script_server\host_disk.xml. Inside, see how the arg_prepend sends all the various arguments to the ss_host_disk.php file.

You mind posting an snmpwalk of a 'broken' device's partition table.
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

The data source for the device is added after I've created a new graph? Since I can't get any list for devices I can't create a graph for it.

The snmpwalk is as follows;

[admin@mon01 ~]$ snmpwalk -v1 -c <hidden> hostingdc1 .1.3.6.1.2.1.2 5.2.3.1
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRemova bleDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageFixedD isk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageCompac tDisc
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageFixedD isk
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageVirtua lMemory
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: A:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\ Label: Serial Number 340467e 9
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: D:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: E:\ Label:Data Serial Number 2cf f5e56
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 6552503
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 6552503
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 43040
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 16374
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 3618483
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 2041648
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 13575
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 12725
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.6 = Counter32: 0
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Next to the 'SNMP - Get Processor information' for a device, click on verbose query and paste the results. You do see the device's snmp info in the top right corner in cacti, right?
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

Here is the result from 'SNMP - Get Processor information';

+ Running data query [9].
+ Found type = '4 '[script query].
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /opt/statistics/scripts/query_host_cpu.php xx.xx.xx.xx <hidden> 1 index'
+ Executing script query '/usr/bin/php -q /opt/statistics/scripts/query_host_cpu.php xx.xx.xx.xx <hidden> 1 query index'
+ Found item [hrProcessorFrwID='0'] index: 0
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'


And yes, I do see the SNMP information from the host
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

/resource/script_queries/host_cpu.xml ? Looks like you've got an older cacti installation. Newer installs should be using /resource/script_server/host_cpu.xml. Read in the documentation site on how to change it over (I forget the exact link) to the PHP script server instead.
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

Actually, making sure all scripts use get script server data (index), breaks it. I changed the SNMP - Get Processor Information, followed all the steps from the Cacti Documentation, but it failed. Come to think of it, I have another script which I haven't used yet but I used for my old installation, which also uses get script server data (index). I tried it now, and it did not work. Seems as I have an issue with the get script server data (index) method.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The verbose query is incorrect. You have either an old (dated) XML file (say pointing to the scrip based), you poller cache has not been rebuild, or martians have taken over your computer.

Until your script query includes things like

DES and SHA separated by either colons or pipes, you are on the wrong track.

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 6 guests