|
|
| Author |
Message |
lordlynx
Joined: 09 Mar 2007 Posts: 7 Location: Perth, Australia
|
Posted: Sat Oct 27, 2007 6:27 am Post subject: |
|
|
Bugger - confirmed
Had a hunch I must've overlooked something simple - not sure how I managed to overwrite the 0.8.7 version though.
Replaced the XML with 0.8.7 version but didn't fix the problem - will wipe and rerun the upgrade from scratch (in case this isn't the only file I broke) and reply again shortly.
|
|
| Back to top |
|
 |
lordlynx
Joined: 09 Mar 2007 Posts: 7 Location: Perth, Australia
|
Posted: Sat Oct 27, 2007 10:10 am Post subject: Disk graphs broken (when using Non-standard SNMP port) |
|
|
OK I started the upgrade again from scratch, but had the same problem. I then tried just installing anew (clean cacti dir as per zip contents only; dropped and recreated the cacti DB) and adding just this one new host, creating a couple of graphs and the problem occurred again ie.
10/27/2007 10:50:23 PM - CMDPHP: Poller[0] Host[2] DS[11] SERVER: c:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php ss_host_disk 10.0.0.1 2 2:1611:500:public:::MD5::DES: get total 5, output: 0
I again tried replacing the ssh_host_disk and query_host_partitions scripts with the ones posted earlier, but they still have the same result.
Incidentally I was able to set up an outbound NAT+PAT rule for testing so the machine running Cacti could then talk using the standard port; the graphs started working straight away. Have you had any reports of others running 0.8.7, successfully being able to use disk graphs on a host they poll using a nonstandard SNMP port?
Last edited by lordlynx on Mon Oct 29, 2007 3:22 am; edited 1 time in total |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9723 Location: MI, USA
|
Posted: Sun Oct 28, 2007 10:51 am Post subject: |
|
|
| Mybe that's it. I will have to look.
|
|
| Back to top |
|
 |
ckehayias
Joined: 28 Oct 2007 Posts: 1
|
Posted: Sun Oct 28, 2007 11:06 am Post subject: 0.8.7 - No Windows Disks |
|
|
I have done a fresh install of 0.8.7 and I have no disk statistics.. This worked under 8.6. I have replaced my .php files with those from the earlier posts.
I have Cacti running on Windows 2003 under Apache.
Anything I can do to help?
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9723 Location: MI, USA
|
Posted: Mon Oct 29, 2007 7:20 pm Post subject: |
|
|
Can you aford a gotoMeeting. It would have to be evenings EDT.
TheWitness
|
|
| Back to top |
|
 |
P0rter
Joined: 30 Oct 2007 Posts: 1
|
Posted: Tue Oct 30, 2007 8:10 am Post subject: fixed ss_host_disk.php |
|
|
fixed file
| Description: |
|
 Download |
| Filename: |
ss_host_disk.zip |
| Filesize: |
1.24 KB |
| Downloaded: |
371 Time(s) |
|
|
| Back to top |
|
 |
petpet
Joined: 09 Nov 2006 Posts: 13
|
Posted: Tue Oct 30, 2007 12:36 pm Post subject: |
|
|
Super Porter, your fix works
Thanks
pet
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9723 Location: MI, USA
|
Posted: Tue Oct 30, 2007 5:15 pm Post subject: |
|
|
Thanks for the post. Don't know how I missed those two.
TheWitness
|
|
| Back to top |
|
 |
lordlynx
Joined: 09 Mar 2007 Posts: 7 Location: Perth, Australia
|
Posted: Tue Oct 30, 2007 9:53 pm Post subject: All fixed! |
|
|
Confirmed fixed for me too - my broken disk/mem graphs started working immediately after I started using P0rter's modified ss_host_disk.php - no other action required.
I also checked all my "normal" disk/memory graphs just to be 100% sure, all are still working correctly.
Thanks to Witness for working on the problem, and P0rter for supplying the fix!
|
|
| Back to top |
|
 |
ame Cacti User
Joined: 25 Nov 2005 Posts: 68
|
Posted: Mon Nov 12, 2007 8:22 am Post subject: |
|
|
HI,
I have still problems....updated
-query_host_cpu.php
-query_host_partitions.php
-ss_host_disk.php
running on cacti 0.87 (CactiEZ). When I create a new device I cannot get any partition and drive information - from an old running cacti I have no problems - so we can exclude host prolems.....
Here is the verbose query:
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php s0000935.ecdomain.net pkg-de-rheinau 2 6 index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php s0000935.ecdomain.net pkg-de-rheinau 2 6 query index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php s0000935.ecdomain.net pkg-de-rheinau 2 6 query description'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php s0000935.ecdomain.net pkg-de-rheinau 2 6 query sau'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php s0000935.ecdomain.net pkg-de-rheinau 2 6 query total'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
Thanks in advance
Alex
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9723 Location: MI, USA
|
Posted: Mon Nov 12, 2007 12:19 pm Post subject: |
|
|
Should look more like this:
| Quote: | + Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at 'C:/wwwroot/cacti087/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\progra~1\php\php.exe -q C:\wwwroot\cacti087\scripts\ss_host_disk.php localhost 1 1:161:5000:public:::MD5::DES: index'
+ Executing script query 'c:\progra~1\php\php.exe -q C:\wwwroot\cacti087\scripts\ss_host_disk.php localhost 1 1:161:5000:public:::MD5::DES: query index'
+ Found item [hrStorageIndex='1'] index: 1
+ Found item [hrStorageIndex='2'] index: 2
+ Found item [hrStorageIndex='3'] index: 3
+ Found item [hrStorageIndex='4'] index: 4
+ Found item [hrStorageIndex='5'] index: 5
+ Found item [hrStorageIndex='6'] index: 6
+ Found item [hrStorageIndex='7'] index: 7
+ Found item [hrStorageIndex='8'] index: 8
+ Found item [hrStorageIndex='9'] index: 9
+ Found item [hrStorageIndex='10'] index: 10
+ Found item [hrStorageIndex='11'] index: 11
+ Executing script query 'c:\progra~1\php\php.exe -q C:\wwwroot\cacti087\scripts\ss_host_disk.php localhost 1 1:161:5000:public:::MD5::DES: query description'
+ Found item [hrStorageDescr='C: Label:CDrive Serial Number 106ceb4'] index: 1
+ Found item [hrStorageDescr='D: Label:DDrive Serial Number e02f7da'] index: 2
+ Found item [hrStorageDescr='E:'] index: 3
+ Found item [hrStorageDescr='F:'] index: 4
+ Found item [hrStorageDescr='G:'] index: 5
+ Found item [hrStorageDescr='H: Label: Serial Number 423b2bd'] index: 6
+ Found item [hrStorageDescr='I: Label:Audio CD Serial Number 12970b'] index: 7
+ Found item [hrStorageDescr='J: Label:XRMPVOL_EN Serial Number d6647f4'] index: 8
+ Found item [hrStorageDescr='K:'] index: 9
+ Found item [hrStorageDescr='Virtual Memory'] index: 10
+ Found item [hrStorageDescr='Physical Memory'] index: 11
+ Executing script query 'c:\progra~1\php\php.exe -q C:\wwwroot\cacti087\scripts\ss_host_disk.php localhost 1 1:161:5000:public:::MD5::DES: query sau'
+ Found item [hrStorageAllocationUnits='4096'] index: 1
+ Found item [hrStorageAllocationUnits='4096'] index: 2
+ Found item [hrStorageAllocationUnits='0'] index: 3
+ Found item [hrStorageAllocationUnits='0'] index: 4
+ Found item [hrStorageAllocationUnits='0'] index: 5
+ Found item [hrStorageAllocationUnits='4096'] index: 6
+ Found item [hrStorageAllocationUnits='2048'] index: 7
+ Found item [hrStorageAllocationUnits='2048'] index: 8
+ Found item [hrStorageAllocationUnits='0'] index: 9
+ Found item [hrStorageAllocationUnits='65536'] index: 10
+ Found item [hrStorageAllocationUnits='65536'] index: 11
+ Found data query XML file at 'C:/wwwroot/cacti087/resource/script_server/host_disk.xml'
+ Found data query XML file at 'C:/wwwroot/cacti087/resource/script_server/host_disk.xml'
+ Found data query XML file at 'C:/wwwroot/cacti087/resource/script_server/host_disk.xml'
+ Found data query XML file at 'C:/wwwroot/cacti087/resource/script_server/host_disk.xml'
+ Found data query XML file at 'C:/wwwroot/cacti087/resource/script_server/host_disk.xml'
+ Found data query XML file at 'C:/wwwroot/cacti087/resource/script_server/host_disk.xml'
+ Found data query XML file at 'C:/wwwroot/cacti087/resource/script_server/host_disk.xml'
+ Found data query XML file at 'C:/wwwroot/cacti087/resource/script_server/host_disk.xml' |
Looks like you have an old resource file.
TheWitness
|
|
| Back to top |
|
 |
looc Cacti User
Joined: 13 Aug 2007 Posts: 110
|
Posted: Thu Nov 15, 2007 9:07 pm Post subject: |
|
|
i have two questions.
1.query_*.php work in windows disk&cpu xml?
2.can you get me a full fixed php files for get windows disk&cpu's scrpits.
thanks
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9723 Location: MI, USA
|
Posted: Thu Nov 15, 2007 9:17 pm Post subject: |
|
|
Both in SVN.
TheWitness
|
|
| Back to top |
|
 |
looc Cacti User
Joined: 13 Aug 2007 Posts: 110
|
Posted: Thu Nov 15, 2007 9:52 pm Post subject: |
|
|
| TheWitness wrote: | Both in SVN.
TheWitness |
what mean "SVN"?
i download your ss_host_disk.php.in the cmd that's OK
| Quote: | C:\>d:\php\php.exe -q E:\www\scripts\ss_host_disk.php 127.0.0.1 2 1:161:500:publ
ic:::MD5::DES: index
1
2
3
4
5
6
7
C:\>d:\php\php.exe -q E:\www\scripts\ss_host_disk.php 127.0.0.1 2 1:161:500:publ
ic:::MD5::DES: query description
1!C: Label: Serial Number 8c64713
2!D: Label: Serial Number e4dbac5
3!E: Label:cacti Serial Number fcfcbea
4!F: Label:backup Serial Number 50fda36
5!G:
6!Virtual Memory
7!Physical Memory
C:\>d:\php\php.exe -q E:\www\scripts\ss_host_disk.php 127.0.0.1 2 1:161:500:publ
ic:::MD5::DES: query sau
1!512
2!4096
3!4096
4!4096
5!0
6!65536
7!65536
C:\> |
but debug query it isn't work well
| Quote: | + Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at 'E:/www/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'd:\php\php.exe -q E:\www\scripts\ss_host_disk.php 127.0.0.1 2 1:161:500:public:::MD5::DES: index'
+ Executing script query 'd:\php\php.exe -q E:\www\scripts\ss_host_disk.php 127.0.0.1 2 1:161:500:public:::MD5::DES: query index'
+ Executing script query 'd:\php\php.exe -q E:\www\scripts\ss_host_disk.php 127.0.0.1 2 1:161:500:public:::MD5::DES: query description'
+ Executing script query 'd:\php\php.exe -q E:\www\scripts\ss_host_disk.php 127.0.0.1 2 1:161:500:public:::MD5::DES: query sau'
+ Found data query XML file at 'E:/www/resource/script_server/host_disk.xml'
+ Found data query XML file at 'E:/www/resource/script_server/host_disk.xml'
+ Found data query XML file at 'E:/www/resource/script_server/host_disk.xml' |
can i used 0.8.6j's xml&scripts to resovle this bug?
you give me url,i find these files hard.
can you compress full files to give me?thank well
|
|
| Back to top |
|
 |
looc Cacti User
Joined: 13 Aug 2007 Posts: 110
|
Posted: Thu Nov 15, 2007 9:57 pm Post subject: |
|
|
and i have a installed cactiEZ0.3.
can i copy cactiEZ0.3's resoure&scripts dir to this cacti folder?
|
|
| Back to top |
|
 |
|