URGENT: Host Disk Fails After Upgrade to 0.8.7

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

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Somehow your web server is unable to run these. That's all I can guess. No, you can not go back. Try restarting Apache and then do this again. Look in your apache error_log for more details.

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?
looc
Cacti User
Posts: 110
Joined: Mon Aug 13, 2007 3:40 am

Post by looc »

TheWitness wrote:Somehow your web server is unable to run these. That's all I can guess. No, you can not go back. Try restarting Apache and then do this again. Look in your apache error_log for more details.

TheWitness
0.8.7 must run by apache?
i have three cacti,one is windows 2003 iis6 0.8.6j updated 0.8.7 that's work well;one is cactiEZ0.3,it work well;one is new install cacti 0.8.7 buy windows2003&II6.
it config php have a issue:
i add windows system path environment variable as docment.but when i test php config(phpinfo();). it has find php.ini. i copy php.ini to windows\ folder.issue resovle.
Is it because PHP configuration?
i 0.8.6j's cacti han't this issue
IIS LOG files can be?
Last edited by looc on Thu Nov 15, 2007 11:14 pm, edited 1 time in total.
Cacti Version - 0.8.7 & spine
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
looc
Cacti User
Posts: 110
Joined: Mon Aug 13, 2007 3:40 am

Post by looc »

:-?
Cacti Version - 0.8.7 & spine
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sorry dont do Windows any more. I would look at Filemon when you run the dataquery and see if you have a permissions issue. IIS sucks when it comes to the log, unless they have changed something in IIS6.

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?
looc
Cacti User
Posts: 110
Joined: Mon Aug 13, 2007 3:40 am

Post by looc »

TheWitness wrote:Sorry dont do Windows any more. I would look at Filemon when you run the dataquery and see if you have a permissions issue. IIS sucks when it comes to the log, unless they have changed something in IIS6.

TheWitness
surprise! i uninstall iis6 and install apach2.2.6,it can work well~!but php.ini have to in the c:\windows
Do I really certain IIS config or permissions issue ? !
Cacti Version - 0.8.7 & spine
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
vaiojunkie
Posts: 9
Joined: Sun Nov 19, 2006 5:34 pm

Post by vaiojunkie »

Hi

I've just upgraded from 0.8.6j to .0.8.7b and now have this problem with cpu and disk not updating.

Debian Etch
net-snmp 5.
rrdtool 1.2

I'm not seeing any errors in the logs, I get the below when I run verbose query

Code: Select all

+ Running data query [8].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/cacti-0.8.7b/resource/script_queries/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/cacti-0.8.7b/scripts/query_host_partitions.php  **.***.***.22 public 2 index'
+ Executing script query '/usr/bin/php -q /var/www/cacti-0.8.7b/scripts/query_host_partitions.php  **.***.***.22 public 2 query index'
+ Executing script query '/usr/bin/php -q /var/www/cacti-0.8.7b/scripts/query_host_partitions.php  **.***.***.22 public 2 query description'
+ Executing script query '/usr/bin/php -q /var/www/cacti-0.8.7b/scripts/query_host_partitions.php **.***.***.22 public 2 query sau'
+ Found data query XML file at '/var/www/cacti-0.8.7b/resource/script_queries/host_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7b/resource/script_queries/host_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7b/resource/script_queries/host_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7b/resource/script_queries/host_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7b/resource/script_queries/host_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7b/resource/script_queries/host_disk.xml'
I'm also running the latest PIA

Thanks for your time
vaiojunkie
Posts: 9
Joined: Sun Nov 19, 2006 5:34 pm

Post by vaiojunkie »

ignore me

i reinstalled all php files and used my sql and rrd backups

All is working now, well until I install PIA again


Wayne
Brainscanner
Posts: 24
Joined: Tue Oct 16, 2007 2:59 am

Post by Brainscanner »

Hello everybody, same problem here. Monitoring network interfaces has never been a problem, but doing the same for disks and cpus seems to be pure luck. After upgrading to 0.8.7b re-queriing:
SNMP - Get Mounted Partitions
SNMP - Get Processor Information
always returns 0 results.

For the partitions:

Code: Select all

+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_disk.php terminalserver.brainscanner.dyndns.org 7 1:161:500:public:::::: index'
+ Executing script query 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_disk.php terminalserver.brainscanner.dyndns.org 7 1:161:500:public:::::: query index'
+ Executing script query 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_disk.php terminalserver.mydomain 7 1:161:500:public:::::: query description'
+ Executing script query 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_disk.php terminalserver.mydomain 7 1:161:500:public:::::: query sau'
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_disk.xml'
For the cpu

Code: Select all

+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_cpu.php terminalserver.brainscanner.dyndns.org 7 1:161:500:public:::::: index'
+ Executing script query 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_cpu.php terminalserver.mydomain 7 1:161:500:public:::::: query index'
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_cpu.xml'
So I've checked all files, they're from February 2008, including those in the ressource folder.
Filemon didn't show any denied accesses. But viewing the log I found the error on the attached screenshot. Host 12 is a remote dd-wrt router that doesn't have to be given any attention here. Host 1 is indeed one of the machines having the problem, but absolutely not the only one.

Might the SQL error be a clue to you? Raising the log-level shows only blue lines when executing the query.

What I should add:
For one host a cpu is still monitored, even if it doesn't show up under "Associated Data Queries". That's left from the past, I haven't deleted the data source, neither the graph. And it's still monitored successfully. Only the name can't be querried:
CPU Utilization - CPU|query_hrProcessorFrwID|
...what used to be CPU0. Maybe that's what's causing the log-error for host 1.
Attachments
sql_error.png
sql_error.png (20.11 KiB) Viewed 5499 times
Evgen787
Posts: 18
Joined: Fri Oct 31, 2008 10:52 pm

Post by Evgen787 »

Hi All)

I solved problem with ss_host_disk.php. Thanks to All :)


But ss_host_cpu.php not work...anybody know to fix it ?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

For those on 0.8.7x, please see the beta version of 0.8.7c. In there you will find a directory called "scripts". From there take both the ss_host_disk.php and ss_host_cpu.php and place those into your 0.8.7b scripts directory and re-index. This should fix things up nice.

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?
Evgen787
Posts: 18
Joined: Fri Oct 31, 2008 10:52 pm

Post by Evgen787 »

TheWitness wrote:For those on 0.8.7x, please see the beta version of 0.8.7c. In there you will find a directory called "scripts". From there take both the ss_host_disk.php and ss_host_cpu.php and place those into your 0.8.7b scripts directory and re-index. This should fix things up nice.

TheWitness
Hm, ss_host_cpu.php not work :(
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Post "Query Verbose"
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?
Evgen787
Posts: 18
Joined: Fri Oct 31, 2008 10:52 pm

Post by Evgen787 »

Code: Select all

+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/usr/local/www/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/local/bin/php -q /usr/local/www/cacti/scripts/ss_host_cpu.php 192.168.1.5 21 2:161:1000:public:::MD5::[None] index'
+ Executing script query '/usr/local/bin/php -q /usr/local/www/cacti/scripts/ss_host_cpu.php 192.168.1.5 21 2:161:1000:public:::MD5::[None] query index'
+ Found data query XML file at '/usr/local/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/www/cacti/resource/script_server/host_cpu.xml'
I`m replaced ss_host_disk.php with file in ss_host_disk.zip (in this theme,not from 0.8.7c beta) and it`s work perfectly.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What happens when you run this from the command line:

/usr/local/bin/php -q /usr/local/www/cacti/scripts/ss_host_cpu.php 192.168.1.5 21 2:161:1000:public:::MD5::[None] query index

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?
Evgen787
Posts: 18
Joined: Fri Oct 31, 2008 10:52 pm

Post by Evgen787 »

php: no match...
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests