How to generate all graphs for windows

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

Moderators: Developers, Moderators

Grejao
Posts: 4
Joined: Tue May 20, 2008 2:25 pm

How to generate all graphs for windows

Post by Grejao »

Hi all, i install cacti at the following structure:

Code: Select all

Operating System:  RedHat Enterprise Linux 5.1
Webserver: Apache/2.2.3 
Cacti: 0.8.7b
Spine:  ?? i don't know
MySQL: 5.0.22
PHP: PHP Version 5.1.6
RRDTool (Cygwin or Win32 version): rrdtool-1.2.23
Net-SNMP: net-snmp-5.3.1-19
Cygwin (cygwin1.dll version):
Plugin Architecture: 
My cacti are working fine, i start to generate graphs for my windows hosts.
For 2 hosts (Windows 2000 server) i can get all informations from Template (CPU Utilization, Logged in Users, Processes, Traffic, Disk used Space), for other 2 hosts (windows 2003 server and Windows 2000 Professional) i can get only 3 informations (Logged in Users, Processes and Traffic) and for some other hosts i can't get anything. All of my hosts have snmp installed and started. At all i configure public community, put snmp to accept connections from all hosts and mark all services on Agent tab and restart all services from snmp.

i check all snmp configurations at windows and diagnostic that all configurations for all windows hosts are equal, have no diferences.

What i need to do to get all informations (CPU Utilization, Logged in Users, Processes, Traffic, Disk used Space) from all Windows Hosts?

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

Post by BSOD2600 »

1) For hosts that don't report any snmp info, do you see their system info in the top left corner of Cacti? If not, then snmp isn't properly configured, firewall blocking snmp, etc.

2) For hosts which are returning some info, click on verbose query on the associated data queries which are 'broken'. Paste the results.

3) If you manually snmpwalk the OID(s) which the 'broken' hosts aren't returning, do you get data?

4) Some times removing and reinstalling the Windows SNMP agent can fix some data not being returned.
Grejao
Posts: 4
Joined: Tue May 20, 2008 2:25 pm

Post by Grejao »

Ok, I reinstall snmp at my Windows 2003 Server and it didn't solve my problem. i run data query in debug mode and receive this: (for CPU)

Code: Select all

Data Query Debug Information
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_cpu.php TOTH 4 2:161:500:public:::MD5::DES: index'
+ Executing script query '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_cpu.php TOTH 4 2:161:500:public:::MD5::DES: query index'
+ Found item [hrProcessorFrwID='0'] index: 0
+ Found item [hrProcessorFrwID='1'] index: 1
+ Found item [hrProcessorFrwID='2'] index: 2
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_cpu.xml'

I return to reate Graph screen, and see that my server have for disks and 3 CPU, but without description(clear line). I select all and put it to generate graphs.

Code: Select all

+ Created graph: Toth - Available Disk Space
+ Created graph: Toth - Available Disk Space
+ Created graph: Toth - Available Disk Space
+ Created graph: Toth - Available Disk Space
+ Created graph: Toth - CPU Utilization - CPU0
+ Created graph: Toth - CPU Utilization - CPU1
+ Created graph: Toth - CPU Utilization - CPU2
Ok, i return to graphs tree views, select Toth host and see that new 7 graphs are generated, but this graphs aren't show any data.

And Toth hos doesn't have 4 disks, they have only 2.. disk C and D.

How do i can run snmpwalk manually for this OID(s) ??
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Well looks like the server is properly returning CPU data.
Grejao wrote:How do i can run snmpwalk manually for this OID(s) ??
Did you look at what cacti\resource\script_server\host_disk.xml contains?

snmpwalk .1.3.6.1.2.1.25.2.3.1
Grejao
Posts: 4
Joined: Tue May 20, 2008 2:25 pm

Post by Grejao »

Today when i come in at work i have an surprise, for this Windows host that i have mentioned the CPU Utilization graphs was working fine :) but "Available Disk Space" didn't work.
i go to "cacti/resource/snmp_queries/host_disk.xml" and get snmp codes from disk and test it by shell, all answer are ok, look:

Code: Select all

[root@asclepius snmp_queries]# cat host_disk.xml 
<interface>
        <name>Get Host Partition Information</name>
        <index_order_type>numeric</index_order_type>
        <oid_index>.1.3.6.1.2.1.25.2.3.1.1</oid_index>

        <fields>
                <hrStorageIndex>
                        <name>Index</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.2.1.25.2.3.1.1</oid>
                </hrStorageIndex>
                <hrStorageDescr>
                        <name>Description</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.2.1.25.2.3.1.3</oid>
                </hrStorageDescr>
                <hrStorageAllocationUnits>
                        <name>Storage Allocation Units</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.2.1.25.2.3.1.4</oid>
                </hrStorageAllocationUnits>

                <hrStorageSize>
                        <name>Total Size</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.2.1.25.2.3.1.5</oid>
                </hrStorageSize>
                <hrStorageUsed>
                        <name>Total Used</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.2.1.25.2.3.1.6</oid>
                </hrStorageUsed>
                <hrStorageAllocationFailures>
                        <name>Allocation Failures</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.2.1.25.2.3.1.7</oid>
                </hrStorageAllocationFailures>
        </fields>
</interface>
[root@asclepius snmp_queries]#

Code: Select all

[root@asclepius ~]# snmpwalk toth -v 2c -c public .1.3.6.1.2.1.25.2.3.1.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
[root@asclepius ~]# snmpwalk toth -v 2c -c public .1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: C:\ Label:  Serial Number cf31694
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: D:\ Label:BRMEVOL_EN  Serial Number 2a303dad
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: Physical Memory
[root@asclepius ~]# snmpwalk toth -v 2c -c public .1.3.6.1.2.1.25.2.3.1.4
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 2048 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 65536 Bytes
[root@asclepius ~]# snmpwalk toth -v 2c -c public .1.3.6.1.2.1.25.2.3.1.5
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 7861801
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 290295
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 83545
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 61432
[root@asclepius ~]# snmpwalk toth -v 2c -c public .1.3.6.1.2.1.25.2.3.1.6
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 5489224
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 290295
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 38636
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 34055
[root@asclepius ~]# snmpwalk toth -v 2c -c public .1.3.6.1.2.1.25.2.3.1.7
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
[root@asclepius ~]# 
where Asclepius are my host from cacti server and Toth are my Windows 2003 Server that i need to create graphs.

For other 2 hosts, i remove device from host at cacti and create new with the same informations and it work, they get all information. Now i have 2 Windows Nt Server 4 that i need to install snmp :D lol (ok, i know that is rediculous to have NT Server today)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Post the verbose query of Toth of the disk space query from Cacti.
Grejao
Posts: 4
Joined: Tue May 20, 2008 2:25 pm

Post by Grejao »

ok, see:

Code: Select all

Data Query Debug Information
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 96.1.1.16 4 2:161:500:public:::MD5::DES: index'
+ Executing script query '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 96.1.1.16 4 2:161:500:public:::MD5::DES: query index'
+ Executing script query '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 96.1.1.16 4 2:161:500:public:::MD5::DES: query description'
+ Executing script query '/usr/bin/php -q /usr/local/cacti/scripts/ss_host_disk.php 96.1.1.16 4 2:161:500:public:::MD5::DES: query sau'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/host_disk.xml'
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

96.1.1.16 4 is Toth? Try increasing the timeout in cacti for that device to 2000ms or higher. Since you were able to snmpwalk it (from the cacti server, right?), Cacti shouldn't have any problems.
User avatar
hjohnson
Posts: 10
Joined: Wed Jul 16, 2008 11:59 am

I am having the EXACT problem on a Windows 2003 server

Post by hjohnson »

This is my 3rd day of banging my head against the bench... I cannot get any Disk or CPU info from either of our Windows 2003 Servers (both running Microsoft's SNMP package). I am running Cacti on a Linux box.

From my Windows 2003 Server:
[lighttpd@ncc1701a cacti]$ snmpwalk 10.13.200.1 -v2c -c public .1.3.6.1.2.1.25.2.3.1.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::hrStorageIndex.7 = INTEGER: 7
[lighttpd@ncc1701a cacti]$ snmpwalk 10.13.200.1 -v2c -c public .1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: A:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\ Label: Serial Number 1c97990a
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: D:\ Label: Serial Number d46e541b
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: E:\ Label:CRMSVOL_EN Serial Number 93aeb21a
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: F:\
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Physical Memory


And from Cacti:
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/data/srv/www/vhosts/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /data/srv/www/vhosts/cacti/scripts/ss_host_disk.php 10.13.75.9 2 2:161:3000:public:::MD5::DES: index'
+ Executing script query '/usr/bin/php -q /data/srv/www/vhosts/cacti/scripts/ss_host_disk.php 10.13.75.9 2 2:161:3000:public:::MD5::DES: query index'
+ Executing script query '/usr/bin/php -q /data/srv/www/vhosts/cacti/scripts/ss_host_disk.php 10.13.75.9 2 2:161:3000:public:::MD5::DES: query description'
+ Executing script query '/usr/bin/php -q /data/srv/www/vhosts/cacti/scripts/ss_host_disk.php 10.13.75.9 2 2:161:3000:public:::MD5::DES: query sau'
+ Found data query XML file at '/data/srv/www/vhosts/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/data/srv/www/vhosts/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/data/srv/www/vhosts/cacti/resource/script_server/host_disk.xml'
User avatar
hjohnson
Posts: 10
Joined: Wed Jul 16, 2008 11:59 am

Ooops... wrong IP but results are the same

Post by hjohnson »

I just noticed that I have mismatched IP addresses in my last post. So here is another snmpwalk example using the same IP as in Cacti. Same results. Net-SNMP is working fine... it is just that Cacti is not picking up the results. BTW... Cacti version is 0.8.7b. Fresh install. All other SNMP functions on all other devices seem to work just fine.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Does the disk query work against any other device?
Does the CPU query work against any other device?
User avatar
hjohnson
Posts: 10
Joined: Wed Jul 16, 2008 11:59 am

Does not work with a Linux server either

Post by hjohnson »

No. Here is another snmpwalk against a Linux server:
[lighttpd@ncc1701a cacti]$ snmpwalk 10.13.31.100 -v2c -c public .1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.32 = STRING: /content

And here is the verbose output from Cacti:
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/data/srv/www/vhosts/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /data/srv/www/vhosts/cacti/scripts/ss_host_disk.php 10.13.31.100 3 2:161:1500:public:::MD5::DES: index'
+ Executing script query '/usr/bin/php -q /data/srv/www/vhosts/cacti/scripts/ss_host_disk.php 10.13.31.100 3 2:161:1500:public:::MD5::DES: query index'
+ Executing script query '/usr/bin/php -q /data/srv/www/vhosts/cacti/scripts/ss_host_disk.php 10.13.31.100 3 2:161:1500:public:::MD5::DES: query description'
+ Executing script query '/usr/bin/php -q /data/srv/www/vhosts/cacti/scripts/ss_host_disk.php 10.13.31.100 3 2:161:1500:public:::MD5::DES: query sau'
+ Found data query XML file at '/data/srv/www/vhosts/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/data/srv/www/vhosts/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/data/srv/www/vhosts/cacti/resource/script_server/host_disk.xml'
User avatar
hjohnson
Posts: 10
Joined: Wed Jul 16, 2008 11:59 am

Also setting the timeout does not help either

Post by hjohnson »

I also set the timeout to 3000 and it still fails. However, I noticed that the remarks on the SNMP timeout field says "The maximum number of milliseconds Cacti will wait for an SNMP response (does not work with php-snmp support)."

So I guess that will not work in my case anyway.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Alright, so that says it's no longer a Windows specific problem and instead Cacti. Moving thread.

Did you install cacti from a distribution or manually?
User avatar
hjohnson
Posts: 10
Joined: Wed Jul 16, 2008 11:59 am

Post by hjohnson »

Installed it manually.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests